modelPartialDistributedVolumeold

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.ExtraProperty[nV,Medium.nC]CsTrace substance mass-specific value
SI.MassFlowRate[nV]mb_flowsMass flow rate across volume interfaces (e.g., enthalpy flow, diffusion)
SI.MassFlowRate[nV]mb_volumesMass flow rate source/sinks within volumes
SI.HeatFlowRate[nV]Ub_flowsEnergy sources across volume interfaces (e.g., thermal diffusion)
SI.HeatFlowRate[nV]Ub_volumesEnergy source/sinks within volumes (e.g., ohmic heating, external convection)
SI.MassFlowRate[nV,Medium.nXi]mXib_flowsSpecies mass flow rates across volume interfaces
SI.MassFlowRate[nV,Medium.nXi]mXib_volumesSpecies mass flow rates source/sinks within volumes
SIadd.ExtraPropertyFlowRate[nV,Medium.nC]mCb_flowsTrace flow rate across volume interfaces (e.g., diffusion)
SIadd.ExtraPropertyFlowRate[nV,Medium.nC]mCb_volumesTrace flow rate source/sinks within volumes (e.g., chemical reactions, external convection)

Contents

NameDescription
Medium