AbstractSystems

EPHS.AbstractSystems.EVarType
EVar(box_path::DtryPath, port_path::DtryPath)

An EVar represents an effort variable of a port. See XVar for info about the fields box_path and port_path.

source
EPHS.AbstractSystems.FVarType
FVar(box_path::DtryPath, port_path::DtryPath)

A FVar represents a flow variable of a port. See XVar for info about the fields box_path and port_path.

source
EPHS.AbstractSystems.PortTypeType
PortType(quantity::Quantity, power::Bool)

Next to its name (i.e. DtryPath, see Interface), a port is defined by its PortType, see also Interface.

Fields

  • quantity: only ports with the same Quantity can be connected
  • power: false means state port, true means power port

State ports only have a state variable to share information about the given quantity, e.g. the amount of magnetic flux. Power ports additionally have a flow and an effort variable whose pairing yields the power that is exchanged via the port.

source
EPHS.AbstractSystems.QuantityType
Quantitiy(quantity::Symbol, space::Symbol, iseven::Bool)

A Quantity represents a physical quantity and is used to define a PortType.

Fields

  • quantity: Symbol identifying the quantity, e.g. :momentum
  • space: Symbol identifying its state space, e.g. :ℝ
  • iseven: false means the quantity has odd parity w.r.t. time reversal transformation
source
EPHS.AbstractSystems.XVarType
XVar(box_path::DtryPath, port_path::DtryPath)

A XVar represents a state variable of a port.

Fields

  • box_path: name of the EPHS.Patterns.InnerBox or system to which the port belongs
  • port_path: name of the port itself relative to the box or system interface

Hence, the full path identifying the port is box_path * port_path. Both parts are stored separately to prevent ambiguities.

source