Links
Link
s are connecting the individual Node
s for the exchange of energy/mass. Link
s are directional, that is transport of mass/energy is only allowed in a single direction.
Index
Link
types
The following types for links are implemented in EnergyModelsBase
. The thought process is to dispatch on the EMB.Formulation
of a link as additional option. This is in the current stage not implemented.
EnergyModelsBase.Link
— TypeDeclaration of the general type for links connecting nodes.
EnergyModelsBase.Direct
— TypeDirect <: Link
A direct link between two nodes.
Fields
id
is the name/identifier of the link.from::Node
is the node from which there is flow into the link.to::Node
is the node to which there is flow out of the link.formulation::Formulation
is the used formulation of links. If not specified, aLinear
link is assumed.
EnergyModelsBase.Linear
— TypeLinear Formulation
, that is input equals output.
Functions for accessing fields of Link
types
The following functions are declared for accessing fields from a Link
type.
If you want to introduce new Link
types, it is important that the function formulation
is either functional for your new types or you have to declare a corresponding function. The first approach can be achieved through using the same name for the respective fields.
EnergyModelsBase.formulation
— Functionformulation(l::Link)
Return the formulation of a Link l
.