Class FuelCell

All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface

public class FuelCell extends TwoPortEquipment

FuelCell class representing a simple hydrogen fuel cell.

Author:
OpenAI
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • logger

      static org.apache.logging.log4j.Logger logger
      Logger object for class.
    • oxidantStream

      private StreamInterface oxidantStream
    • efficiency

      private double efficiency
    • power

      private double power
    • heatLoss

      private double heatLoss
  • Constructor Details

    • FuelCell

      public FuelCell()

      Constructor for FuelCell.

    • FuelCell

      public FuelCell(String name)

      Constructor for FuelCell.

      Parameters:
      name - name of unit operation
    • FuelCell

      public FuelCell(String name, StreamInterface fuelStream, StreamInterface oxidantStream)

      Constructor for FuelCell.

      Parameters:
      name - name of unit operation
      fuelStream - inlet fuel stream
      oxidantStream - inlet oxidant stream
  • Method Details

    • setOxidantStream

      public void setOxidantStream(StreamInterface stream)

      Setter for the field oxidantStream.

      Parameters:
      stream - oxidant stream
    • getOxidantStream

      public StreamInterface 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

      public void run(UUID id)

      In this method all thermodynamic and unit operations will be calculated in a steady state calculation.

      Parameters:
      id - UUID