Class SlimNitrogenLegacy

java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.soil.slim.SlimNitrogenLegacy
All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer

public class SlimNitrogenLegacy extends net.simplace.sim.model.FWSimComponent
Please use SlimNitrogen SimComponent. This legacy component calculates the amount of Nitrate and Ammonium in the soil per layer.

Routines taken from SLIM. Leaching of solutes slightly different than in SLIM, because water movement between layers is performed at once and not in aliquotes.

Component Variables

Content TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcAMEQproportion of ammonium on clay unavailable to nitrifiersDOUBLE10.020.00.0
constantcAMR11st nitrification constantDOUBLE10.020.00.32
constantcAMR22nd nitrification constantDOUBLE10.020.00.1363
constantcAREA-DOUBLEm20.020.01.0
constantcAXproportion of ammonium unavailable to cropDOUBLE10.020.00.2
constantcBGEN-DOUBLEkg/m20.020.01.0
constantcBulkDensity-DOUBLEARRAYm---
constantcCNH4initial amount of ammonium in the soil profileDOUBLEARRAY10.020.0-
constantcCNO3initial amount of nitrate in the soil profileDOUBLEARRAY10.020.0-
constantcDP-DOUBLE10.020.00.0
constantcFLOWNRmaximum uptake rate of nitrogen per dayDOUBLEmg/km0.01000.040.0
constantcHBS-DOUBLE10.020.00.3
constantcHBT-DOUBLE10.020.00.1
constantcIFWGEN-BOOLEANmm--false
constantcMD-INT1010000
constantcMT-INT1010005
constantcSCMINMinimum unextractable fraction of soil nitrateDOUBLE10.020.00.95
constantcSCONCnitrate concentration in rainDOUBLEkg/m30.0100.05.0
constantcSMD-DOUBLEmm0.020.00.0
constantcSoilLayerDepth-DOUBLEARRAYm---
constantcSoilWaterFieldCapacity-DOUBLEARRAYmm---
constantcSoilWaterInitial-DOUBLEARRAYmm---
constantcSoilWaterReducedThreshold-DOUBLEARRAYmm---
constantcSoilWaterSaturation-DOUBLEARRAYmm---
constantcSoilWaterWiltingPoint-DOUBLEARRAYmm---
constantcTEMCO1temperature coefficient for ammonificationDOUBLE10.020.00.0
constantcTEMCO2temperature coefficient for nitrificationDOUBLE10.020.00.0
constantcWALIQ-DOUBLEmm0.020.03.0
constantcWMGENS-DOUBLEmm0.020.00.0
constantcWMGENT-DOUBLEmm0.020.00.0
constantcWRGENS-DOUBLEmm0.020.00.0
constantcWRGENT-DOUBLEmm0.020.00.0
constantcWRSS-DOUBLEmm0.020.00.0
constantcWRST-DOUBLEmm0.020.00.0
inputiActualTranspiration-DOUBLEmm0.020.00.0
inputiAmmoniumFertilisation-DOUBLE10.02000.00.0
inputiDrynessFactorDryness factor in layer iDOUBLEARRAY1---
inputiLessMobileWaterLess mobile water (0.33DOUBLEARRAYmm---
inputiMD95-INT10100000
inputiMobileWaterMobile water (after leaching)DOUBLEARRAYmm---
inputiNDemand-DOUBLE10.02000.00.0
inputiNMineralisationRateRate of ammonium produced from organic matterDOUBLEARRAYg/m2---
inputiNinorgAmount of inorganic NDOUBLEARRAYg/m2---
inputiNitrateFertilisation-DOUBLE10.02000.00.0
inputiPercolatingWaterWater percolating out from layer iDOUBLEARRAYmm---
inputiRAIN-DOUBLEmm0.020.00.0
inputiRetainedWater-DOUBLEARRAYmm---
inputiRootLengthTotal root length in layer i (sum of lateral and and seminal roots)DOUBLEARRAYm---
inputiSoilTemperatureSoil temperature in layer iDOUBLEARRAY°C---
inputiWDRAIN-DOUBLEmm0.020.00.0
inputiWFAST-DOUBLEmm0.020.00.0
inputiWHT15RWater percolating out from layer iDOUBLEARRAYmm---
inputiWRHWater percolating out from layer iDOUBLEARRAYmm---
inputiWSEEP-DOUBLEmm0.020.00.0
inputiWithCrop-BOOLEAN1--false
statesMobileWaterBeforeMobile water before leachingDOUBLEARRAYmm---
outAmmoniumAmmonium in layer i mg*m-2DOUBLEARRAY1---
outCropAvailableNinProfileDaily Total amount of crop available N in the soil profileDOUBLE1--0.0
outMobileNitrateAmount of solutes (nitrate) in the mobile water fraction in layer iDOUBLEARRAY1---
outNH4inProfileDaily Total amount of ammonium in the soil profileDOUBLE1--0.0
outNO3inProfileDaily Total amount of nitrate in the soil profileDOUBLE1--0.0
outNUptakeNitrogen uptake by the rootsDOUBLE10.02000.00.0
outNinorgAmount of inorganic NDOUBLEARRAYg/m2---
outNitrateNitrate (mobile+retained) in layer iDOUBLEARRAY1---
outNitrificationRateChange in Nitrate due to nitrificationDOUBLEARRAY1---
outRetainedNitrateAmount of solutes (nitrate) in the retainded water fraction in layer iDOUBLEARRAY1---
outTHICKL-DOUBLEm0.00120.00.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
    called from class.forName()
    SlimNitrogenLegacy(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)
     
    HashMap<String,net.simplace.sim.util.FWSimVariable<?>>
     
    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.
    final void
    Set the soil water and nitrogen content for all layers.
    protected void
    Calculates one step (i.e. one day)

    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

    • SlimNitrogenLegacy

      public SlimNitrogenLegacy(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 -
    • SlimNitrogenLegacy

      public SlimNitrogenLegacy()
      called from class.forName()
  • Method Details

    • createVariables

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> createVariables()
      Specified by:
      createVariables in interface net.simplace.sim.util.FWSimFieldContainer
      Specified by:
      createVariables in class net.simplace.sim.model.FWSimComponent
      See Also:
      • FWSimComponent.createVariables()
    • init

      public final void init()
      Set the soil water and nitrogen content for all layers.
      Specified by:
      init in class net.simplace.sim.model.FWSimComponent
    • process

      protected void process()
      Calculates one step (i.e. one day)
      Specified by:
      process in class net.simplace.sim.model.FWSimComponent
    • 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)
      Specified by:
      clone in class net.simplace.sim.model.FWSimComponent
      See Also:
      • FWSimComponent.clone(net.simplace.sim.util.FWSimVarMap)