Class NitrogenSurplus
- All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer
The purpose of this sim-component is to calculate the balance of applied and available major nitrogen fertilizer, e.g., organic N, ammonium, nitrate with the plant update resp. demand. This can be used to calculate possible nitrogen loss due to a fertilizer surplus.
Kultur Kennzeichen Ertragsniveau in dt/ha Stickstoffbedarfswert in kg N/ha Ertragsdifferenz in dt/ha Höchstzuschläge bei höheren Erträgen in kg N/ha je Einheit nach Spalte 2 Mindestabschläge bei niedrigeren Erträgen in kg N/ha je Einheit nach Spalte 2 Winterweizen WW 80 230 10 10 15
Hartweizen HW 55 200 10 10 15
Wintergerste WG 70 180 10 10 15
Winterroggen WRo 70 170 10 10 15
Wintertriticale WTr 70 190 10 10 15
Sommergerste SG 50 140 10 10 15
Hafer HA 55 130 10 10 15
Körnermais KM 90 200 10 10 15
Silomais SM 450 200 50 10 15
Zuckerrübe ZR 650 170 100 10 15
Kartoffel KR 450 180 50 10 10
Frühkartoffel fKR 400 220 50 10 10
Sonnenblume SB 30 120 10 10 15
Winterraps WRa 40 200 5 10 15
KornMix CCM 90 200 10 10 15
CatchCrop CC 0 40 0 0 0
- Author:
- andreas and eeusha
Component Variables
| Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
|---|---|---|---|---|---|---|---|
| constant | cCropID | ID of crop from above list (static field CropID) | CHAR | 1 | - | - | - |
| constant | cNMinSpring | Amount of Nmin (as average of last 3 years) | DOUBLE | g/m2 | 0.0 | 1000.0 | 0.0 |
| constant | cYieldLevel | Level of yield (average in last 3 years) | DOUBLE | g/m2 | 0.0 | 1000.0 | - |
| input | iAppliedNitrateAndAmmonium | Amount of Nmin applied in current year | DOUBLE | g/m2 | 0.0 | 1000.0 | 0.0 |
| input | iAppliedNorg | Amount of Norg applied in current year | DOUBLE | g/m2 | 0.0 | 1000.0 | 0.0 |
| input | iPlantUptake | Amount of Nmin taken up by plant in current year | DOUBLE | g/m2 | 0.0 | 1000.0 | 0.0 |
| out | DuevNitrateAndAmmoniumSurplus | applied Ammonium N | DOUBLE | g/m2 | 0.0 | 1000.0 | 0.0 |
| out | DuevRuleAccordance | applied Phosphorus | BOOLEAN | g/m2 | - | - | false |
| out | SimNitrateAndAmmoniumSurplus | applied Organi C | DOUBLE | g/m2 | 0.0 | 1000.0 | 0.0 |
| out | SimRuleAccordance | applied Potassium | BOOLEAN | g/m2 | - | - | false |
-
Nested Class Summary
Nested classes/interfaces inherited from class net.simplace.sim.model.FWSimComponent
net.simplace.sim.model.FWSimComponent.TEST_STATE -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final LinkedList<String> protected static final Double[]protected static final Double[]protected static final Double[]protected static final String[]protected static final Double[]protected static final Double[]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 threadsfillTestVariables(int aParamIndex, net.simplace.sim.model.FWSimComponent.TEST_STATE aDefineOrCheck) called for single component test to check the components algorithm.protected voidinit()protected voidprocess()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
-
Field Details
-
tCropIDs
-
CropID
-
YieldLevel
-
NitrogenDemand
-
YieldGap
-
FertilizerPlus
-
FertilizerMinus
-
-
Constructor Details
-
NitrogenSurplus
public NitrogenSurplus(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-
-
NitrogenSurplus
public NitrogenSurplus()Empty constructor used by class.forName()
-
-
Method Details
-
createVariables
- Specified by:
createVariablesin interfacenet.simplace.sim.util.FWSimFieldContainer- Specified by:
createVariablesin classnet.simplace.sim.model.FWSimComponent- See Also:
-
init
protected void init()- Specified by:
initin classnet.simplace.sim.model.FWSimComponent- See Also:
-
process
protected void process()- Specified by:
processin classnet.simplace.sim.model.FWSimComponent- See Also:
-
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
-
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:
-