Modelica: can stream connecter be conditional too? -
for model of heat generating device, want have optional possibility extract heat via fluid flow. related question "conditional component declaration , following if equation". in code model derived modelica.fluid.interfaces.partialtwoporttransport. have written equivalent partial class having conditional fluidport connectors using 'internalize équation' méthode. must add 2 equations like:
port_b.h_outflow *m_flow=instream(port_a.h_outflow)*m_flow+prescribedtemperature.port.q_flow;
it can internalized division m_flow, if lose ability detect q_flow=0.
what other approach can work?
Comments
Post a Comment