FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases

Conditions for a BoundaryBus connector

Information

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

Package Content

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

FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Gas FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Gas

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

Information

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

Parameters

TypeNameDefaultDescription
Species
BooleaninclH2falseInclude H2
TemperatureH2 H2 conditions
BooleaninclH2OfalseInclude H2O
TemperatureH2O H2O conditions
BooleaninclN2falseInclude H2
TemperatureN2 N2 conditions
BooleaninclO2falseInclude O2
TemperatureO2 O2 conditions

Connectors

TypeNameDescription
BoundaryBusnegativeNegative-side multi-species connector for material, momentum, and energy
BoundaryBuspositivePositive-side multi-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.Pair.Temperature H2 if inclH2 "H2 conditions";

  parameter Boolean inclH2O=false "Include H2O";

  Boundary.Pair.Temperature H2O if inclH2O "H2O conditions";

  parameter Boolean inclN2=false "Include H2";

  Boundary.Pair.Temperature N2 if inclN2 "N2 conditions";

  parameter Boolean inclO2=false "Include O2";

  Boundary.Pair.Temperature O2 if inclO2 "O2 conditions";

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

  connect(H2.positive, positive.H2);

  connect(u.H2, H2.u);

  connect(H2.y, y.H2);

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

  connect(H2O.positive, positive.H2O);

  connect(u.H2O, H2O.u);

  connect(H2O.y, y.H2O);

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

  connect(N2.positive, positive.N2);

  connect(u.N2, N2.u);

  connect(N2.y, y.N2);

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

  connect(O2.positive, positive.O2);

  connect(u.O2, O2.u);

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

FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Graphite FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Graphite

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

Information

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

Parameters

TypeNameDefaultDescription
Species
Boolean'inclC+'falseInclude C+
HeatRate'C+' C+ conditions
Boolean'incle-'falseInclude e-
Temperature'e-' e- conditions

Connectors

TypeNameDescription
BoundaryBusnegativeNegative-side multi-species connector for material, momentum, and energy
BoundaryBuspositivePositive-side multi-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+";

  ThermalDiffusive.Pair.HeatRate 'C+' if 'inclC+' "C+ conditions";

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

  Boundary.Pair.Temperature 'e-' if 'incle-' "e- conditions";

equation 
  // C+
  connect('C+'.negative, negative.'C+');

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

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

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

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

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

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

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

end Graphite;

FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Ionomer FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Ionomer

Condition for ionomer FCSys.Conditions.ByConnector.BoundaryBus.Pair.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-' SO3- conditions
Boolean'inclH+'falseInclude H+
Temperature'H+' H+ conditions
BooleaninclH2OfalseInclude H2O
TemperatureH2O H2O conditions

Connectors

TypeNameDescription
BoundaryBusnegativeNegative-side multi-species connector for material, momentum, and energy
BoundaryBuspositivePositive-side multi-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-)";

  ThermalDiffusive.Pair.HeatRate 'SO3-' if 'inclSO3-' "SO3- conditions";

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

  Boundary.Pair.Temperature 'H+' if 'inclH+' "H+ conditions";

  parameter Boolean inclH2O=false "Include H2O";

  Boundary.Pair.Temperature H2O if inclH2O "H2O conditions";

equation 
  // C19HF37O5S-
  connect('SO3-'.negative, negative.'SO3-');

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

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

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

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

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

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

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

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

  connect(H2O.positive, positive.H2O);

  connect(u.H2O, H2O.u);

  connect(H2O.y, y.H2O);

end Ionomer;

FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Liquid FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.Liquid

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

Information

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

Parameters

TypeNameDefaultDescription
Species
BooleaninclH2OfalseInclude H2O
TemperatureH2O H2O conditions

Connectors

TypeNameDescription
BoundaryBusnegativeNegative-side multi-species connector for material, momentum, and energy
BoundaryBuspositivePositive-side multi-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.Pair.Temperature H2O if inclH2O "H2O conditions";

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

  connect(H2O.positive, positive.H2O);

  connect(u.H2O, H2O.u);

  connect(H2O.y, y.H2O);

end Liquid;

FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.EmptyPhase FCSys.Conditions.ByConnector.BoundaryBus.Pair.Phases.EmptyPhase

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

Information

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

Connectors

TypeNameDescription
BoundaryBusnegativeNegative-side multi-species connector for material, momentum, and energy
BoundaryBuspositivePositive-side multi-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.PairShort;

  Connectors.BoundaryBus negative 
    "Negative-side multi-species connector for material, momentum, and energy";
  Connectors.BoundaryBus positive 
    "Positive-side 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;