Package net.simplace.usermodules.gzhao
Class WaterBalance
java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.usermodules.gzhao.WaterBalance
- All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer
public class WaterBalance
extends net.simplace.sim.model.FWSimComponent
Component for the Lintul crop model
Component Variables
| Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
|---|---|---|---|---|---|---|---|
| constant | cCFEV | correction factor of time course of soil evaporation (value between 1 and about 4) | DOUBLE | 1 | - | - | 2.0 |
| constant | cCRAIRC | critical soil air content for aeration | DOUBLE | 1 | - | - | 0.07 |
| constant | cDEPNR | crop group number for soil water depletion | DOUBLE | 1 | - | - | 4.5 |
| constant | cIAIRDU | air ducts in roots present (=1) or not (=0) | BOOLEAN | 1 | - | - | false |
| constant | cIOPT | indicates optimal (=1), water limited (=2), water and N limited (=3) and | INT | 1 | - | - | 0 |
| constant | cIRRI | automatic irrigation (=1), actual irrigation from table (=2) or non irrigated(=0) | INT | 1 | - | - | 0 |
| constant | cIRRTAB | table with effective applications of irrigation water as function of day number | DOUBLEARRAY | mm/d | - | - | - |
| constant | cKSUB | maximal percolation rate from lower zone to deeper soil layers | DOUBLE | mm/d | - | - | 10.0 |
| constant | cRDI | Initial rooting depth | DOUBLE | m | - | - | 10.0 |
| constant | cRDMCR | crop-specific maximum rooting depth | DOUBLE | m | - | - | 125.0 |
| constant | cRDMSO | maximum rooting depth as determined by soil structure | DOUBLE | m | - | - | 150.0 |
| constant | cRUNFR | average fraction of precipitation lost by runoff | DOUBLE | 1 | - | - | 0.0 |
| constant | cSM0 | soil moisture content at saturation | DOUBLE | m3/m3 | - | - | 0.45 |
| constant | cSMDRY | soil moisture content at airdry (pF= 6.0) | DOUBLE | m3/m3 | - | - | 0.15 |
| constant | cSMFC | soil moisture content at field capacity (pF= 2.3) | DOUBLE | m3/m3 | - | - | 0.35 |
| constant | cSMI | soil moisture content in initial root zone at planting or emergence | DOUBLE | m3/m3 | - | - | 0.3 |
| constant | cSMLOWI | initial soil moisture content in lower zone at planting or emergence | DOUBLE | m3/m3 | - | - | 0.3 |
| constant | cSMW | soil moisture content at wilting point (pF= 4.2) | DOUBLE | m3/m3 | - | - | 0.2 |
| input | iEMERG | has emerged | BOOLEAN | 1 | - | - | false |
| input | iES0 | potential evaporation from soil surface | DOUBLE | mm/d | - | - | 0.0 |
| input | iETC | potential transpiration of crop (with CO2 correction for C3 crop) | DOUBLE | mm/d | - | - | 0.0 |
| input | iEVMAX | Potential evaporation | DOUBLE | mm/d | - | - | 0.0 |
| input | iRAIN | precipitation (output of routine WEATHR) | DOUBLE | mm/d | - | - | 0.0 |
| input | iRD | - | DOUBLE | m | - | - | 0.0 |
| input | iRR | - | DOUBLE | m/d | - | - | 0.0 |
| input | iResetWaterBalance | sets soil water to ininital state if true | BOOLEAN | 1 | - | - | false |
| input | iTRMAX | Potential transpiration | DOUBLE | mm/d | - | - | 0.0 |
| state | sDIRRO | - | DOUBLE | - | - | 0.0 | |
| state | sDSLR | counter of the days since last rain | DOUBLE | 1 | - | - | 0.0 |
| state | sSMACT | actual soil moisture content in rooted zone | DOUBLE | mm3/mm3 | - | - | 0.0 |
| state | sSMACTL | actual soil moisture content in lower zone | DOUBLE | mm3/mm3 | - | - | 0.0 |
| state | sTDRAIN | cumulative drainage to the sub-soil | DOUBLE | mm | - | - | 0.0 |
| state | sTESOIL | cumulative soil evaporation | DOUBLE | mm | - | - | 0.0 |
| state | sTIRR | cumulative irrigation | DOUBLE | mm | - | - | 0.0 |
| state | sTRAIN | cumulative precipitation | DOUBLE | mm | - | - | 0.0 |
| state | sTRUNOF | cumulative surface runoff | DOUBLE | mm | - | - | 0.0 |
| state | sTTRANS | cumulative crop transpiration | DOUBLE | mm | - | - | 0.0 |
| state | sTWDR | cumulative water added to the rooted zone by root growth | DOUBLE | mm | - | - | 0.0 |
| state | sWAVT | total available water in rooted zone | DOUBLE | mm | - | - | 0.0 |
| state | sWAVTL | total available water in lower zone (below rooted zone) | DOUBLE | mm | - | - | 0.0 |
| state | sWTOT | amount of total water in rooted zone | DOUBLE | mm | - | - | 0.0 |
| state | sWTOTL | amount of total water in lower zone (below rooted zone) | DOUBLE | mm | - | - | 0.0 |
| state | sWTOTLN | new amount of total water in lower zone (below rooted zone) | DOUBLE | mm | - | - | 0.0 |
| state | sWTOTN | new amount of total water in rooted zone | DOUBLE | mm | - | - | 0.0 |
| rate | rDIRR | effective application of irrigation water | DOUBLE | mm/d | - | - | 0.0 |
| rate | rDWAT | change in available water in rooted zone | DOUBLE | mm/d | - | - | 0.0 |
| rate | rDWATL | change in available water in lower zone | DOUBLE | mm/d | - | - | 0.0 |
| rate | rDWOT | change in total water in rooted zone | DOUBLE | mm/d | - | - | 0.0 |
| rate | rDWOTL | change in total water in lower zone | DOUBLE | mm/d | - | - | 0.0 |
| rate | rEVA | - | DOUBLE | - | - | 0.0 | |
| rate | rPERC3 | percolation from lower zone to deeper soil layers | DOUBLE | mm/d | - | - | 0.0 |
| rate | rRAIN0 | - | DOUBLE | mm/d | - | - | 0.0 |
| rate | rRIRR | - | DOUBLE | mm/d | - | - | 0.0 |
| rate | rRUNOF | water loss by surface runoff | DOUBLE | mm/d | - | - | 0.0 |
| rate | rTRA | - | DOUBLE | mm/d | - | - | 0.0 |
| rate | rWDR | change in total water in the rooted zone by root growth | DOUBLE | mm/d | - | - | 0.0 |
| rate | rWDRA | - | DOUBLE | mm/d | - | - | 0.0 |
| out | RDM | soil/crop related maximal rooting depth | DOUBLE | m | - | - | 0.0 |
| out | TRANRF | reduction factor for crop growth due to drought/wetness | DOUBLE | 1 | - | - | 0.0 |
| out | WBAL | balance for checking soil water balance in rooted zone | DOUBLE | mm/d | - | - | 0.0 |
| out | WBALL | balance for checking soil water balance in lower zone | DOUBLE | mm/d | - | - | 0.0 |
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.model.FWSimComponent
net.simplace.sim.model.FWSimComponent.TEST_STATE -
Field Summary
Fields inherited from class net.simplace.sim.model.FWSimComponent
iFieldMap, iFrequence, iInputMap, iJexlRule, iMasterComponentGroup, iName, iOrderNumber, isComponentGroup, iSimComponentElement, iSimModel, iVarMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.simplace.sim.model.FWSimComponentclone(net.simplace.sim.util.FWSimVarMap aVarMap) creates a clone from this SimComponent for use in other threadsCreate the FWSimVariables as interface for this SimComponentfillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.protected voidinit()initializes the fields by getting input and output FWSimVariables from VarMapprotected voidprocess()process the algorithm and write the results back to VarMapvoidWATBALS()Methods inherited from class net.simplace.sim.model.FWSimComponent
addVariable, bind, checkCondition, createSimComponent, createSimComponent, createSimComponent, createSimComponent, doProcess, getConstantVariables, getContentType, getCreateFormXML, getDescription, getEditFormXML, getFieldMap, getFrequence, getFrequenceRuleScript, getInputs, getInputVariables, getMasterComponentGroup, getName, getOrderNumber, getOutputVariables, getVariable, getVariableField, getVarMap, initialize, isConditionCheck, isVariableAvailable, performLinks, performLinks, readInputs, removeVariable, reset, runComponentTest, setVariablesDefault, toComponentLinkingXML, toDocXML, toGroupXML, toOutputDefinitionXML, toResourcesDataXML, toResourcesDefinitionXML, toString, toXML, writeVarInfos
-
Constructor Details
-
WaterBalance
public WaterBalance(String aName, HashMap<String, net.simplace.sim.util.FWSimVariable<?>> aFieldMap, HashMap<String, String> aInputMap, org.jdom2.Element aSimComponentElement, net.simplace.sim.util.FWSimVarMap aVarMap, int aOrderNumber) - Parameters:
aName-aFieldMap-aInputMap-aSimComponentElement-aVarMap-aOrderNumber-
-
WaterBalance
public WaterBalance()Empty constructor used by class.forName()
-
-
Method Details
-
createVariables
Create the FWSimVariables as interface for this SimComponent- Specified by:
createVariablesin interfacenet.simplace.sim.util.FWSimFieldContainer- Specified by:
createVariablesin classnet.simplace.sim.model.FWSimComponent- See Also:
-
net.simplace.simulation.model.FWSimComponent#createVariables()
-
init
protected void init()initializes the fields by getting input and output FWSimVariables from VarMap- Specified by:
initin classnet.simplace.sim.model.FWSimComponent- See Also:
-
net.simplace.simulation.model.FWSimComponent#init()
-
process
protected void process()process the algorithm and write the results back to VarMap- Specified by:
processin classnet.simplace.sim.model.FWSimComponent- See Also:
-
net.simplace.simulation.model.FWSimComponent#process()
-
WATBALS
public void WATBALS() -
fillTestVariables
public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> fillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.- Specified by:
fillTestVariablesin classnet.simplace.sim.model.FWSimComponent- See Also:
-
net.simplace.sim.util.FWSimFieldContainer#fillTestVariables(int aParamIndex, TEST_STATE aDefineOrCheck)
-
clone
protected net.simplace.sim.model.FWSimComponent clone(net.simplace.sim.util.FWSimVarMap aVarMap) creates a clone from this SimComponent for use in other threads- Specified by:
clonein classnet.simplace.sim.model.FWSimComponent- See Also:
-
net.simplace.simulation.model.FWSimComponent#clone(net.simplace.simulation.util.FWSimVarMap)
-