PipeRequirements block
Requirements.Examples.AirCircuitSystem.Components.Checks.PipeRequirements
· source
Requirements for a Pipe
Extends Requirements.Interfaces.PartialRequirements
Requirements for a whole pipe of the air distribution circuit. The input observation is a
MediumVector
record with the pressure and temperature of every pipe node; the block contains a vector
mediums of
PipeNodeRequirements,
one per node, sized from the observation. The parameters pMax (maximum pressure),
Tmin and Tmax (temperature range) are propagated to every node.
The block extends PartialRequirements:
its parameter observationName names the observed instance (e.g. "pipe2") and is shown in
the icon. Typical use is
Components.Checks.PipeRequirements pipe2Requirements(
observationName="pipe2",
observation=Components.Bindings.pipeObservation_from_DynamicPipe(
Components.Checks.Records.MediumVector(mediums={
Components.Checks.Records.Medium(p=pipe2.mediums[i].p, T=pipe2.mediums[i].T)
for i in 1:pipe2.nNodes})),
pMax=200000);
Parameters
| Name | Type | Description |
|---|---|---|
pMax parameter | SI.Pressure | Maximal allowed pressure |
Tmin parameter | SI.Temperature | Minimum pipe temperature |
Tmax parameter | SI.Temperature | Maximum pipe temperature |
Inputs
| Name | Type | Description |
|---|---|---|
observation input | Records.MediumVector | Observation variables record from a pipe |
Components and variables
| Name | Type | Description |
|---|---|---|
mediums[…] | PipeNodeRequirements | Requirements of every observed pipe node |