FCSys.Species.H2.Gas

H2 gas

Information

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

Package Content

NameDescription
FCSys.Species.H2.Gas.Fixed Fixed Fixed properties

FCSys.Species.H2.Gas.Fixed FCSys.Species.H2.Gas.Fixed

Fixed properties FCSys.Species.H2.Gas.Fixed

Information

Assumptions:

  1. The generalized resistivities (η, θ) are fixed (e.g., independent of thermodynamic state).
  2. Ideal gas

The default resistivities (η = 1/(89.6e-7*U.Pa*U.s) and θ = U.m*U.K/(183e-3*U.W)) are based on data of H2 gas at 1 atm and 300 K from Incropera and DeWitt [Incropera2002, pp. 919–920]. Table 1 lists the properties at other temperatures.

Table 1: Properties of H2 gas at 1 atm [Incropera2002, pp. 919–920].
T
/U.K
cp*U.kg*U.K
/(U.J*Data.m)
η
*U.Pa*U.s
θ*U.W
/(U.m*U.K)
10011.23e31/42.1e-71/67.0e-3
15012.60e31/56.0e-71/101e-3
20013.54e31/68.1e-71/131e-3
25014.06e31/78.9e-71/157e-3
30014.31e31/89.6e-71/183e-3
35014.43e31/98.8e-71/204e-3
40014.48e31/108.2e-71/226e-3
45014.50e31/117.2e-71/247e-3
50014.52e31/126.4e-71/266e-3
55014.53e31/134.3e-71/285e-3
60014.55e31/142.4e-71/305e-3
70014.61e31/157.8e-71/342e-3
80014.70e31/172.4e-71/378e-3
90014.83e31/186.5e-71/412e-3
100014.99e31/201.3e-71/448e-3
110015.17e31/213.0e-71/488e-3
120015.37e31/226.2e-71/528e-3
130015.59e31/238.5e-71/568e-3
140015.81e31/250.7e-71/610e-3
150016.02e31/262.7e-71/655e-3
160016.28e31/273.7e-71/697e-3
170016.58e31/284.9e-71/742e-3
180016.96e31/296.1e-71/786e-3
190017.49e31/307.2e-71/835e-3
200018.25e31/318.2e-71/878e-3

The specific heat capacity is not fixed because it would affect the chemical potential and result in an incorrect cell potential.

For more information, please see the Species model.

Extends from Fluid (Base model for a fluid species).

Parameters

TypeNameDefaultDescription
Integern_inter0Number of exchange connections with other phases
Material properties
replaceable package DataFCSys.Characteristics.H2.Gas…Characteristic data
Independence factors
NumberAbsolutek_intra_Phi[n_intra, n_trans]ones(n_intra, n_trans)For translational exchange among species within the phase [1]
NumberAbsolutek_intra_Q[n_intra]ones(n_intra)For thermal exchange among species within the phase [1]
Initialization
Velocityphi.start[n_trans]0Velocity [L/T]
CurrentI.start[n_trans]0Current [N/T]
Velocityphi_boundaries.start[n_trans, Side]0Normal velocities at the boundaries [L/T]
Forcef.start[n_trans]0Total normal translational force on pairs of boundaries [L.M/T2]
ForceminusDeltaf.start[n_trans]0Dynamic and nonequilibrium compression forces [L.M/T2]
Geometry
LengthkL[:]L[cartTrans]Effective transport length [L]
Initialization
InitinitMaterialInit.pressureMethod of initializing the material state
InitinitEnergyInit.temperatureMethod of initializing the thermal state
AmountN_IC Initial amount of material [N]
Densityrho_IC Initial density [N/L3]
VolumeV_IC Initial volume [L3]
PressureAbsolutep_ICenvironment.p_dryInitial pressure [M/(L.T2)]
TemperatureAbsoluteT_IC Initial temperature [L2.M/(N.T2)]
Potentialh_IC Initial specific enthalpy [L2.M/(N.T2)]
Potentialg_IC Initial Gibbs potential [L2.M/(N.T2)]
Assumptions
Integern_trans1Number of transport axes
Integern_chem1Number of reaction and phase change processes
Formulation of the conservation equations
ConsThermoconsMaterialConsThermo.dynamicMaterial
BooleanconsRotfalseConserve rotational momentum
ConsTransconsTransXConsTrans.dynamicX-axis translational momentum
ConsTransconsTransYConsTrans.dynamicY-axis translational momentum
ConsTransconsTransZConsTrans.dynamicZ-axis translational momentum
ConsThermoconsEnergyConsThermo.dynamicEnergy
Axes with upstream discretization
BooleanupstreamXtrueX
BooleanupstreamYtrueY
BooleanupstreamZtrueZ
Flow conditions
BooleanapproxVelocitytrueCalculate normal boundary velocities assuming uniform density
NumberAbsoluteNu_Phi[Axis]{4,4,4}Translational Nusselt numbers [1]
NumberAbsoluteNu_Q1Thermal Nusselt number [1]

Connectors

TypeNameDescription
Intraintra[n_intra]Connectors to exchange translational momentum and energy within the phase
Interinter[n_inter]Connectors to exchange translational momentum and energy with all other species
DaltondaltonConnector for additivity of pressure
Boundaryboundaries[n_trans, Side]Connectors for transport
Chemicalchemical[n_chem]Connector for reactions and phase change
Material properties
replaceable package DataCharacteristic data

Modelica definition

model Fixed "Fixed properties"
  extends Fluid(
    redeclare replaceable package Data = FCSys.Characteristics.H2.Gas (b_v=[1],
          n_v={-1,0}),
    redeclare parameter Q.Mobility mu=Data.mu(),
    redeclare parameter Q.TimeAbsolute nu=Data.nu(),
    redeclare parameter Q.Continuity zeta=Data.zeta(),
    redeclare parameter Q.Fluidity eta=1/(8.96e-6*U.Pa*U.s),
    redeclare parameter Q.ResistivityThermal theta=U.m*U.K/(0.183*U.W),
    final tauprime,
    final N0,
    n_chem=1,
    p_IC=environment.p_dry);

  // See the documentation for a table of values.

end Fixed;