modelFixedBoundary

Boundary source component

Extends from Modelica.Fluid.Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).

Information

This model defines constant values for boundary conditions:

  • Boundary pressure or boundary density.
  • Boundary temperature or boundary specific enthalpy.
  • Boundary composition (only for multi-substance or trace-substance flow).

Note, that boundary temperature, density, specific enthalpy, mass fractions and trace substances have only an effect if the mass flow is from the Boundary into the port. If mass is flowing from the port into the boundary, the boundary definitions, with exception of boundary pressure, do not have an effect.

Parameters

TypeNameDefaultDescription
IntegernPorts (from PartialSource)0Number of ports
Boundary pressure or Boundary density
Booleanuse_ptrueselect p or d
Medium.AbsolutePressurepMedium.p_defaultBoundary pressure
Medium.DensitydMedium.density_pTX(p = Medium.p_default, T = Medium.T_default, X = Medium.X_default)Boundary density
Boundary temperature or Boundary specific enthalpy
Booleanuse_Ttrueselect T or h
Medium.TemperatureTMedium.T_defaultBoundary temperature
Medium.SpecificEnthalpyhMedium.h_defaultBoundary specific enthalpy
Only for multi-substance flow
Medium.MassFraction[Medium.nX]XMedium.X_defaultBoundary mass fractions m_i/m
Only for trace-substance flow
Medium.ExtraProperty[Medium.nC]Cfill(0, Medium.nC)Boundary trace substances

Connectors

TypeNameDefaultDescription
Interfaces.FluidPorts_b[nPorts]ports (from PartialSource)

Components

TypeNameDefaultDescription
Medium.BasePropertiesmedium (from PartialSource)Medium in the source

Revisions

  • April 18, 2017, by Filip Jorissen:
    Changed checkBoundary implementation such that it is run as an initial equation since it depends on parameters only. See #728.
  • January 26, 2016, by Michael Wetter:
    Added unit and quantity attributes.
  • September 29, 2009, by Michael Wetter:
    First implementation. Implementation is based on Modelica.Fluid.