modelFixedBoundary
Boundary source component
Extends from AixLib.Obsolete.BaseClasses.ObsoleteModel (Icon for classes that are obsolete and will be removed in later versions), AixLib.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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts (from PartialSource) | 0 | Number of ports |
| Advanced | |||
| Boolean | verifyInputs (from PartialSource) | false | Set to true to stop the simulation with an error if the medium temperature is outside its allowable range |
| Boundary pressure or Boundary density | |||
| Boolean | use_p | true | select p or d |
| Medium.AbsolutePressure | p | Medium.p_default | Boundary pressure |
| Medium.Density | d | Medium.density_pTX(p = Medium.p_default, T = Medium.T_default, X = 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 | fill(0, Medium.nC) | Boundary trace substances |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts] | ports (from PartialSource) | Fluid ports |
Revisions
- May 13, 2019 by Jianjun Hu:
Moved from AixLib.Fluid.Sources.FixedBoundary to here. This is for #1072. - January 14, 2019 by Jianjun Hu:
Changed to extend AixLib.Fluid.Sources.BaseClasses.PartialSource. This is for #1050. - April 18, 2017, by Filip Jorissen:
ChangedcheckBoundaryimplementation such that it is run as an initial equation since it depends on parameters only. See #728. - January 26, 2016, by Michael Wetter:
Addedunitandquantityattributes. - September 29, 2009, by Michael Wetter:
First implementation. Implementation is based onModelica.Fluid.