---
url: /dyad/stable/stdlib/HydraulicComponents/components/Sources.BoundaryPressure.md
description: >-
  Dyad Sources.BoundaryPressure docs.  Establishes a pressure boundary condition
  dictated by an external signal.
---

# `Sources.BoundaryPressure` {#Sources.BoundaryPressure}

Establishes a pressure boundary condition dictated by an external signal.

This component models a boundary in a fluid system where the pressure is explicitly defined by an external input signal. It contains a `Port` for connection to the fluid network and a 'RealInput' named 'p' that provides the pressure value. The core behavior is defined by the equation:

$$port.p = p$$

This means the pressure variable within the 'port' is directly equated to the external input 'p'.

## Usage {#Usage}

`HydraulicComponents.Sources.BoundaryPressure()`

## Connectors {#Connectors}

* `port` - ([`Port`](@ref))

* `p` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

## Behavior {#Behavior}

Behavior of this component cannot be rendered because it includes `path` variables.

## Source {#Source}

````dyad
"""
Establishes a pressure boundary condition dictated by an external signal.

This component models a boundary in a fluid system where the pressure is explicitly
defined by an external input signal. It contains a `Port` for connection to
the fluid network and a 'RealInput' named 'p' that provides the pressure value.
The core behavior is defined by the equation:
```math
port.p = p
```
This means the pressure variable within the 'port' is directly equated to the
external input 'p'.
"""
component BoundaryPressure
  "Fluid port representing the connection to the system"
  port = HydraulicComponents.Interfaces.Port() {
    "Dyad": {
      "placement": {
        "diagram": {"x1": 980, "x2": 1020, "y1": 480, "y2": 520, "sh": 1, "sw": 1, "rot": 0}
      }
    }
  }
  "External real input signal defining the prescribed pressure at the boundary"
  p = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"x1": -40, "x2": 0, "y1": 480, "y2": 520, "sh": 0.04, "sw": 0.04, "rot": 0}
      }
    }
  }
relations
  port.p = p
metadata {
  "Dyad": {
    "icons": {"default": "dyad://HydraulicComponents/BoundaryPressure.svg"},
    "labels": [
      {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
      {"label": "P", "x": -20, "y": 200, "rot": 0}
    ]
  }
}
end
````

````dyad
"""
Establishes a pressure boundary condition dictated by an external signal.

This component models a boundary in a fluid system where the pressure is explicitly
defined by an external input signal. It contains a `Port` for connection to
the fluid network and a 'RealInput' named 'p' that provides the pressure value.
The core behavior is defined by the equation:
```math
port.p = p
```
This means the pressure variable within the 'port' is directly equated to the
external input 'p'.
"""
component BoundaryPressure
  "Fluid port representing the connection to the system"
  port = HydraulicComponents.Interfaces.Port() {
    "Dyad": {
      "placement": {
        "diagram": {"x1": 980, "x2": 1020, "y1": 480, "y2": 520, "sh": 1, "sw": 1, "rot": 0}
      }
    }
  }
  "External real input signal defining the prescribed pressure at the boundary"
  p = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"x1": -40, "x2": 0, "y1": 480, "y2": 520, "sh": 0.04, "sw": 0.04, "rot": 0}
      }
    }
  }
relations
  port.p = p
metadata {
  "Dyad": {
    "icons": {"default": "dyad://HydraulicComponents/BoundaryPressure.svg"},
    "labels": [
      {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
      {"label": "P", "x": -20, "y": 200, "rot": 0}
    ]
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`DoubleActingCylinder`](Sources.BoundaryPressure.md)
