Hello. Does anywhere exist the network coupler for gas? I don’t see it in the simscape library. See the attachment. I need this element to split a gas model on 2 parts to simplify solving on real-time machine. Did anybody come across with this issue? Thanks.

 채택된 답변

Yifeng Tang
Yifeng Tang 2024년 11월 20일

0 개 추천

Network coupler for Gas or Moist Air domain doesn't exist as of R2024b.
I see two options:
(1) follow the structure of such component for the TL domain, and write your own coupler for the Gas domain. The key component is the "partialChamber". You may compare it to the regular constant volume chamber and understand the type of change needed to be made for the Gas domain.
(2) ask yourself whether the original model has been optimized numerically and whether splitting it is the only path forward. More details, e.g. an attached model, will help clarify on this.

댓글 수: 3

Alexander
Alexander 2024년 11월 22일
Hello Yifeng,
Thank you for answer. I understood the first piece of advice.
The model is in the attachment. It's a model of air conditioning system. The system consists of the two symmetrical parts. So it seems good for splitting. The real-time machine doesn't manage with full system.
Could you analyze the solver and help with optimization?
Thank you vary much.
Yifeng Tang
Yifeng Tang 2024년 11월 25일
I took a look at your model. While I don't fully understand the interactions betwen the two symmetrical sides, it seems to me, with all the check valves in place, the two sides are more or less independent of each other. Is that right? For example, the flow from the top side will never enter the bottom side?
If this is indeed the case, I think it's possible to totally separate the two parts as two models. You may need a copy of your "ЗУ4 (5735)", "ЗРУ5 (5751)", "ЗРУ6 (5751)" so they can both flow/leak to outside.
It's nice that the Simulink global solver ode1be is working OK for your model right now. However, I still would like to you check out the documentation page on running real-time simulation with Simscape.
A key part of the workflow is to understand the time-step information when using a variable step solver (e.g. daessc), to infer how the model with behave when using a fixed-step, fixed-iteration/cost solver. A super useful tool is the Solver Profiler:
Alexander
Alexander 2024년 11월 26일
Yes, you are right.
Thank you for the links. I'm studying it soon.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Gas Models에 대해 자세히 알아보기

제품

릴리스

R2023b

질문:

2024년 11월 19일

댓글:

2024년 11월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by