energia.library.examples.energy#

Energy system examples

Functions

design_scheduling()

A small design and scheduling example with functions for calculations instead of getattr

design_scheduling_material()

design_scheduling_material_modes()

Design and scheduling considering materials and emissions from them

design_scheduling_w_attrs()

A small design and scheduling example with attributes

design_scheduling_w_gattr()

A small design and scheduling example

scheduling()

A small scheduling example

scheduling_w_attrs()

A small scheduling example with attributes

scheduling_wo_time()

A small scheduling example with attributes

supermarket()

A supermarket energy system example

Classes

Currency(*locs[, label, citations])

Same as Economic Impact (Eco)

Environ([label, citations])

Environmental Impact

Location(*has[, label, citations])

A discretization of Space.

Material([basis, label, citations])

Materials are Resources, that are used to set up Operations

Model([name, init, default, capacitate])

An abstract representation of an energy system.

Periods([size, of, n, label, citations])

A discretization of Time.

Process(*args[, label, citations])

Process converts one Resource to another Resource at some Location

Resource([basis, label, citations])

A resource, can be a material, chemical, energy, etc.

Storage(*args[, label, citations])

Storage is a container for three main elements: 1.

TemporalScales(discretizations[, names])

A temporal scale for a model.

Unit([basis, times, label])

Unit of measure for a quantity provided as input to a component

scheduling()[source]#

A small scheduling example

scheduling_w_attrs()[source]#

A small scheduling example with attributes

scheduling_wo_time()[source]#

A small scheduling example with attributes

design_scheduling_w_gattr()[source]#

A small design and scheduling example

design_scheduling()[source]#

A small design and scheduling example with functions for calculations instead of getattr

design_scheduling_w_attrs()[source]#

A small design and scheduling example with attributes

design_scheduling_material()[source]#
design_scheduling_material_modes()[source]#

Design and scheduling considering materials and emissions from them

supermarket()[source]#

A supermarket energy system example

Optimize for cost:

m.usd.spend.opt()

Optimize for CO2 emissions:

m.co2_vent.release.opt()

Maximize efficiency:

m._.lb(sum(m._.consume))