## FCSys.Conditions.ByConnector.BoundaryBus.Single.Phases

Conditions for a BoundaryBus connector

### Information

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

### Package Content

Name | Description
--- | ---
Gas | Condition for gas
Graphite | Condition for graphite
Ionomer | Condition for ionomer
Liquid | Condition for liquid
EmptyPhase | Empty condition for a phase (no species)

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

Condition for gas

### Information

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Species
Boolean | inclH2 | false | Include H2
Source | H2 |  | Include H2
Boolean | inclH2O | false | Include H2O
Source | H2O |  | H2O conditions
Boolean | inclN2 | false | Include N2
Source | N2 |  | N2 conditions
Boolean | inclO2 | false | Include O2
Source | O2 |  | O2 conditions

### Connectors

Type | Name | Description
--- | --- | ---
BoundaryBus | boundary | Multi-species connector for material, momentum, and energy
RealInputBus | u | Input bus for values of specified conditions
RealOutputBus | y | Output 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

Condition for graphite

### Information

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Species
Boolean | 'inclC+' | false | Include C+
Temperature | 'C+' | redeclare Conditions.ByConne… | C+ conditions
Boolean | 'incle-' | false | Include e-
Source | 'e-' |  | e- conditions

### Connectors

Type | Name | Description
--- | --- | ---
BoundaryBus | boundary | Multi-species connector for material, momentum, and energy
RealInputBus | u | Input bus for values of specified conditions
RealOutputBus | y | Output 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

Condition for ionomer

### Information

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Species
Boolean | 'inclSO3-' | false | Include C19HF37O5S- (abbreviated as SO3-)
HeatRate | 'SO3-' | redeclare Conditions.ByConne… | SO3- conditions
Boolean | 'inclH+' | false | Include H+
Source | 'H+' |  | H+ conditions
Boolean | inclH2O | false | Include H2O
Source | H2O |  | H2O conditions

### Connectors

Type | Name | Description
--- | --- | ---
BoundaryBus | boundary | Multi-species connector for material, momentum, and energy
RealInputBus | u | Input bus for values of specified conditions
RealOutputBus | y | Output 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

Condition for liquid

### Information

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Species
Boolean | inclH2O | false | Include H2O
Source | H2O |  | H2O conditions

### Connectors

Type | Name | Description
--- | --- | ---
BoundaryBus | boundary | Multi-species connector for material, momentum, and energy
RealInputBus | u | Input bus for values of specified conditions
RealOutputBus | y | Output 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

Empty condition for a phase (no species)

### Information

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

### Connectors

Type | Name | Description
--- | --- | ---
BoundaryBus | boundary | Multi-species connector for material, momentum, and energy
RealInputBus | u | Input bus for values of specified conditions
RealOutputBus | y | Output 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;