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.Evaporation Evaporation Evaporation of H2O
FCSys.Subregions.Examples.PhaseChange.Hydration Hydration Test absorption of H2O vapor into the ionomer

FCSys.Subregions.Examples.PhaseChange.Evaporation FCSys.Subregions.Examples.PhaseChange.Evaporation

Evaporation of H2O FCSys.Subregions.Examples.PhaseChange.Evaporation

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+'trueCarbon 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 Evaporation "Evaporation of H2O"

  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,
    'inclC+'=true,
    subregion(liquid(inclH2O=inclH2O, H2O(epsilon_IC=0.001)), gas(H2O(p_IC=U.kPa))));

end Evaporation;

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

Test absorption of H2O vapor into the 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.HydrationLevel.

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)
BooleaninclH2OfalseWater vapor (H2O)
BooleaninclN2trueNitrogen (N2)
BooleaninclO2falseOxygen (O2)

Modelica definition

model Hydration 
  "Test absorption of H2O vapor into the ionomer"
  extends Examples.Subregion(
    'inclSO3-'=true,
    inclN2=true,
    inclH2=false,
    subregion(
      gas(N2(
          consMaterial=ConsThermo.IC,
          consEnergy=ConsThermo.IC,
          p_IC=environment.p)),
      liquid(inclH2O=true, H2O(
          consMaterial=ConsThermo.IC,
          consEnergy=ConsThermo.IC,
          N(stateSelect=StateSelect.always),
          epsilon_IC=0.3)),
      ionomer(
        inclH2O=true,
        'SO3-'(consEnergy=ConsThermo.IC,epsilon=0.3),
        H2O(lambda_IC=8,initEnergy=Init.none))),
    environment(T=333.15*U.K, RH=1));

end Hydration;