Components
EPHS.Components — ModuleThe Components module defines the primitive systems: StorageComponents, ReversibleComponents, and IrreversibleComponents.
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 ofIrreversiblePorts
EPHS.Components.IrreversiblePort — TypeIrreversiblePort(quantity::Quantity, flow::SymExpr)A port of an IrreversibleComponent provides the flow variable.
Fields
quantity:EPHS.AbstractSystems.Quantityof the portflow:EPHS.SymbolicExpressions.SymExprdefining the flow variable
EPHS.Components.Par — TypePar(box_path::DtryPath, par_path::DtryPath, value::Float64Symbolic 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::Float64Constructs a symbolic Parameter 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 ofReversiblePorts
EPHS.Components.ReversiblePort — TypeReversiblePort(variant::Union{FlowPort,EffortPort,StatePort,Constraint})A 'port' of a ReversibleComponent can be a
FlowPortwhich provides a flow variableEffortPortwhich provides an effort variableStatePortwhich consumes a state variableConstraintwhich 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 ofStoragePortsenergy:EPHS.SymbolicExpressions.SymExprdefining 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 ofQuantitys defining the interface of the component (power ports only)energy:EPHS.SymbolicExpressions.SymExprdefining the energy
EPHS.Components.StoragePort — TypeStoragePort(quantity::Quantity, effort::SymExpr)A port of a StorageComponent provides the effort variable.
Fields
quantity:EPHS.AbstractSystems.Quantityof the porteffort:EPHS.SymbolicExpressions.SymExprdefining 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.