modelPartialResistanceInterface
Minimal two-port resistance interface (Medium + ports) shared by the old and new resistance base classes
Information
Minimal constraining interface for a two-port fluid resistance, declaring only the
Medium package and the two fluid connectors port_a/port_b.
It is intended to be used as the constrainedby type for a replaceable resistance so that
either base class can be plugged in:
- PartialResistance
(e.g.
PressureLoss,SpecifiedResistance), and - PartialResistancenew
(e.g.
SharpEdgedAdaptor,SmoothAdaptor,Elbow).
Both base classes already declare a compatible Medium, port_a and port_b, so
they satisfy this interface by Modelica structural subtyping without any change to either base class. Components are not
required to extend this interface explicitly – they only need to provide these named elements.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.FluidPort_Flow | port_a | ||
| Interfaces.FluidPort_Flow | port_b |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.ThermodynamicState | state |
Contents
| Name | Description |
|---|---|