modelPartialConductionElement
Extends from Interfaces.SISOBiFlow.
Information
Undirected implementation of the Conduction Element.
This model is an element with a fixed volume (fig. 1). The mass in the volume is assumed quasi-stationary (statically computed with volume and density), and the fore massflow is coupled to the rear massflow. Because of this the ConductionElement cannot be used as a loop breaker. The advantage is that multiple ConductionElements can be put behind each other without worrying about oscillations or fast eigenvalues between their masses. The ConductionElement implements equations for conservation of mass and energy for the fluid mass contained within it.
Different to the unidirectional ConductionElement, the model for forward massflow (see fig. 1) is valid for both flow directions.
Additionally the undirected Conduction Element offers more initialization methods for h. Additionally to initialize T or h by a parameter, one can choose to initialize with the incoming enthalpy from either one of the two ports, or use the correct one, depending on the massflow (option 'port'). The last option can lead to large nonlinear initialization problems, we advice to choose the port to initialize h from if known in advance (options 'rear' or 'fore').
The ConductionElement makes different assumptions:
-
Quasistationary Mass:
m_flow_rear = - m_flow_fore & M = rho * V (this assumption violates the conservation of mass for changing densities, since the mass in the element can change although inflow and outflow are the same)
der(H) = der(M*h) = M*der(h) (This assumption violates the conservation of energy for changing densities, since then the mass M of fluid in the element is no longer constant) -
Neglection of der(p) in the energy equation
V*der(p) = 0 (this assumption violates the conservation of energy for changing pressures. For a noticeable difference in the testcase the der(p) must be in the order of 1e5 Pa/s).
This assumption can be turned off by setting neglectPressureChanges=false (true by default) in the Advanced tab. This option requires the fore and rear input pressures to be smooth.
Due to these assumptions minor violations in the global energy conservation can occur. With the flag enforce_global_energy_conservation in the "Advanced" tab is set true (Default: false), long-term energy storage in the ConductionElement is sacrificed to hold global energy conservation.
fig. 1: positive massflow model
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Volume | V | 0.001 | Volume |
| Initialization › Specific enthalpy | |||
| ThermofluidStream.Undirected.Processes.Internal.InitializationMethodsCondElement | init | ThermofluidStream.Undirected.Processes.Internal.InitializationMethodsCondElement.rear | Initialization method for specific enthalpy |
| Medium.Temperature | T_0 | Medium.T_default | Initial Temperature |
| Medium.SpecificEnthalpy | h_0 | Medium.h_default | Initial specific enthalpy |
| Advanced | |||
| Medium.Density | rho_min | dropOfCommons.rho_min | Minimal density |
| Boolean | neglectPressureChanges | true | =true, if pressure changes are neglected |
| SI.MassFlowRate | m_flow_reg | dropOfCommons.m_flow_reg | Regularization massflow to switch between positive- and negative-massflow model |
| Advanced › Global energy conservation | |||
| Boolean | enforce_global_energy_conservation | false | = true, if global conservation of energy is enforced |
| Advanced › global energy conservation | |||
| SI.Time | T_e | 100 | Time constant for global conservation of energy |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heatPort | ||
| Medium.SpecificEnthalpy | h | Medium specific enthalpy | |
| Medium.ThermodynamicState | state | Medium.setState_phX(p, h, Xi) | Medium thermodynamic state |
| Medium.Temperature | T | Medium.temperature(state) | Medium temperature |
| SI.ThermalConductance | k | Thermal conductance | |
| SI.Energy | deltaE_system | Energy difference between m_flow*(h_in-h_out) and Q_flow | |
| SI.Mass | M | Medium mass |