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

TypeNameDefaultDescription
IntegernV1Number of discrete volumes
Advanced › Dynamics
DynamicsenergyDynamicsDynamics.DynamicFreeInitialFormulation of energy balances
DynamicsmassDynamicsenergyDynamicsFormulation of mass balances
DynamicssubstanceDynamicsmassDynamicsFormulation of substance balances
DynamicstraceDynamicsmassDynamicsFormulation of trace substance balances
Initialization › Start Value: Absolute Pressure
SI.AbsolutePressureps_startfill(Medium.p_default, nV)Pressure
Initialization › Start Value: Temperature
Booleanuse_Ts_starttrueUse T_start if true, otherwise h_start
SI.Temperature[nV]Ts_startfill(Medium.T_default, nV)Temperature
Initialization › Start Value: Specific Enthalpy
SI.SpecificEnthalpyhs_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_startfillArray_1D(Medium.X_default, nV)Mass fraction
Initialization › Start Value: Trace Substances
SIadd.ExtraProperty[nV,Medium.nC]Cs_startfill(0, nV, Medium.nC)Mass-Specific value

Components

TypeNameDefaultDescription
SI.Volume[nV]VsDiscretized volumes
Medium.BasePropertiesmediums
SI.Mass[nV]msMass
SI.Energy[nV]UsInternal energy
SI.Mass[nV,Medium.nXi]mXisSpecies mass
SIadd.ExtraPropertyExtrinsic[nV,Medium.nC]mCsTrace substance extrinsic value
SIadd.ExtraPropertyExtrinsicmCs_scaledScaled trace substance mass for improved numerical stability
SIadd.ExtraProperty[nV,Medium.nC]CsTrace substance mass-specific value
SI.MassFlowRate[nV]mbsMass flow rate balances across volume interfaces (e.g., enthalpy flow, diffusion) and source/sinks within volumes
SI.HeatFlowRate[nV]UbsEnergy sources across volume interfaces (e.g., thermal diffusion) and source/sinks within volumes
SI.MassFlowRate[nV,Medium.nXi]mXibsSpecies mass flow rates across volume interfaces and source/sinks within volumes
SIadd.ExtraPropertyFlowRate[nV,Medium.nC]mCbsTrace flow rate across volume interfaces (e.g., diffusion) and source/sinks within volumes (e.g., chemical reactions, external convection)

Contents

NameDescription
Medium