Components
EPHS.Components
— ModuleThe Components
module defines the primitive systems: StorageComponent
s, ReversibleComponent
s, and IrreversibleComponent
s.
EPHS.Components.CVar
— TypeConstraint multiplier variable
EPHS.Components.Component
— TypeComponent
is a subtype of EPHS.AbstractSystems.AbstractSystem
. Concrete subtypes of Component
are StorageComponent
, ReversibleComponent
, and IrreversibleComponent
.
EPHS.Components.Constraint
— TypeConstraint(residual::SymExpr)
The residual is forced to be zero by the corresponding constraint variable.
EPHS.Components.EffortPort
— TypeEffortPort(quantity::Quantity, effort::SymExpr)
A EffortPort
of a ReversibleComponent
used to define a transformer-like coupling (in combination with a corresponding FlowPort
).
EPHS.Components.FlowPort
— TypeFlowPort(quantity::Quantity, flow::SymExpr)
A FlowPort
of a ReversibleComponent
used to define a gyrator-like coupling or a transformer-like coupling (in combination with a corresponding EffortPort
).
EPHS.Components.IrreversibleComponent
— TypeIrreversibleComponent(ports::Dtry{IrreversiblePort})
An IrreversibleComponent
is a primitive system representing irreversible processes.
Fields
ports
: directory ofIrreversiblePort
s
EPHS.Components.IrreversiblePort
— TypeIrreversiblePort(quantity::Quantity, flow::SymExpr)
A port of an IrreversibleComponent
provides the flow variable.
Fields
quantity
:EPHS.AbstractSystems.Quantity
of the portflow
:EPHS.SymbolicExpressions.SymExpr
defining the flow variable
EPHS.Components.Par
— TypePar(box_path::DtryPath, par_path::DtryPath, value::Float64
Symbolic parameter identified by box_path * par_path
.
Fields
box_path
: indicates the subsystem to which the parameter belongspar_path
: distinguishes between different parameters of the same subsystemvalue
: (default) value of the parameter
EPHS.Components.Par
— MethodPar(name::Symbol, value::Float64
Constructs a symbolic Par
ameter with box_path=DtryPath()
and par_path=DtryPath(name)
.
Arguments
name
: name of the parametervalue
: (default) value of the parameter
EPHS.Components.ReversibleComponent
— TypeReversibleComponent(ports::Dtry{ReversiblePort})
A ReversibleComponent
is a primitive system representing reversible dynamics, transformations, or constraints.
Fields
ports
: directory ofReversiblePort
s
EPHS.Components.ReversiblePort
— TypeReversiblePort(variant::Union{FlowPort,EffortPort,StatePort,Constraint})
A 'port' of a ReversibleComponent
can be a
FlowPort
which provides a flow variableEffortPort
which provides an effort variableStatePort
which consumes a state variableConstraint
which defines a residual and a constraint variable
EPHS.Components.StatePort
— TypeStatePort(quantity::Quantity)
A StatePort
of a ReversibleComponent
needed if a gyrator/transformer-like coupling or a constraint depends on a state variable of a system which is not already connected via a FlowPort
or an EffortPort
.
EPHS.Components.StorageComponent
— TypeStorageComponent(ports::Dtry{StoragePort}, energy::SymExpr)
A StorageComponent
is a primitive system representing energy storage.
Fields
ports
: directory ofStoragePort
senergy
:EPHS.SymbolicExpressions.SymExpr
defining the energy
A StorageComponent
should be constructed using the function StorageComponent(ports::Dtry{Quantity}, energy::SymExpr)
, which uses symbolic differentiation to compute the effort variables of the ports.
EPHS.Components.StorageComponent
— MethodStorageComponent(ports::Dtry{Quantity}, energy::SymExpr)
A StorageComponent
is a primitive system representing energy storage.
Arguments
ports
: directory ofQuantity
s defining the interface of the component (power ports only)energy
:EPHS.SymbolicExpressions.SymExpr
defining the energy
EPHS.Components.StoragePort
— TypeStoragePort(quantity::Quantity, effort::SymExpr)
A port of a StorageComponent
provides the effort variable.
Fields
quantity
:EPHS.AbstractSystems.Quantity
of the porteffort
:EPHS.SymbolicExpressions.SymExpr
defining the effort variable
EPHS.Components.θ₀
— ConstantSymbolic parameter, see Par
, representing the exergy environment temperature with a (default) value of 300K.
EPHS.Components.π₀
— ConstantSymbolic parameter, see Par
, representing the exergy environment pressuere with a (default) value of 10⁵Pa.