Skip to content
BoundaryPressure.md

BoundaryPressure

Boundary with prescribed pressure

Usage

BoundaryPressure()

Connectors

  • port - (Port)

  • p - This connector represents a real signal as an input to a component (RealInput)

Behavior

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

Source

dyad
# Boundary with prescribed pressure
component BoundaryPressure
  port = Port()
  # Prescribed boundary pressure
  p = RealInput()
relations
  port.p = p
end
Flattened Source
dyad
# Boundary with prescribed pressure
component BoundaryPressure
  port = Port()
  # Prescribed boundary pressure
  p = RealInput()
relations
  port.p = p
metadata {}
end


Test Cases

This is setup code, that must be run before each test case.

julia
using HydraulicComponents
using ModelingToolkit, OrdinaryDiffEqDefault
using Plots
using CSV, DataFrames

snapshotsdir = joinpath(dirname(dirname(pathof(HydraulicComponents))), "test", "snapshots")
"/home/actions-runner-10/.julia/packages/HydraulicComponents/EtOYG/test/snapshots"