Class BiogasToGridModule
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.processmodel.ProcessModule
neqsim.process.processmodel.biorefinery.BiogasToGridModule
- All Implemented Interfaces:
Serializable, Runnable, SimulationInterface, NamedInterface
Pre-built biorefinery module for biogas-to-grid injection.
Composes an AnaerobicDigester, BiogasUpgrader, compressor, and cooler into a
complete biogas-to-grid process. The module takes a substrate feed stream and produces a
grid-quality biomethane stream at the specified injection pressure.
The internal process is:
- Anaerobic digestion of substrate feed to produce raw biogas
- Biogas upgrading (PSA, membrane, water scrubbing, or amine) to biomethane
- Compression to grid injection pressure
- Cooling to grid injection temperature
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate StreamInterfaceprivate Compressorprivate doubleprivate Coolerprivate doubleprivate StreamInterfaceprivate AnaerobicDigesterprivate doubleAnaerobic digester temperature in Celsius.private StreamInterfaceprivate doubleTarget grid injection pressure in bara.private doubleTarget grid injection temperature in Celsius.private booleanprivate doubleHydraulic retention time in days.private static final org.apache.logging.log4j.Loggerprivate StreamInterfaceprivate static final longprivate AnaerobicDigester.SubstrateTypeSubstrate type for digester.private BiogasUpgraderUpgrading technology.Fields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionBiogasToGridModule(String name) Creates a biogas-to-grid module with the given name. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the biomethane flow rate.Returns the biomethane output stream (grid-quality gas).doubleReturns the compressor power.doubleReturns the cooler duty.Returns the digestate output stream.Returns the off-gas stream from upgrading.Returns a results map.voidBuilds and runs the complete biogas-to-grid process.voidsetDigesterTemperatureC(double temperatureC) Sets the digester temperature.voidsetFeedStream(StreamInterface feed) Sets the feed stream for the module.voidsetGridPressureBara(double pressureBara) Sets the grid injection pressure.voidsetGridTemperatureC(double temperatureC) Sets the grid injection temperature.voidsetHydraulicRetentionTimeDays(double days) Sets the hydraulic retention time.voidsetSubstrateType(AnaerobicDigester.SubstrateType substrate) Sets the substrate type for digestion.voidSets the upgrading technology.toJson()Returns a JSON string of results.Methods inherited from class ProcessModule
add, add, buildModelGraph, checkMassBalance, checkMassBalance, checkModulesRecycles, copy, findBottleneck, getAddedModules, getAddedUnitOperations, getAllProcessSystems, getCalculationOrder, getCapacityUtilizationSummary, getConstrainedEquipment, getEquipmentNearCapacityLimit, getFailedMassBalance, getFailedMassBalance, getFailedMassBalance, getGraphSummary, getMeasurementDevice, getModulesIndex, getOperationsIndex, getProgressListener, getReport, getReport_json, getSubSystemCount, getUnit, hasRecycleLoops, isAnyEquipmentOverloaded, isAnyHardLimitExceeded, recyclesSolved, run_step, runAsTask, runAsThread, runWithCallback, setProgressListener, solved, validateStructureMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagNumber, setName, setTagNumberMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, getTagNumber, setName, setTagName, setTagNumberMethods inherited from interface SimulationInterface
run, run_step, runTransient, runTransient
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.apache.logging.log4j.Logger logger -
gridPressureBara
private double gridPressureBaraTarget grid injection pressure in bara. -
gridTemperatureC
private double gridTemperatureCTarget grid injection temperature in Celsius. -
digesterTemperatureC
private double digesterTemperatureCAnaerobic digester temperature in Celsius. -
hydraulicRetentionTimeDays
private double hydraulicRetentionTimeDaysHydraulic retention time in days. -
upgradingTechnology
Upgrading technology. -
substrateType
Substrate type for digester. -
digester
-
upgrader
-
compressor
-
cooler
-
feedStream
-
biomethaneOutStream
-
offgasStream
-
digestateStream
-
biomethaneFlowNm3PerHour
private double biomethaneFlowNm3PerHour -
compressorPowerKW
private double compressorPowerKW -
coolerDutyKW
private double coolerDutyKW -
hasRun
private boolean hasRun
-
-
Constructor Details
-
BiogasToGridModule
Creates a biogas-to-grid module with the given name.- Parameters:
name- module name
-
-
Method Details
-
setGridPressureBara
public void setGridPressureBara(double pressureBara) Sets the grid injection pressure.- Parameters:
pressureBara- grid pressure in bara
-
setGridTemperatureC
public void setGridTemperatureC(double temperatureC) Sets the grid injection temperature.- Parameters:
temperatureC- grid temperature in Celsius
-
setDigesterTemperatureC
public void setDigesterTemperatureC(double temperatureC) Sets the digester temperature.- Parameters:
temperatureC- digester temperature in Celsius
-
setHydraulicRetentionTimeDays
public void setHydraulicRetentionTimeDays(double days) Sets the hydraulic retention time.- Parameters:
days- retention time in days
-
setUpgradingTechnology
Sets the upgrading technology.- Parameters:
technology- upgrading technology
-
setSubstrateType
Sets the substrate type for digestion.- Parameters:
substrate- substrate type
-
setFeedStream
Sets the feed stream for the module.- Parameters:
feed- substrate feed stream
-
getBiomethaneOutStream
Returns the biomethane output stream (grid-quality gas).- Returns:
- biomethane output stream
-
getOffgasStream
Returns the off-gas stream from upgrading.- Returns:
- off-gas stream
-
getDigestateStream
Returns the digestate output stream.- Returns:
- digestate stream
-
getBiomethaneFlowNm3PerHour
public double getBiomethaneFlowNm3PerHour()Returns the biomethane flow rate.- Returns:
- biomethane flow in Nm3/hr
-
getCompressorPowerKW
public double getCompressorPowerKW()Returns the compressor power.- Returns:
- compressor power in kW
-
getCoolerDutyKW
public double getCoolerDutyKW()Returns the cooler duty.- Returns:
- cooler duty in kW
-
run
Builds and runs the complete biogas-to-grid process.- Specified by:
runin interfaceSimulationInterface- Overrides:
runin classProcessModule- Parameters:
id- calculation identifier
-
getResults
-
toJson
-