Class FuelCell
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.TwoPortEquipment
neqsim.process.equipment.powergeneration.FuelCell
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
FuelCell class representing a simple hydrogen fuel cell.
- Author:
- OpenAI
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate double(package private) static org.apache.logging.log4j.LoggerLogger object for class.private StreamInterfaceprivate doubleprivate static final longSerialization version UID.Fields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionFuelCell()Constructor for FuelCell.Constructor for FuelCell.FuelCell(String name, StreamInterface fuelStream, StreamInterface oxidantStream) Constructor for FuelCell. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetter for the fieldefficiency.doubleGetter for the fieldheatLoss.Getter for the fieldoxidantStream.doublegetPower()Getter for the fieldpower.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetEfficiency(double efficiency) Setter for the fieldefficiency.voidsetOxidantStream(StreamInterface stream) Setter for the fieldoxidantStream.Methods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletStream, setInletTemperature, setOutletPressure, setOutletStream, setOutletTemperature, toJson, toJson, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, displayResult, equals, getConditionAnalysisMessage, getController, getEnergyStream, getEntropyProduction, getExergyChange, getMassBalance, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, initMechanicalDesign, isActive, isActive, isSetEnergyStream, reportResults, run_step, runConditionAnalysis, setController, setEnergyStream, setEnergyStream, setFlowValveController, setMinimumFlow, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, solvedMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
getCapacityDuty, getCapacityMax, getExergyChange, getFluid, getRestCapacity, needRecalculationMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from interface TwoPortInterface
getInStream, getOutStream
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
oxidantStream
-
efficiency
private double efficiency -
power
private double power -
heatLoss
private double heatLoss
-
-
Constructor Details
-
FuelCell
public FuelCell()Constructor for FuelCell.
-
FuelCell
-
FuelCell
Constructor for FuelCell.
- Parameters:
name- name of unit operationfuelStream- inlet fuel streamoxidantStream- inlet oxidant stream
-
-
Method Details
-
setOxidantStream
Setter for the field
oxidantStream.- Parameters:
stream- oxidant stream
-
getOxidantStream
Getter for the field
oxidantStream.- Returns:
- oxidant stream
-
setEfficiency
public void setEfficiency(double efficiency) Setter for the field
efficiency.- Parameters:
efficiency- electrical efficiency of the cell
-
getEfficiency
public double getEfficiency()Getter for the field
efficiency.- Returns:
- efficiency of the cell
-
getPower
public double getPower()Getter for the field
power.- Returns:
- electrical power produced [W]
-
getHeatLoss
public double getHeatLoss()Getter for the field
heatLoss.- Returns:
- heat lost from the cell [W]
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-