Opened 14 years ago

Closed 14 years ago

#1944 closed defect (fixed)

unbalanced models: empty array of unused connector yields equations

Reported by: Christian Schubert Owned by: Per Östlund
Priority: critical Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: flow connect unbalanced Cc: Martin Sjölund

Description

I found another source for unbalanced fluid models.

We have an empty array of

Modelica.Fluid.Vessels.BaseClasses.VesselFluidPorts_a topPorts[0]

nevertheless we get an equation

topPorts[0].m_flow = 0.0

which consequently gives an unbalanced model, since the empty array does not provide any variables.
Simple Testmodels are attached

Attachments (3)

test.mos​ (367 bytes ) - added by Christian Schubert 14 years ago.
TopModel.mo​ (246 bytes ) - added by Christian Schubert 14 years ago.
SubModel.mo​ (361 bytes ) - added by Christian Schubert 14 years ago.

Download all attachments as: .zip

Change History (5)

by Christian Schubert, 14 years ago

Attachment: test.mos​ added

by Christian Schubert, 14 years ago

Attachment: TopModel.mo​ added

by Christian Schubert, 14 years ago

Attachment: SubModel.mo​ added

comment:1 by Per Östlund, 14 years ago

Owner: changed from Adrian Pop to Per Östlund
Status: new → assigned

comment:2 by Per Östlund, 14 years ago

Resolution: → fixed
Status: assigned → closed

Fixed in r13965.

Note: See TracTickets for help on using tickets.