## FCSys.Species.H2O.Ionomer

H2O in ionomer

### Information

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

### Package Content

Name | Description
--- | ---
Fixed | Fixed properties

## FCSys.Species.H2O.Ionomer.Fixed

Fixed properties

### Information

Assumptions:

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

For more information, please see the Species model.

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Integer | n_inter | 0 | Number of exchange connections with other phases
Material properties
replaceable package Data | Characteristics.H2O.Ionomer | Characteristic data
Continuity | zeta | Data.zeta(T, v) | Continuity [L.M/(N.T)]
Independence factors
NumberAbsolute | k_intra_Phi[n_intra, n_trans] | ones(n_intra, n_trans) | For translational exchange among species within the phase [1]
NumberAbsolute | k_intra_Q[n_intra] | ones(n_intra) | For thermal exchange among species within the phase [1]
Initialization
Velocity | phi.start[n_trans] | 0 | Velocity [L/T]
Current | I.start[n_trans] | 0 | Current [N/T]
Velocity | phi_boundaries.start[n_trans, Side] | 0 | Normal velocities at the boundaries [L/T]
Force | f.start[n_trans] | 0 | Total normal translational force on pairs of boundaries [L.M/T2]
Force | minusDeltaf.start[n_trans] | 0 | Dynamic and nonequilibrium compression forces [L.M/T2]
Geometry
Length | kL[:] | L[cartTrans] | Effective transport length [L]
Initialization
Init | initMaterial | Init.none | Method of initializing the material state
Init | initEnergy | Init.temperature | Method of initializing the thermal state
NumberAbsolute | lambda_IC | 14*environment.RH | Initial ratio of H2O molecules to SO3- end-groups [1]
Assumptions
Integer | n_trans | 1 | Number of transport axes
Integer | n_chem | 1 | Number of reaction and phase change processes
Formulation of the conservation equations
Boolean | consRot | false | Conserve rotational momentum
ConsTrans | consTransX | ConsTrans.dynamic | X-axis translational momentum
ConsTrans | consTransY | ConsTrans.dynamic | Y-axis translational momentum
ConsTrans | consTransZ | ConsTrans.dynamic | Z-axis translational momentum
ConsThermo | consEnergy | ConsThermo.dynamic | Energy
Axes with upstream discretization
Boolean | upstreamX | true | X
Boolean | upstreamY | true | Y
Boolean | upstreamZ | true | Z
Flow conditions
Boolean | approxVelocity | true | Calculate normal boundary velocities assuming uniform density
NumberAbsolute | Nu_Phi[Axis] | {4,4,4} | Translational Nusselt numbers [1]
NumberAbsolute | Nu_Q | 1 | Thermal Nusselt number [1]
Advanced
Amount | N0 | 0 | Nominal amount of material to prevent depletion [N]

### Connectors

Type | Name | Description
--- | --- | ---
Intra | intra[n_intra] | Connectors to exchange translational momentum and energy within the phase
Inter | inter[n_inter] | Connectors to exchange translational momentum and energy with all other species
Dalton | dalton | Connector for additivity of pressure
Boundary | boundaries[n_trans, Side] | Connectors for transport
Chemical | chemical[n_chem] | Connector for reactions and phase change
Material properties
replaceable package Data | Characteristic data

### Modelica definition

    model Fixed "Fixed properties"

      extends Fluid(
        redeclare replaceable package Data = Characteristics.H2O.Ionomer,
        redeclare parameter Q.Mobility mu=Data.mu(),
        redeclare parameter Q.TimeAbsolute nu=Data.nu(),
        redeclare parameter Q.Fluidity eta=Data.eta(),
        redeclare parameter Q.ResistivityThermal theta=Data.theta(),
        final N_IC,
        final h_IC,
        final g_IC,
        final rho_IC,
        final p_IC,
        final V_IC,
        final T_IC,
        final consMaterial,
        final tauprime,
        n_chem=1,
        final initMaterial=Init.none);

      parameter Q.NumberAbsolute lambda_IC=14*environment.RH
        "Initial ratio of H2O molecules to SO3- end-groups";

      Q.NumberAbsolute lambda(start=lambda_IC, fixed=true)
        "Ratio of H2O molecules to SO3- end-groups";

    equation
      lambda*v = Characteristics.'SO3-'.Ionomer.b_v[1, 1];

    end Fixed;