Opened 11 years ago

Closed 11 years ago

#1944 closed defect (fixed)

unbalanced models: empty array of unused connector yields equations

Reported by: cschubert Owned by: perost
Priority: critical Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: flow connect unbalanced Cc: sjoelund.se

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 cschubert 11 years ago.
TopModel.mo (246 bytes) - added by cschubert 11 years ago.
SubModel.mo (361 bytes) - added by cschubert 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by cschubert

Changed 11 years ago by cschubert

Changed 11 years ago by cschubert

comment:1 Changed 11 years ago by perost

  • Owner changed from adrpo to perost
  • Status changed from new to assigned

comment:2 Changed 11 years ago by perost

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r13965.

Note: See TracTickets for help on using tickets.