java.lang.Object
net.simplace.sim.model.FWSimComponent
net.simplace.sim.components.experimental.livestock.MethaneEmission
All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer

public class MethaneEmission extends net.simplace.sim.model.FWSimComponent
Author:
Andreas Enders, info@andreas-enders.de Some java code documentation with several newlines and such things

Component Variables

Content TypeNameDescriptionData TypeUnitMin ValueMax ValueDefault Value
constantcAdultFemaleMethanConversionFractionfraction of gross energy in feed converted to CH4 [animal]DOUBLE-0.00.10.065
constantcAdultFemaleWeightWeight per Animal and Day Adult FemaleDOUBLEg/animal0.01000000.0250000.0
constantcAdultMaleMethanConversionFractionfraction of gross energy in feed converted to CH4 [animal]DOUBLE-0.00.10.065
constantcAdultMaleWeightWeight per Animal and Day Adult MaleDOUBLEg/animal0.01000000.0300000.0
constantcJuvenileFemaleMethanConversionFractionfraction of gross energy in feed converted to CH4 [animal]DOUBLE-0.00.10.045
constantcJuvenileFemaleWeightWeight per Animal and Day Juvenile FemaleDOUBLEg/animal0.01000000.035000.0
constantcJuvenileMaleMethanConversionFractionfraction of gross energy in feed converted to CH4 [animal]DOUBLE-0.00.10.045
constantcJuvenileMaleWeightWeight per Animal and Day Juvenile MaleDOUBLEg/animal0.01000000.045000.0
constantcSpecificMethanEmissionConversion from J to CH4DOUBLEg CH4/J0.01.0E-41.8E-5
constantcSubAdultFemaleMethanConversionFractionfraction of gross energy in feed converted to CH4 [animal]DOUBLE-0.00.10.055
constantcSubAdultFemaleWeightWeight per Animal and Day SubAdult FemaleDOUBLEg/animal0.01000000.0150000.0
constantcSubAdultMaleMethanConversionFractionfraction of gross energy in feed converted to CH4 [animal]DOUBLE-0.00.10.055
constantcSubAdultMaleWeightWeight per Animal and Day SubAdult MaleDOUBLEg/animal0.01000000.0185000.0
inputiAdultFemaleNo. of head of livestockDOUBLEanimal0.01000.020.0
inputiAdultMaleNo. of head of livestockDOUBLEanimal0.01000.020.0
inputiEnergyConsumptionTotal Energy Consumption of the livestockDOUBLEJ0.01.0E820.0
inputiJuvenileFemaleNo. of head of livestockDOUBLEanimal0.01000.020.0
inputiJuvenileMaleNo. of head of livestockDOUBLEanimal0.01000.020.0
inputiSubAdultFemaleNo. of head of livestockDOUBLEanimal0.01000.020.0
inputiSubAdultMaleNo. of head of livestockDOUBLEanimal0.01000.020.0
outCH4emissionEnteric Fermentation Emission from a livestock categoryDOUBLEg CH4/d0.0500000.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
    Empty constructor used by class.forName()
  • 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<?>>
    Taken from IPCC Report 2006 Vol 4, Chapter 10: Emissions from Livestock and Manure Management: V4_10_Ch10_Livestock.pdf Emission factor development An emission factor for each animal category was developed following Equation 10.21: EQUATION 10.21 CH4 EMISSION FACTORS FOR ENTERIC FERMENTATION FROM A LIVESTOCK CATEGORY EF = (GE * (Ym / 100) / 55.56 Where: EF = emission factor, kg CH4 head-1 yr-1 GE = gross energy intake, MJ head-1 day-1 Ym = methane conversion factor, per cent of gross energy in feed converted to methane The factor 55.65 (MJ/kg CH4) is the energy content of methane This emission factor equation assumes that the emission factors are being developed for an animal category for an entire year (365 days).
    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

    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

    • MethaneEmission

      public MethaneEmission()
      Empty constructor used by class.forName()
  • Method Details

    • createVariables

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> createVariables()
      Taken from IPCC Report 2006 Vol 4, Chapter 10: Emissions from Livestock and Manure Management: V4_10_Ch10_Livestock.pdf Emission factor development An emission factor for each animal category was developed following Equation 10.21: EQUATION 10.21 CH4 EMISSION FACTORS FOR ENTERIC FERMENTATION FROM A LIVESTOCK CATEGORY EF = (GE * (Ym / 100) / 55.56 Where: EF = emission factor, kg CH4 head-1 yr-1 GE = gross energy intake, MJ head-1 day-1 Ym = methane conversion factor, per cent of gross energy in feed converted to methane The factor 55.65 (MJ/kg CH4) is the energy content of methane This emission factor equation assumes that the emission factors are being developed for an animal category for an entire year (365 days). While a full year emission factor is typically used, in some circumstances the animal category may be defined for a shorter period (e.g., for the wet season of the year or for a 150-day feedlot feeding period). In this case, the emission factor would be estimated for the specific period (e.g., the wet season) and the 365 days would be replaced by the number of days in the period. The definition of the period to which the emission factor applies is described in Section 10.2.
      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()
    • 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:
      • net.simplace.simulation.model.FWSimComponent#clone(net.simplace.simulation.util.FWSimVarMap)