I am receiving the following warning message from Dymola when simulating a fairly complex steady-state model for simulating a multi-circuit refrigerant system.
The following variables are iteration variables of the initialization problem: initChillerCircuit2.InitCycleArray[20]
but they are not given any explicit start values. Zero will be used.
I am looking for assistance in proper syntax to set a start value for this variable because the value is returned from a function (Init_ChillerCircuit) into a parameter array (InitCycleArray).
final parameter Real InitCycleArray[:]=Init_ChillerCircuit(
vleInitRecord,
liquidSelector,
specifiedLiquidTIn,
specifiedLiquidTOut,
specifiedLiquidVdot,
liquidTInIsSpecified,
liquidTOutIsSpecified,
liquidVdotIsSpecified,
specifiedGasTIn,
estimatedGasVdot,
liquidHXEffectiveness,
gasHXEffectiveness,
subcoolerEffectiveness,
suctionPressureLoss,
suctionSuperheat,
dischargePressureLoss,
isentropicEfficiency,
specifiedCapacity,
isCooling);
I am unclear of how to set the start value for a single element in the array, if it is possible at all. I am hoping for something like the line below, but the syntax is not correct.
final parameter Real InitCycleArray[:](start[20] = 1) = Init_ChillerCircuit(...);
The best that I can come up with is to assign start values for all output results, but this is problematic in my scenario.
final parameter Real InitCycleArray[:](start = {if i==20 then 1 else 0 for i in 1:33})=Init_ChillerCircuit(...);
The syntax above, which assigns all start values, compiles ok but assigning appropriate start values for each element in the output array is difficult.
Any suggestions are appreciated!