Opened 7 years ago
Closed 6 years ago
#4813 closed defect (fixed)
Structural parameters not substituted in connection equations by the NF
Reported by: | casella | Owned by: | perost |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description (last modified by casella)
Consider the follwoing test case
model Test extends ScalableTestSuite.Electrical.DistributionSystemDC.ScaledExperiments.DistributionSystemModelicaActiveLoads_N_10_M_10(N = 1, M = 1); end Test;
The NF reports one more equation than unknowns. A comparison with the equations flattened with the OF reveals that the NF contains extra equations involving secondary[1,M].n, which should not be there as this connector is actually secondary[1,1].n, which already appears in other equations.
Apparently, these extra equations come from the equations:
for i in 1:N loop connect(activeLoad[i].p, secondary[i,M].n); end for;
which are contained in the DistributionSystemModelicaActiveLoads class, whereby M is not substituted with its value 1, thus generating the problem.
The same problem arises with the ScalableTestSuite.Electrical.TransmissionLine.ScaledExperiments.TransmissionLineModelica_N_XX models, where the following equation appears in the flattened model:
transmissionline.L[transmissionline.N].n
Change History (2)
comment:1 Changed 7 years ago by casella
- Description modified (diff)
- Summary changed from Structural parameters not substituted in connection equations to Structural parameters not substituted in connection equations by the NF
comment:2 Changed 6 years ago by perost
- Resolution set to fixed
- Status changed from new to closed
Fixed in 4330bb7.