Opened 6 years ago
Closed 5 years ago
#5243 closed defect (fixed)
The NF cannot evaluate a structural parameter in a record
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | blocker | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: | Rüdiger Franke |
Description
Please check PowerSystems.Examples.AC3ph.Drives.ASM. The following error is reported:
[OMCompiler/build/lib/omlibrary/PowerSystems 0.6.0/AC3ph/Machines.mo:2208:3-2208:47:writable] Error: Could not evaluate structural parameter (or constant): asm.motor.c.n_r which gives dimensions of array: L_r. Array dimensions must be known at compile time.
The source code is found here, I report it for convenience:
record Asynchron "Coefficient matrices of asynchronous machine" extends Modelica.Icons.Record; parameter Integer n_r "number of rotor circuits"; SI.Inductance[3] L_s "L matrix stator dq0, d=q"; SI.Inductance[n_r, n_r] L_r "L matrix rotor"; SI.Inductance[n_r] L_m "L matrix mutual"; SI.Resistance R_s "R matrix stator"; SI.Resistance[n_r] R_r "R matrix rotor"; SI.Resistance R_n "resistance neutral to grd (if Y)"; SI.Resistance[n_r] R_m "= diagonal(R_r)*inv(L_r)*L_m"; end Asynchron;
I'n not sure if the problem is with the front end or with the model. Also the old front-end failed on this model for the same reason.
Note:
See TracTickets
for help on using tickets.
This issue affects many models in PowerSystems