Some FST-based modules like Lintul5 need irrigation and fertilizer as interpolation tables, where x-values hold the DOY and y-values hold the amount.
When the DOY is not known beforehand, the interpolation table has to be created at simulation runtime.
The sim component takes daily inputs iXValue and iYValue and outputs both as a DOUBLEARRAY ValueTable , first array element holding iXValue, second holding yValue.
iXValue | iYValue |
If cInterpolationType is set to true, then the output ValueTable has six elements:
iXValue - cDeltaX | 0 | iXValue | iYValue | iXValue + cDeltaX | 0 |
If cOnlyY is set to true, then the output ValueTable has only one element
iYValue |
In this case, you can use the module to pass DOUBLE values from one component / resource to a component that expects an DOUBLEARRAY. For each of such a conversion, you need an instance of this sim component in your solution.
Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
---|---|---|---|---|---|---|---|
constant | cXValues | X-Values of the interpolation table | DOUBLEARRAY | - | - | - | |
constant | cYValues | Y-Values of the interpolation table | DOUBLEARRAY | - | - | - | |
input | iX | At which point to interpolate | DOUBLE | - | - | 0.0 | |
out | Y | Interpolated value at iX | DOUBLE | - | - | 0.0 |