Opened 14 years ago

Last modified 13 years ago

#1269 closed task (fixed)

Implement stream connectors one-to-one connection only

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: low Milestone: White December
Component: Frontend Version:
Keywords: Cc: Adrian Pop, Adrian Pop, Per Östlund

Description

Implement stream connectors, the one-to-one connection only. Modelica Specification 3.2, page 176-177.

For inside-inside connections no equations are added. For outside-inside connections one equality equation is added.

inStream operator

inStream operator
Modelica Specification 3.2, page 176, Section: 15.2 Stream Operator inStream and Connection Equations
N = 1, M = 0: unconnected stream
  inStream(m1.c.h_outflow) = m1.c.h_outflow;
N = 2, M = 0: two connected inside streams
  inStream(m1.c.h_outflow) = m2.c.h_outflow;
  inStream(m2.c.h_outflow) = m1.c.h_outflow;
N = 1, M = 1: one inside stream connected to one outside stream
  inStream(m1.c.h_outflow) = inStream(c1.h_outflow);
  Additional equation to be generated
   c1.h_outflow = m1.c.h_outflow;


actualStream operator

actualStream operator
Modelica Specification 3.2, page 177, Section: 15.3 Stream Operator actualStream
actualStream(port.h_outflow) = if port.m_flow > 0 then inStream(port.h_outflow)
                                                  else port.h_outflow;

Change History (2)

comment:1 by Adrian Pop, 14 years ago

Kilian Link said this works correctly. We set it to resolved.

comment:2 by Martin Sjölund, 13 years ago

Implemented for all cases

Note: See TracTickets for help on using tickets.