Opened 10 years ago

Closed 7 years ago

#3331 closed defect (fixed)

Problems in flattening Buildings.Electrical.DC.*.Examples.*

Reported by: Marco Bonvini Owned by: Martin Sjölund
Priority: normal Milestone: 1.9.4
Component: Third-Party Libraries Version: 1.9.0Beta
Keywords: Buildings Library Cc:

Description

Hi All,

I'm trying to use the models of the package Buildings.Electrical.DC.* with OM. It looks like there are some basic issues with the models in this sub-package since almost none of the examples work, while most of the examples in the Buildings.Electrical.AC.* package work.

The only ones that work are:
1) Buildings.Electrical.DC.Sources.Examples.VoltageSource
2) Buildings.Electrical.Utilities.Examples.TestVoltageCTRL

Despite Buildings.Electrical.DC.Loads.Examples.Resistor uses the same components as Buildings.Electrical.DC.Sources.Examples.VoltageSource, it produces this error

latest/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);.
latest/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38:57:writable Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);.
latest/Electrical/DC/Loads/Examples/Resistor.mo:19:3-23:27:writable Error: Incompatible components in connect statement: connect(sou.terminal, res.terminal_n)

  • sou.terminal has components {i, theta, v}
  • res.terminal_n has components {i, theta, v}

Error: Error occurred while flattening model Buildings.Electrical.DC.Loads.Examples.Resistor

Any idea on what causes it and how to solve it?

Thanks,
Marco

Change History (1)

comment:1 by Martin Sjölund, 7 years ago

Milestone: Future1.9.4
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.