Opened 6 years ago

Closed 6 years ago

#5320 closed defect (fixed)

Issue with binding equation types in the NF

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid. The following error is reported:

[Buildings latest/Electrical/Transmission/BaseClasses/PartialNetwork.mo:14:5-14:44:writable]
Notification: From here:
[Buildings latest/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:3:3-3:66:writable]
Error: Type mismatch in binding l = {network.grid.l[i, 1] for i in 1:1},
expected subtype of Real, got type Real[1].

PartialNetwork has the following bindings:

  replaceable Buildings.Electrical.Transmission.BaseClasses.PartialBaseLine lines[grid.nLinks](
    each mode=Buildings.Electrical.Types.CableMode.commercial,
    l={grid.l[i, 1] for i in 1:grid.nLinks},
    each P_nominal=1000,
    each V_nominal=V_nominal);

why should the expected binding of l be of type Real and not Real[grid.nLinks]?

Change History (2)

comment:1 by Per Östlund, 6 years ago

The issue was due to redeclaration issues that have been fixed in edd072dc and 1781e1e. There are still other issues with array modifiers in the model though.

comment:2 by Francesco Casella, 6 years ago

Resolution: fixed
Status: newclosed

The model now simulates with the NF, see report

Note: See TracTickets for help on using tickets.