WOLFRAM SYSTEMMODELER

Boundary_pT

Boundary with prescribed pressure, temperature, composition and trace substances

Wolfram Language

In[1]:=
SystemModel["Modelica.Fluid.Sources.Boundary_pT"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Defines prescribed values for boundary conditions:

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

If use_p_in is false (default option), the p parameter is used as boundary pressure, and the p_in input connector is disabled; if use_p_in is true, then the p parameter is ignored, and the value provided by the input connector is used instead.

The same thing goes for the temperature, composition and trace substances.

Note, that boundary temperature, 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 (9)

nPorts

Value: 0

Type: Integer

Description: Number of ports

use_p_in

Value: false

Type: Boolean

Description: Get the pressure from the input connector

use_T_in

Value: false

Type: Boolean

Description: Get the temperature from the input connector

use_X_in

Value: false

Type: Boolean

Description: Get the composition from the input connector

use_C_in

Value: false

Type: Boolean

Description: Get the trace substances from the input connector

p

Value: Medium.p_default

Type: AbsolutePressure (Pa)

Description: Fixed value of pressure

T

Value: Medium.T_default

Type: Temperature (K)

Description: Fixed value of temperature

X

Value: Medium.X_default

Type: MassFraction[Medium.nX] (kg/kg)

Description: Fixed value of composition

C

Value: Medium.C_default

Type: ExtraProperty[Medium.nC]

Description: Fixed values of trace substances

Connectors (5)

ports

Type: FluidPorts_b[nPorts]

p_in

Type: RealInput

Description: Prescribed boundary pressure

T_in

Type: RealInput

Description: Prescribed boundary temperature

X_in

Type: RealInput[Medium.nX]

Description: Prescribed boundary composition

C_in

Type: RealInput[Medium.nC]

Description: Prescribed boundary trace substances

Components (1)

medium

Type: BaseProperties

Description: Medium in the source

Used in Examples (12)

ControlledTanks

Modelica.Fluid.Examples.ControlledTankSystem

Demonstrating the controller of a tank filling/emptying system

OneTank

Modelica.Fluid.Examples.AST_BatchPlant.Test

Tank with one time-varying top inlet mass flow rate and a bottom outlet into the ambient

TankWithEmptyingPipe1

Modelica.Fluid.Examples.AST_BatchPlant.Test

Demonstrates a tank with one constant top inlet mass flow rate and a bottom outlet into the ambient

TankWithEmptyingPipe2

Modelica.Fluid.Examples.AST_BatchPlant.Test

Demonstrates a tank with one constant top inlet mass flow rate and a bottom outlet into the ambient

TanksWithEmptyingPipe1

Modelica.Fluid.Examples.AST_BatchPlant.Test

Demonstrates a tank with one constant top inlet mass flow rate and a bottom outlet into the ambient

TanksWithEmptyingPipe2

Modelica.Fluid.Examples.AST_BatchPlant.Test

Demonstrates a tank with one constant top inlet mass flow rate and a bottom outlet into the ambient

IncompressibleFluidNetwork

Modelica.Fluid.Examples

Multi-way connections of pipes and incompressible medium model

BranchingDynamicPipes

Modelica.Fluid.Examples

Multi-way connections of pipes with dynamic momentum balance, pressure wave and flow reversal

NonCircularPipes

Modelica.Fluid.Examples

Comparing a circular with a non-circular pipe

HeatExchangerSimulation

Modelica.Fluid.Examples.HeatExchanger

simulation for the heat exchanger model

InverseParameterization

Modelica.Fluid.Examples

Demonstrates the parameterization of a pump and a pipe for given nominal values

MomentumBalanceFittings

Modelica.Fluid.Examples.Explanatory

Illustrating a case in which kinetic terms play a major role in the momentum balance