FCSys.Species.O2.Gas

O2 gas

Information

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

Package Content

NameDescription
FCSys.Species.O2.Gas.Fixed Fixed Fixed properties

FCSys.Species.O2.Gas.Fixed FCSys.Species.O2.Gas.Fixed

Fixed properties FCSys.Species.O2.Gas.Fixed

Information

Assumptions:

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

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

Table 1: Properties of O2 gas at 1 atm [Incropera2002, pp. 920–921]
T
/U.K
cp*U.kg*U.K
/(U.J*Data.m)
η
*U.Pa*U.s
θ*U.W
/(U.m*U.K)
1000.962e31/76.4e-71/9.25e-3
1500.921e31/114.8e-71/13.8e-3
2000.915e31/147.5e-71/18.3e-3
2500.915e31/178.6e-71/22.6e-3
3000.920e31/207.2e-71/26.8e-3
3500.929e31/233.5e-71/29.6e-3
4000.942e31/258.2e-71/33.0e-3
4500.956e31/281.4e-71/36.3e-3
5000.972e31/303.3e-71/41.2e-3
5500.988e31/324.0e-71/44.1e-3
6001.003e31/343.7e-71/47.3e-3
7001.031e31/380.8e-71/52.8e-3
8001.054e31/415.2e-71/58.9e-3
9001.074e31/447.2e-71/64.9e-3
10001.090e31/477.0e-71/71.0e-3
11001.103e31/505.5e-71/75.8e-3
12001.115e31/532.5e-71/81.9e-3
13001.125e31/588.4e-71/87.1e-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.O2.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_O2Initial 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]
Advanced
Pressurep_stop-Modelica.Constants.infPressure below which the simulation should terminate [M/(L.T2)]

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.O2.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/(20.72e-6*U.Pa*U.s),
    redeclare parameter Q.ResistivityThermal theta=U.m*U.K/(26.8e-3*U.W),
    final tauprime,
    final N0,
    n_chem=1,
    p_IC=environment.p_O2);

  // See the documentation for a table of values.

  parameter Q.Pressure p_stop=-Modelica.Constants.inf 
    "Pressure below which the simulation should terminate";

equation 
  if p_stop > 0 then
    when p < p_stop then
      terminate("There is no more " + Data.formula + ".");
    end when;
  end if;

end Fixed;