FCSys.Subregions.Examples.PhaseChange

Examples of phase change

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

NameDescription
FCSys.Subregions.Examples.PhaseChange.Condensation Condensation Condensation of super-saturated H2O vapor
FCSys.Subregions.Examples.PhaseChange.Hydration Hydration Test absorption and desorption of H2O between the gas and ionomer

FCSys.Subregions.Examples.PhaseChange.Condensation FCSys.Subregions.Examples.PhaseChange.Condensation

Condensation of super-saturated H2O vapor FCSys.Subregions.Examples.PhaseChange.Condensation

Information

Initially, the water vapor is below saturation and a small amount of liquid water is present (1/1000 of the total volume). Some of the liquid evaporates until saturation is reached. The boundaries are adiabatic; therefore, the temperature of the liquid and the gas decreases due to the enthalpy of formation.

See also Characteristics.Examples.SaturationPressure. Extends from Examples.Subregion (Single subregion, with H2 by default).

Parameters

TypeNameDefaultDescription
Species
Boolean'inclC+'falseCarbon plus (C+)
Boolean'inclSO3-'falseNafion sulfonate (C19HF37O5S-, abbreviated as SO3-)
Boolean'incle-'falseElectrons (e-)
Boolean'inclH+'falseProtons (H+)
BooleaninclH2falseHydrogen (H2)
BooleaninclH2OtrueWater vapor (H2O)
BooleaninclN2falseNitrogen (N2)
BooleaninclO2falseOxygen (O2)

Modelica definition

model Condensation 
  "Condensation of super-saturated H2O vapor"

  output Q.Pressure p_sat=Characteristics.H2O.p_sat(subregion.gas.H2O.T) 
    "Saturation pressure via Modelica.Media";

  extends Examples.Subregion(
    inclH2O=true,
    inclH2=false,
    subregion(liquid(inclH2O=inclH2O, H2O(epsilon_IC=0.001)), gas(H2O(p_IC=30*U.kPa,
            initMaterial=FCSys.Species.Enumerations.Init.none))));

end Condensation;

FCSys.Subregions.Examples.PhaseChange.Hydration FCSys.Subregions.Examples.PhaseChange.Hydration

Test absorption and desorption of H2O between the gas and ionomer FCSys.Subregions.Examples.PhaseChange.Hydration

Information

The water vapor is held at saturation pressure at the environmental temperature Water is supplied as necessary to maintain this condition. The ionomer begins with hydration of λ = 8 and comes to equilibrium at approximately λ ≈ 14 in about a half an hour.

See also Characteristics.Examples.Hydration.

Extends from Examples.Subregion (Single subregion, with H2 by default).

Parameters

TypeNameDefaultDescription
Species
Boolean'inclC+'falseCarbon plus (C+)
Boolean'inclSO3-'trueNafion sulfonate (C19HF37O5S-, abbreviated as SO3-)
Boolean'incle-'falseElectrons (e-)
Boolean'inclH+'falseProtons (H+)
BooleaninclH2falseHydrogen (H2)
BooleaninclH2OtrueWater vapor (H2O)
BooleaninclN2falseNitrogen (N2)
BooleaninclO2falseOxygen (O2)

Modelica definition

model Hydration 
  "Test absorption and desorption of H2O between the gas and ionomer"
  extends Examples.Subregion(
    'inclSO3-'=true,
    inclH2O=true,
    inclH2=false,
    subregion(gas(H2O(consMaterial=ConsThermo.IC, N(stateSelect=StateSelect.always))),
        ionomer(
        inclH2O=true,
        'SO3-'(consEnergy=ConsThermo.IC),
        H2O(lambda_IC=8,initEnergy=Init.none))),
    environment(T=333.15*U.K, RH=1));

end Hydration;