FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases

Conditions for a BoundaryBus connector

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Gas Gas Condition for gas
FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Graphite Graphite Condition for graphite
FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Ionomer Ionomer Condition for ionomer
FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Liquid Liquid Condition for liquid
FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.EmptyPhase EmptyPhase Empty condition for a phase (no species)

FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Gas FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Gas

Condition for gas FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Gas

Information

Extends from EmptyPhase (Empty condition for a phase (no species)).

Parameters

TypeNameDefaultDescription
Species
BooleaninclH2falseInclude H2
SourceH2 Include H2
BooleaninclH2OfalseInclude H2O
SourceH2O H2O conditions
BooleaninclN2falseInclude N2
SourceN2 N2 conditions
BooleaninclO2falseInclude O2
SourceO2 O2 conditions

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for material, momentum, and energy
RealInputBusuInput bus for values of specified conditions
RealOutputBusyOutput bus of measurements

Modelica definition

model Gas "Condition for gas"

  extends EmptyPhase;

  // Conditionally include species.
  parameter Boolean inclH2=false "Include H2";

  Boundary.Single.Source H2 if inclH2 "Include H2";

  parameter Boolean inclH2O=false "Include H2O";

  Boundary.Single.Source H2O if inclH2O "H2O conditions";

  parameter Boolean inclN2=false "Include N2";

  Boundary.Single.Source N2 if inclN2 "N2 conditions";

  parameter Boolean inclO2=false "Include O2";

  Boundary.Single.Source O2 if inclO2 "O2 conditions";

equation 
  // H2
  connect(H2.boundary, boundary.H2);

  connect(u.H2, H2.u);

  connect(H2.y, y.H2);

  // H2O
  connect(H2O.boundary, boundary.H2O);

  connect(u.H2O, H2O.u);

  connect(H2O.y, y.H2O);

  // N2
  connect(N2.boundary, boundary.N2);

  connect(u.N2, N2.u);

  connect(N2.y, y.N2);

  // O2
  connect(O2.boundary, boundary.O2);

  connect(u.O2, O2.u);

  connect(O2.y, y.O2);
end Gas;

FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Graphite FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Graphite

Condition for graphite FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Graphite

Information

Extends from EmptyPhase (Empty condition for a phase (no species)).

Parameters

TypeNameDefaultDescription
Species
Boolean'inclC+'falseInclude C+
Temperature'C+'redeclare Conditions.ByConne…C+ conditions
Boolean'incle-'falseInclude e-
Source'e-' e- conditions

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for material, momentum, and energy
RealInputBusuInput bus for values of specified conditions
RealOutputBusyOutput bus of measurements

Modelica definition

model Graphite "Condition for graphite"

  extends EmptyPhase;

  // Conditionally include species.
  parameter Boolean 'inclC+'=false "Include C+";

  replaceable Conditions.ByConnector.ThermalDiffusive.Single.Temperature 'C+' 
    if 'inclC+' constrainedby 
    Conditions.ByConnector.ThermalDiffusive.Single.Partial "C+ conditions";

  parameter Boolean 'incle-'=false "Include e-";

  Boundary.Single.Source 'e-' if 'incle-' "e- conditions";

equation 
  // C+
  connect('C+'.therm, boundary.'C+');

  connect(u.'C+', 'C+'.u);

  connect('C+'.y, y.'C+');

  // e-
  connect('e-'.boundary, boundary.'e-');

  connect(u.'e-', 'e-'.u);

  connect('e-'.y, y.'e-');

end Graphite;

FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Ionomer FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Ionomer

Condition for ionomer FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Ionomer

Information

Extends from EmptyPhase (Empty condition for a phase (no species)).

Parameters

TypeNameDefaultDescription
Species
Boolean'inclSO3-'falseInclude C19HF37O5S- (abbreviated as SO3-)
HeatRate'SO3-'redeclare Conditions.ByConne…SO3- conditions
Boolean'inclH+'falseInclude H+
Source'H+' H+ conditions
BooleaninclH2OfalseInclude H2O
SourceH2O H2O conditions

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for material, momentum, and energy
RealInputBusuInput bus for values of specified conditions
RealOutputBusyOutput bus of measurements

Modelica definition

model Ionomer "Condition for ionomer"

  extends EmptyPhase;

  // Conditionally include species.
  parameter Boolean 'inclSO3-'=false 
    "Include C19HF37O5S- (abbreviated as SO3-)";

  replaceable Conditions.ByConnector.ThermalDiffusive.Single.HeatRate 'SO3-' 
    if 'inclSO3-' constrainedby 
    Conditions.ByConnector.ThermalDiffusive.Single.Partial "SO3- conditions";

  parameter Boolean 'inclH+'=false "Include H+";

  Boundary.Single.Source 'H+' if 'inclH+' "H+ conditions";

  parameter Boolean inclH2O=false "Include H2O";

  Boundary.Single.Source H2O if inclH2O "H2O conditions";

equation 
  // SO3-
  connect('SO3-'.therm, boundary.'SO3-');

  connect(u.'SO3-', 'SO3-'.u);

  connect('SO3-'.y, y.'SO3-');

  // H+
  connect('H+'.boundary, boundary.'H+');

  connect(u.'H+', 'H+'.u);

  connect('H+'.y, y.'H+');

  // H2O
  connect(H2O.boundary, boundary.H2O);

  connect(u.H2O, H2O.u);

  connect(H2O.y, y.H2O);

end Ionomer;

FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Liquid FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Liquid

Condition for liquid FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.Liquid

Information

Extends from EmptyPhase (Empty condition for a phase (no species)).

Parameters

TypeNameDefaultDescription
Species
BooleaninclH2OfalseInclude H2O
SourceH2O H2O conditions

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for material, momentum, and energy
RealInputBusuInput bus for values of specified conditions
RealOutputBusyOutput bus of measurements

Modelica definition

model Liquid "Condition for liquid"

  extends EmptyPhase;

  // Conditionally include species.
  parameter Boolean inclH2O=false "Include H2O";

  Boundary.Single.Source H2O if inclH2O "H2O conditions";

equation 
  // H2O
  connect(H2O.boundary, boundary.H2O);

  connect(u.H2O, H2O.u);

  connect(H2O.y, y.H2O);

end Liquid;

FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.EmptyPhase FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.EmptyPhase

Empty condition for a phase (no species) FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases.EmptyPhase

Information

Extends from FCSys.Icons.Conditions.SingleShort (Short icon for a single-connector boundary condition).

Connectors

TypeNameDescription
BoundaryBusboundaryMulti-species connector for material, momentum, and energy
RealInputBusuInput bus for values of specified conditions
RealOutputBusyOutput bus of measurements

Modelica definition

model EmptyPhase "Empty condition for a phase (no species)"
  extends FCSys.Icons.Conditions.SingleShort;

  Connectors.BoundaryBus boundary 
    "Multi-species connector for material, momentum, and energy";
  Connectors.RealInputBus u "Input bus for values of specified conditions";

  Connectors.RealOutputBus y "Output bus of measurements";

end EmptyPhase;