modelFixedBoundary
Boundary source component
Extends from Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).
Information
Model FixedBoundary 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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts (from PartialSource) | 0 | Number of ports |
| Boundary pressure or boundary density | |||
| Boolean | use_p | true | Select p or d |
| Medium.AbsolutePressure | p | Medium.p_default | Boundary pressure |
| Medium.Density | d | (if use_T then Medium.density_pTX(Medium.p_default, Medium.T_default, Medium.X_default) else Medium.density_phX(Medium.p_default, Medium.h_default, Medium.X_default)) | Boundary density |
| Boundary temperature or boundary specific enthalpy | |||
| Boolean | use_T | true | Select T or h |
| Medium.Temperature | T | Medium.T_default | Boundary temperature |
| Medium.SpecificEnthalpy | h | Medium.h_default | Boundary specific enthalpy |
| Only for multi-substance flow | |||
| Medium.MassFraction[Medium.nX] | X | Medium.X_default | Boundary mass fractions m_i/m |
| Only for trace-substance flow | |||
| Medium.ExtraProperty[Medium.nC] | C | Medium.C_default | Boundary trace substances |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.FluidPorts_b[nPorts] | ports (from PartialSource) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.BaseProperties | medium (from PartialSource) | Medium in the source |