...
Configuration Example
Code Block |
---|
|
<variable>
<variableId>input</variableId>
<timeSeriesSet>
<moduleInstanceId>StageDischargePowerWithCoefficientSetFunctionsTest<<moduleInstanceId>StageDischargePowerTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.m</parameterId>
<locationId>locationWithAttributes1<<locationId>location1</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="day"/>
<relativeViewPeriod unit="day" start="0" end="60"/>
<readWriteMode>editing visible to all future task runs</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>output</variableId>
<timeSeriesSet>
<moduleInstanceId>StageDischargePowerWithCoefficientSetFunctionsTest<<moduleInstanceId>StageDischargePowerTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.m</parameterId>
<locationId>locationWithAttributes1<<locationId>location1</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="day"/>
<relativeViewPeriod unit="day" start="0" end="60"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</variable>
<transformation id="stage discharge power test">
<stageDischarge>
<power>
<stage>
<variableId>input</variableId>
</stage>
<coefficientSet>
<a>57.632</a>
<b>3.01</b>
<c>2.147</c>
<type>level_to_flow_and_flow_to_level</type>
</coefficientSet>
<discharge>
<variableId>output</variableId>
</discharge>
</power>
</stageDischarge>
</transformation>
|
The example below uses coefficientSetFunctions (available since build 30246). Here the elements 'a', 'b', 'c' and 'type' are defined in coefficientSetFunctions, where @A@, @B@ , and @C@ and @type@ refer to location number attributes that are and @type@ refers to a location text attribute defined in the locationSets configuration file.
Code Block |
---|
|
<variable>
<variableId>input</variableId>
<timeSeriesSet>
<moduleInstanceId>StageDischargePowerWithCoefficientSetFunctionsTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>H.m</parameterId>
<locationId>locationWithAttributes1</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="day"/>
<relativeViewPeriod unit="day" start="0" end="60"/>
<readWriteMode>editing visible to all future task runs</readWriteMode>
</timeSeriesSet>
</variable>
<variable>
<variableId>output</variableId>
<timeSeriesSet>
<moduleInstanceId>StageDischargePowerWithCoefficientSetFunctionsTest</moduleInstanceId>
<valueType>scalar</valueType>
<parameterId>Q.m</parameterId>
<locationId>locationWithAttributes1</locationId>
<timeSeriesType>external historical</timeSeriesType>
<timeStep unit="day"/>
<relativeViewPeriod unit="day" start="0" end="60"/>
<readWriteMode>add originals</readWriteMode>
</timeSeriesSet>
</variable>
<transformation id="stage discharge power with coefficient set functions test">
<stageDischarge>
<power>
<stage>
<variableId>input</variableId>
</stage>
<coefficientSetFunctions>
<a><at:var at:name="A" /></a>
<b><at:var at:name="B" /></b>
<c><at:var at:name="C" /></c>
<type><at:var at:name="type" /></type>
</coefficientSetFunctions>
<discharge>
<variableId>output</variableId>
</discharge>
</power>
</stageDischarge>
</transformation>
|