modelGasNode
Information
This components allows to model an ideally mixed gas volume of constant size.
It is assumed that the volume is high enough regarding the flow at boundaries to consider a zero velocity in the volume. Indeed, all the kinetic energy from boundaries is instantanetly dissipated to heat.
First, the Total properties derives from the medium class herited from the BasesProperties model of the Medium package.
Where:
-
mis the mass contains in the gas node -
medium.dis the density of the medium in the gas node -
Vis the geometrical volume of the gas node -
Uis the total internal energy in the gas node -
medium.uis the specific internal energy of the medium in the gas node -
mXiis the vector of independent mass of each species in the gas node -
medium.Xiis the vector of independent mass fraction of each species of the medium in the gas node -
mCis the vector of independent mass of each traces species in the gas node -
cis the vector of independent mass concentration of each traces species of the medium in the gas node
The dynamic behavior of the total properties derives from the first principe of thermodynamics for the energy balance and from the mass conservation for the mass balance. The balance is performed from boundaries (ports):
Where:
-
m_flowis the net mass flow rate coming of leaving the gas node from the mass flow rate balance between all the ports -
mXi_flowis the vector of net independent mass flow rate coming of leaving the gas node from the mass flow rate balance between all the ports -
Q_flowis the net heat flow rate through the frontiers of the gas node from the heat flow rate balance of the heatPort -
H_flowis the net enthalpy flow rate from the balance between the entering and leaving enthalpy transported by the mass flow rate at boundaries
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts | 0 | Number of fluidport |
| SI.Volume | V | 1 | Geometric Volume of the gas node |
| Assumptions › Dynamics | |||
| Types.Dynamics | energyDynamics | Dynamics.FixedInitial | Formulation of energy balance |
| Types.Dynamics | massDynamics | Dynamics.FixedInitial | Formulation of mass balance |
| Types.Dynamics | substanceDynamics | massDynamics | Formulation of substance balance |
| Types.Dynamics | traceDynamics | massDynamics | Formulation of trace substance balance |
| Initialization | |||
| SI.AbsolutePressure | p_start | 101325 | Initial absolute static pressure |
| SI.Temperature | T_start | 293.15 | Initial temperature |
| Real | RH_start | 0.6 | Initial relative humidity (pmoisture/psat) <= 1 |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a[nPorts] | fluidPort | ||
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort | ||
| TAeZoSysPro.FluidDynamics.Interfaces.FlowPort_a | flowPort |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium | ||
| SI.Mass | m | Mass of mixture | |
| SI.Mass[Medium.nXi] | mXi | Masses of independent components in the fluid | |
| SI.Mass | mC | Masses of trace substances in the fluid | |
| Medium.ExtraProperty[Medium.nC] | C | Trace substance mixture content | |
| SI.InternalEnergy | U | Internal energy of mixing | |
| SI.MassFlowRate | mb_flow | Mass flows across boundaries | |
| SI.MassFlowRate | mbXi_flow | Substance mass flows across boundaries | |
| Medium.MassFlowRate[nPorts,Medium.nXi] | ports_mXi_flow | ||
| Medium.ExtraPropertyFlowRate | mbC_flow | Trace substance mass flows across boundaries | |
| SI.EnthalpyFlowRate | Hb_flow | Enthalpy flow across boundaries or energy source/sink | |
| SI.HeatFlowRate | Qb_flow | Heat flow across boundaries or energy source/sink |
Contents
| Name | Description |
|---|---|