modelCFDFluidInterface

Extends from Buildings.BaseClasses.BaseIcon (Base icon).

Information

This model is used to connect the fluid port with the block that communicates with the CFD program.

This model also implements the pressure balance of the medium, as the FFD implementation uses a constant pressure that is independent of the pressure of the Modelica model. If the parameter massDynamics == Modelica.Fluid.Types.Dynamics.SteadyState, then there is a steady-state mass balance and the pressure of the room is an algebraic variable. Otherwise, the time derivative of the pressure is

dp⁄dt = p_start   ∑ ṁi ⁄ mstart,

where p_start is the initial pressure, ∑ ṁi is the sum of the mass flow rates over all ports, and mstart is the initial mass of the room.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Densityrho_startDensity, used to compute fluid mass
Modelica.Units.SI.VolumeVVolume
Modelica.Units.SI.Massm_startrho_start*VInitial mass of air inside the room.
Dynamics › Conservation equations
Modelica.Fluid.Types.DynamicsmassDynamicsModelica.Fluid.Types.Dynamics.DynamicFreeInitialFormulation of mass balance
Initialization
Medium.AbsolutePressurep_startMedium.p_defaultStart value of pressure
General › Ports
IntegernPorts0Number of ports

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[nPorts]T_outflowTemperature if m_flow < 0
Modelica.Blocks.Interfaces.RealInput[nPorts*Medium.nXi]Xi_outflowSpecies concentration if m_flow < 0
Modelica.Blocks.Interfaces.RealInput[nPorts*Medium.nC]C_outflowTrace substances if m_flow < 0
Modelica.Blocks.Interfaces.RealOutputpRoom-averaged total pressure
Modelica.Blocks.Interfaces.RealOutput[nPorts]m_flowMass flow rates
Modelica.Blocks.Interfaces.RealOutput[nPorts]T_inflowTemperature if m_flow >= 0
Modelica.Blocks.Interfaces.RealOutput[nPorts*Medium.nXi]Xi_inflowSpecies concentration if m_flow >= 0
Modelica.Blocks.Interfaces.RealOutput[nPorts*Medium.nC]C_inflowTrace substances if m_flow >= 0
Modelica.Fluid.Vessels.BaseClasses.VesselFluidPorts_b[nPorts]portsFluid inlets and outlets

Contents

NameDescription
MediumMedium in the component

Revisions

  • July 24, 2014, by Wangda Zuo and Michael Wetter:
    Removed the parameter initialize_p. This parameter is used in .Media as equations are obtained from BaseProperties. This implementation does not use Medium.BaseProperties and hence this parameter is not needed.
  • July 24, 2014, by Wangda Zuo and Michael Wetter:
    Changed minimum attribute for nPorts from 2 to 0 as the FFD code uses atmospheric pressure and hence does not use the pressure of the fluid connector.
  • January 25, 2014, by Wangda Zuo:
    Added unit for mass flow rate.
  • July 20, 2013, by Michael Wetter:
    First implementation.