modelPartialDistributedVolume
Base class for distributed 1-D volume models
Information
The following boundary flow and source terms are part of the energy balance and must be specified in an extending class:
- Hb_flows[nVs], enthalpy flow rate (e.g., moving solid through boundaries)
- Qb_flows[nVs], heat flow term (e.g., conductive heat flows across discritized boundaries)
- Qb_volumes[nVs], sources of energy that are calculated from volume element state (e.g., convection or internal heat generation)
The following Inputs need to be set in an extending class to complete the model:
- Vs[nVs], distributed volumes
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nV | 1 | Number of discrete volumes |
| Advanced › Dynamics | |||
| Dynamics | energyDynamics | Dynamics.DynamicFreeInitial | Formulation of energy balances |
| Dynamics | massDynamics | energyDynamics | Formulation of mass balances |
| Dynamics | substanceDynamics | massDynamics | Formulation of substance balances |
| Dynamics | traceDynamics | massDynamics | Formulation of trace substance balances |
| Initialization › Start Value: Absolute Pressure | |||
| SI.AbsolutePressure | ps_start | fill(Medium.p_default, nV) | Pressure |
| Initialization › Start Value: Temperature | |||
| Boolean | use_Ts_start | true | Use T_start if true, otherwise h_start |
| SI.Temperature[nV] | Ts_start | fill(Medium.T_default, nV) | Temperature |
| Initialization › Start Value: Specific Enthalpy | |||
| SI.SpecificEnthalpy | hs_start | {Medium.specificEnthalpy_pTX(ps_start[i], Ts_start[i], Xs_start[i, :]) for i in 1:nV} | Specific enthalpy |
| Initialization › Start Value: Species Mass Fraction | |||
| SI.MassFraction[nV,Medium.nX] | Xs_start | fillArray_1D(Medium.X_default, nV) | Mass fraction |
| Initialization › Start Value: Trace Substances | |||
| SIadd.ExtraProperty[nV,Medium.nC] | Cs_start | fill(0, nV, Medium.nC) | Mass-Specific value |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Volume[nV] | Vs | Discretized volumes | |
| Medium.BaseProperties | mediums | ||
| SI.Mass[nV] | ms | Mass | |
| SI.Energy[nV] | Us | Internal energy | |
| SI.Mass[nV,Medium.nXi] | mXis | Species mass | |
| SIadd.ExtraPropertyExtrinsic[nV,Medium.nC] | mCs | Trace substance extrinsic value | |
| SIadd.ExtraPropertyExtrinsic | mCs_scaled | Scaled trace substance mass for improved numerical stability | |
| SIadd.ExtraProperty[nV,Medium.nC] | Cs | Trace substance mass-specific value | |
| SI.MassFlowRate[nV] | mbs | Mass flow rate balances across volume interfaces (e.g., enthalpy flow, diffusion) and source/sinks within volumes | |
| SI.HeatFlowRate[nV] | Ubs | Energy sources across volume interfaces (e.g., thermal diffusion) and source/sinks within volumes | |
| SI.MassFlowRate[nV,Medium.nXi] | mXibs | Species mass flow rates across volume interfaces and source/sinks within volumes | |
| SIadd.ExtraPropertyFlowRate[nV,Medium.nC] | mCbs | Trace flow rate across volume interfaces (e.g., diffusion) and source/sinks within volumes (e.g., chemical reactions, external convection) |
Contents
| Name | Description |
|---|---|