Default Components

Default Components#

These are functions for creating default components in Energia

These are used internally, but can be accessed by the user as well, simply by using the attributes show in the keys

from energia import Model

m = Model()
m.default_components
{'l': <bound method Model._l0 of m>,
 'l0': <bound method Model._l0 of m>,
 't0': <bound method Model._t0 of m>,
 't': <bound method Model._t0 of m>,
 'money': <bound method Model._cash of m>}
m.money, type(m.money)
(cash, energia.components.commodities.currency.Currency)