Skip to content

Commit 541d54c

Browse files
authored
Parameter evaluation for simpler initial equation systems (OpenIPSL#369)
* Evaluate parameter to simplify initial equation systems. This fixes the following tests in System Modeler: OpenIPSLTest-master/regression/Tests/Controls/PSSE/ES/ESST4B OpenIPSLTest-master/regression/Tests/Controls/PSSE/ES/EXST1 OpenIPSLTest-master/examples/DAEMode/SMIB_Examples/Example_1/Network3 * Evaluate parameter to simplify initial equation systems. This fixes the following tests in System Modeler: OpenIPSLTest-master/examples/RaPIdExperiments/Mostar OpenIPSLTest-master/regression/Tests/Controls/PSSE/ES/ST5B OpenIPSLTest-master/examples/SevenBus/Network
1 parent 9aa77e0 commit 541d54c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

OpenIPSL/NonElectrical/Continuous/SimpleLag.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ block SimpleLag "First order lag transfer function block"
55
annotation (Placement(transformation(extent={{-58,32},{-38,52}})));
66
Real state(start=y_start);
77
parameter Real K "Gain";
8-
parameter Types.Time T "Lag time constant";
8+
parameter Types.Time T "Lag time constant" annotation(Evaluate = true);
99
parameter Real y_start "Output start value";
1010
protected
1111
parameter Real T_mod=if T < Modelica.Constants.eps then 1000 else T;

OpenIPSL/NonElectrical/Continuous/SimpleLagLimVar.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ block SimpleLagLimVar
1515
Modelica.Blocks.Sources.RealExpression const(y=T)
1616
annotation (Placement(transformation(extent={{-58,32},{-38,52}})));
1717
parameter Real K "Gain";
18-
parameter Types.Time T "Lag time constant";
18+
parameter Types.Time T "Lag time constant" annotation(Evaluate = true);
1919
parameter Real y_start "Output start value";
2020
parameter Real T_mod=if T < Modelica.Constants.eps then 1000 else T;
2121
Real state;

0 commit comments

Comments
 (0)