FCSys.Species.N2.Gas

N2 gas

Information

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

Package Content

NameDescription
FCSys.Species.N2.Gas.Fixed Fixed Fixed properties

FCSys.Species.N2.Gas.Fixed FCSys.Species.N2.Gas.Fixed

Fixed properties FCSys.Species.N2.Gas.Fixed

Information

Assumptions:

  1. The generalized resistivities (η, θ) are fixed (e.g., independent of thermodynamic state).
  2. Ideal gas
  3. Fixed specific heat capacity (independent of temperature)

The default specific heat capacity (via bc = [1.041e3*U.J*Data.m/(U.kg*U.K)]) and resistivities (η = 1/(17.82e-6*U.Pa*U.s) and θ = U.m*U.K/(25.9e-3*U.W))) are based on data of gas at 1 atm and 300 K from Incropera and DeWitt [Incropera2002, p. 920]. The integration offset for specific entropy (Bc) is set such that the specific entropy is 191.610 J/(mol·K) at 25 °C and po (1 bar). This is the value from Table B in [McBride2002]. Additional data is listed in Table 1.
Table 1: Properties of N2 gas at 1 atm [Incropera2002, p. 920]
T
/U.K
cp*U.kg*U.K
/(U.J*Data.m)
η
*U.Pa*U.s
θ*U.W
/(U.m*U.K)
1001.070e31/68.8e-71/9.58e-3
1501.050e31/100.6e-71/13.9e-3
2001.043e31/129.2e-71/18.3e-3
2501.042e31/154.9e-71/22.2e-3
3001.041e31/178.2e-71/25.9e-3
3501.042e31/200.0e-71/29.3e-3
4001.045e31/220.4e-71/32.7e-3
4501.050e31/239.6e-71/35.8e-3
5001.056e31/257.7e-71/38.9e-3
5501.065e31/274.7e-71/41.7e-3
6001.075e31/290.8e-71/44.6e-3
7001.098e31/320.1e-71/49.9e-3
8001.220e3 [sic]1/349.1e-71/54.8e-3
9001.146e31/375.3e-71/59.7e-3
10001.167e31/399.9e-71/64.7e-3
11001.187e31/423.2e-71/70.0e-3
12001.204e31/445.3e-71/75.8e-3
13001.219e31/466.2e-71/81.0e-3

The fluidity of air at 15 °C and 1 atm is given by η = 1/(17.8e-6*U.Pa*U.s) (http://en.wikipedia.org/wiki/Viscosity).

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.N2.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_dry - environm…Initial 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_chem0Number 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"
  import FCSys.Utilities.Polynomial;

  extends Fluid(
    redeclare replaceable package Data = FCSys.Characteristics.N2.Gas (
        b_v=[1],
        n_v={-1,0},
        n_c=0,
        T_lim_c={0,Modelica.Constants.inf},
        b_c=[1041*U.J*Data.m/(U.kg*U.K)],
        B_c=[Data.Deltah0_f - (1041*U.J*Data.m/U.kg)*298.15, 191.610*U.J/(U.mol*
            U.K) - (1041*U.J*Data.m/(U.kg*U.K))*log(298.15*U.K)]),
    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/(17.82e-6*U.Pa*U.s),
    redeclare parameter Q.ResistivityThermal theta=U.m*U.K/(25.9e-3*U.W),
    final tauprime,
    final N0,
    n_chem=0,
    p_IC=environment.p_dry - environment.p_O2);

  // See the documentation for a table of values.

end Fixed;