Is it possible to create a simscape block with three nodes?

조회 수: 1 (최근 30일)
Joel
Joel 2015년 2월 12일
답변: David John 2022년 11월 21일
Hello everyone, I am trying to implement a water filtration treatment unit with one flow going in (a:feed flow) and two flows going out (b:permeate and c:retentate flow).
How should the Branches section look like?
So far I tried:
branches
q_feed: a.q -> *;
q_permeate: * -> b.q;
q_retentate: * -> c.q;
end
Personally, I do not think that this declaration is right, since I get an error concerning 'transient initialization, solving for consistent states and modes, failed to converge'.
Thank you for your help. Joel
  댓글 수: 2
Steven
Steven 2017년 2월 9일
From what I understand * means ground or zero, so basically you are saying you want all those flows to be with respect to zero. Maybe this might work
q_permeate = a.q -> b.q;
q_retentate = a.q -> c.q;
that just tells the compiler what ports flow to what, then in the equations section you could put
a.q = b.q - c.q;
or whatever, I'm putting this as a comment because I'm not sure if its right
Ekin
Ekin 2022년 10월 17일
편집: Ekin 2022년 10월 17일
Did you find any solution? equations section doesn't allow "a.q == b.q - c.q".

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

채택된 답변

David John
David John 2022년 11월 21일
branches
q1 : a.q -> b.q;
q2 : a.q -> c.q
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Troubleshooting에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by