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 Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
|---|---|---|---|---|---|---|---|
| constant | cAMEQ | proportion of ammonium on clay unavailable to nitrifiers | DOUBLE | 1 | 0.0 | 20.0 | 0.0 |
| constant | cAMR1 | 1st nitrification constant | DOUBLE | 1 | 0.0 | 20.0 | 0.32 |
| constant | cAMR2 | 2nd nitrification constant | DOUBLE | 1 | 0.0 | 20.0 | 0.1363 |
| constant | cAREA | - | DOUBLE | m2 | 0.0 | 20.0 | 1.0 |
| constant | cAX | proportion of ammonium unavailable to crop | DOUBLE | 1 | 0.0 | 20.0 | 0.2 |
| constant | cBGEN | - | DOUBLE | kg/m2 | 0.0 | 20.0 | 1.0 |
| constant | cBulkDensity | - | DOUBLEARRAY | m | - | - | - |
| constant | cCNH4 | initial amount of ammonium in the soil profile | DOUBLEARRAY | 1 | 0.0 | 20.0 | - |
| constant | cCNO3 | initial amount of nitrate in the soil profile | DOUBLEARRAY | 1 | 0.0 | 20.0 | - |
| constant | cDP | - | DOUBLE | 1 | 0.0 | 20.0 | 0.0 |
| constant | cFLOWNR | maximum uptake rate of nitrogen per day | DOUBLE | mg/km | 0.0 | 1000.0 | 40.0 |
| constant | cHBS | - | DOUBLE | 1 | 0.0 | 20.0 | 0.3 |
| constant | cHBT | - | DOUBLE | 1 | 0.0 | 20.0 | 0.1 |
| constant | cIFWGEN | - | BOOLEAN | mm | - | - | false |
| constant | cMD | - | INT | 1 | 0 | 1000 | 0 |
| constant | cMT | - | INT | 1 | 0 | 1000 | 5 |
| constant | cSCMIN | Minimum unextractable fraction of soil nitrate | DOUBLE | 1 | 0.0 | 20.0 | 0.95 |
| constant | cSCONC | nitrate concentration in rain | DOUBLE | kg/m3 | 0.0 | 100.0 | 5.0 |
| constant | cSMD | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| constant | cSoilLayerDepth | - | DOUBLEARRAY | m | - | - | - |
| constant | cSoilWaterFieldCapacity | - | DOUBLEARRAY | mm | - | - | - |
| constant | cSoilWaterInitial | - | DOUBLEARRAY | mm | - | - | - |
| constant | cSoilWaterReducedThreshold | - | DOUBLEARRAY | mm | - | - | - |
| constant | cSoilWaterSaturation | - | DOUBLEARRAY | mm | - | - | - |
| constant | cSoilWaterWiltingPoint | - | DOUBLEARRAY | mm | - | - | - |
| constant | cTEMCO1 | temperature coefficient for ammonification | DOUBLE | 1 | 0.0 | 20.0 | 0.0 |
| constant | cTEMCO2 | temperature coefficient for nitrification | DOUBLE | 1 | 0.0 | 20.0 | 0.0 |
| constant | cWALIQ | - | DOUBLE | mm | 0.0 | 20.0 | 3.0 |
| constant | cWMGENS | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| constant | cWMGENT | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| constant | cWRGENS | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| constant | cWRGENT | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| constant | cWRSS | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| constant | cWRST | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| input | iActualTranspiration | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| input | iAmmoniumFertilisation | - | DOUBLE | 1 | 0.0 | 2000.0 | 0.0 |
| input | iDrynessFactor | Dryness factor in layer i | DOUBLEARRAY | 1 | - | - | - |
| input | iLessMobileWater | Less mobile water (0.33| DOUBLEARRAY | mm | - | - | - | |
| input | iMD95 | - | INT | 1 | 0 | 10000 | 0 |
| input | iMobileWater | Mobile water (after leaching) | DOUBLEARRAY | mm | - | - | - |
| input | iNDemand | - | DOUBLE | 1 | 0.0 | 2000.0 | 0.0 |
| input | iNMineralisationRate | Rate of ammonium produced from organic matter | DOUBLEARRAY | g/m2 | - | - | - |
| input | iNinorg | Amount of inorganic N | DOUBLEARRAY | g/m2 | - | - | - |
| input | iNitrateFertilisation | - | DOUBLE | 1 | 0.0 | 2000.0 | 0.0 |
| input | iPercolatingWater | Water percolating out from layer i | DOUBLEARRAY | mm | - | - | - |
| input | iRAIN | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| input | iRetainedWater | - | DOUBLEARRAY | mm | - | - | - |
| input | iRootLength | Total root length in layer i (sum of lateral and and seminal roots) | DOUBLEARRAY | m | - | - | - |
| input | iSoilTemperature | Soil temperature in layer i | DOUBLEARRAY | °C | - | - | - |
| input | iWDRAIN | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| input | iWFAST | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| input | iWHT15R | Water percolating out from layer i | DOUBLEARRAY | mm | - | - | - |
| input | iWRH | Water percolating out from layer i | DOUBLEARRAY | mm | - | - | - |
| input | iWSEEP | - | DOUBLE | mm | 0.0 | 20.0 | 0.0 |
| input | iWithCrop | - | BOOLEAN | 1 | - | - | false |
| state | sMobileWaterBefore | Mobile water before leaching | DOUBLEARRAY | mm | - | - | - |
| out | Ammonium | Ammonium in layer i mg*m-2 | DOUBLEARRAY | 1 | - | - | - |
| out | CropAvailableNinProfile | Daily Total amount of crop available N in the soil profile | DOUBLE | 1 | - | - | 0.0 |
| out | MobileNitrate | Amount of solutes (nitrate) in the mobile water fraction in layer i | DOUBLEARRAY | 1 | - | - | - |
| out | NH4inProfile | Daily Total amount of ammonium in the soil profile | DOUBLE | 1 | - | - | 0.0 |
| out | NO3inProfile | Daily Total amount of nitrate in the soil profile | DOUBLE | 1 | - | - | 0.0 |
| out | NUptake | Nitrogen uptake by the roots | DOUBLE | 1 | 0.0 | 2000.0 | 0.0 |
| out | Ninorg | Amount of inorganic N | DOUBLEARRAY | g/m2 | - | - | - |
| out | Nitrate | Nitrate (mobile+retained) in layer i | DOUBLEARRAY | 1 | - | - | - |
| out | NitrificationRate | Change in Nitrate due to nitrification | DOUBLEARRAY | 1 | - | - | - |
| out | RetainedNitrate | Amount of solutes (nitrate) in the retainded water fraction in layer i | DOUBLEARRAY | 1 | - | - | - |
| out | THICKL | - | DOUBLE | m | 0.001 | 20.0 | 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) fillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.final voidinit()Set the soil water and nitrogen content for all layers.protected voidprocess()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
-
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
- Specified by:
createVariablesin interfacenet.simplace.sim.util.FWSimFieldContainer- Specified by:
createVariablesin classnet.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:
initin classnet.simplace.sim.model.FWSimComponent
-
process
protected void process()Calculates one step (i.e. one day)- Specified by:
processin classnet.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:
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) - Specified by:
clonein classnet.simplace.sim.model.FWSimComponent- See Also:
-
FWSimComponent.clone(net.simplace.sim.util.FWSimVarMap)
-