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 TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcCFEVcorrection factor of time course of soil evaporation (value between 1 and about 4)DOUBLE1--2.0
constantcCRAIRCcritical soil air content for aerationDOUBLE1--0.07
constantcDEPNRcrop group number for soil water depletionDOUBLE1--4.5
constantcIAIRDUair ducts in roots present (=1) or not (=0)BOOLEAN1--false
constantcIOPTindicates optimal (=1), water limited (=2), water and N limited (=3) andINT1--0
constantcIRRIautomatic irrigation (=1), actual irrigation from table (=2) or non irrigated(=0)INT1--0
constantcIRRTABtable with effective applications of irrigation water as function of day numberDOUBLEARRAYmm/d---
constantcKSUBmaximal percolation rate from lower zone to deeper soil layersDOUBLEmm/d--10.0
constantcRDIInitial rooting depthDOUBLEm--10.0
constantcRDMCRcrop-specific maximum rooting depthDOUBLEm--125.0
constantcRDMSOmaximum rooting depth as determined by soil structureDOUBLEm--150.0
constantcRUNFRaverage fraction of precipitation lost by runoffDOUBLE1--0.0
constantcSM0soil moisture content at saturationDOUBLEm3/m3--0.45
constantcSMDRYsoil moisture content at airdry (pF= 6.0)DOUBLEm3/m3--0.15
constantcSMFCsoil moisture content at field capacity (pF= 2.3)DOUBLEm3/m3--0.35
constantcSMIsoil moisture content in initial root zone at planting or emergenceDOUBLEm3/m3--0.3
constantcSMLOWIinitial soil moisture content in lower zone at planting or emergenceDOUBLEm3/m3--0.3
constantcSMWsoil moisture content at wilting point (pF= 4.2)DOUBLEm3/m3--0.2
inputiEMERGhas emergedBOOLEAN1--false
inputiES0potential evaporation from soil surfaceDOUBLEmm/d--0.0
inputiETCpotential transpiration of crop (with CO2 correction for C3 crop)DOUBLEmm/d--0.0
inputiEVMAXPotential evaporationDOUBLEmm/d--0.0
inputiRAINprecipitation (output of routine WEATHR)DOUBLEmm/d--0.0
inputiRD-DOUBLEm--0.0
inputiRR-DOUBLEm/d--0.0
inputiResetWaterBalancesets soil water to ininital state if trueBOOLEAN1--false
inputiTRMAXPotential transpirationDOUBLEmm/d--0.0
statesDIRRO-DOUBLE--0.0
statesDSLRcounter of the days since last rainDOUBLE1--0.0
statesSMACTactual soil moisture content in rooted zoneDOUBLEmm3/mm3--0.0
statesSMACTLactual soil moisture content in lower zoneDOUBLEmm3/mm3--0.0
statesTDRAINcumulative drainage to the sub-soilDOUBLEmm--0.0
statesTESOILcumulative soil evaporationDOUBLEmm--0.0
statesTIRRcumulative irrigationDOUBLEmm--0.0
statesTRAINcumulative precipitationDOUBLEmm--0.0
statesTRUNOFcumulative surface runoffDOUBLEmm--0.0
statesTTRANScumulative crop transpirationDOUBLEmm--0.0
statesTWDRcumulative water added to the rooted zone by root growthDOUBLEmm--0.0
statesWAVTtotal available water in rooted zoneDOUBLEmm--0.0
statesWAVTLtotal available water in lower zone (below rooted zone)DOUBLEmm--0.0
statesWTOTamount of total water in rooted zoneDOUBLEmm--0.0
statesWTOTLamount of total water in lower zone (below rooted zone)DOUBLEmm--0.0
statesWTOTLNnew amount of total water in lower zone (below rooted zone)DOUBLEmm--0.0
statesWTOTNnew amount of total water in rooted zoneDOUBLEmm--0.0
raterDIRReffective application of irrigation waterDOUBLEmm/d--0.0
raterDWATchange in available water in rooted zoneDOUBLEmm/d--0.0
raterDWATLchange in available water in lower zoneDOUBLEmm/d--0.0
raterDWOTchange in total water in rooted zoneDOUBLEmm/d--0.0
raterDWOTLchange in total water in lower zoneDOUBLEmm/d--0.0
raterEVA-DOUBLE--0.0
raterPERC3percolation from lower zone to deeper soil layersDOUBLEmm/d--0.0
raterRAIN0-DOUBLEmm/d--0.0
raterRIRR-DOUBLEmm/d--0.0
raterRUNOFwater loss by surface runoffDOUBLEmm/d--0.0
raterTRA-DOUBLEmm/d--0.0
raterWDRchange in total water in the rooted zone by root growthDOUBLEmm/d--0.0
raterWDRA-DOUBLEmm/d--0.0
outRDMsoil/crop related maximal rooting depthDOUBLEm--0.0
outTRANRFreduction factor for crop growth due to drought/wetnessDOUBLE1--0.0
outWBALbalance for checking soil water balance in rooted zoneDOUBLEmm/d--0.0
outWBALLbalance for checking soil water balance in lower zoneDOUBLEmm/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
    Constructor
    Description
    Empty constructor used by class.forName()
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.simplace.sim.model.FWSimComponent
    clone(net.simplace.sim.util.FWSimVarMap aVarMap)
    creates a clone from this SimComponent for use in other threads
    HashMap<String,net.simplace.sim.util.FWSimVariable<?>>
    Create the FWSimVariables as interface for this SimComponent
    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.
    protected void
    initializes the fields by getting input and output FWSimVariables from VarMap
    protected void
    process the algorithm and write the results back to VarMap
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> createVariables()
      Create the FWSimVariables as interface for this SimComponent
      Specified by:
      createVariables in interface net.simplace.sim.util.FWSimFieldContainer
      Specified by:
      createVariables in class net.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:
      init in class net.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:
      process in class net.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:
      fillTestVariables in class net.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:
      clone in class net.simplace.sim.model.FWSimComponent
      See Also:
      • net.simplace.simulation.model.FWSimComponent#clone(net.simplace.simulation.util.FWSimVarMap)