The model CausalLoop.UnidirectionalFlow has a global parameter rate but that is not used in the ConstantConverter baseRate.
Thus the current library code:
model UnidirectionalFlow "Interaction with linear and nonlinear terms"
import BusinessSimulation.Units.Rate;
extends Interfaces.PartialCLD.Flow;
parameter Rate rate = 1 "Base rate of flow from A to B";
Converters.Product_2 actualRate "Rate of flow";
Flows.Unidirectional.Transition flowingFromAToB;
Converters.ConstantConverter baseRate(redeclare replaceable type OutputType = Rate, value = 1) "Base rate of flow";
equation
...
end UnidirectionalFlow;
Needs to be changed to:
model UnidirectionalFlow "Interaction with linear and nonlinear terms"
import BusinessSimulation.Units.Rate;
extends Interfaces.PartialCLD.Flow;
parameter Rate rate = 1 "Base rate of flow from A to B";
protected
Converters.Product_2 actualRate "Rate of flow";
Flows.Unidirectional.Transition flowingFromAToB;
Converters.ConstantConverter baseRate(redeclare replaceable type OutputType = Rate, value = rate) "Base rate of flow";
equation
...
end UnidirectionalFlow;
The model
CausalLoop.UnidirectionalFlow
has a globalparameter rate
but that is not used in theConstantConverter baseRate
.Thus the current library code:
Needs to be changed to: