Opened 12 years ago

Closed 12 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 12 years ago.
TopModel.mo (246 bytes ) - added by Christian Schubert 12 years ago.
SubModel.mo (361 bytes ) - added by Christian Schubert 12 years ago.

Download all attachments as: .zip

Change History (5)

by Christian Schubert, 12 years ago

Attachment: test.mos added

by Christian Schubert, 12 years ago

Attachment: TopModel.mo added

by Christian Schubert, 12 years ago

Attachment: SubModel.mo added

comment:1 by Per Östlund, 12 years ago

Owner: changed from Adrian Pop to Per Östlund
Status: newassigned

comment:2 by Per Östlund, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r13965.

Note: See TracTickets for help on using tickets.