noads.core.models.energy.energy#

Energy module.

class noads.core.models.energy.energy.Energy(name)[source]#

Bases: Stream

A primary energy flow, consumed but not produced within the system.

Primary resources (oil, biomass, electricity) are the leaves of the energy production graph: their consumption is aggregated from the pathways that use them, and their carbon intensity (<name>.CO2_index) is a scenario input (constant, or time-dependent like the grid emission factor). Energies produced by pathways are modeled with ProducedEnergy instead.

Parameters:

name (str)

name: str#
unit: str = 'MJ'#
class noads.core.models.energy.energy.EnergyCarrier(name, density, specific_energy)[source]#

Bases: Energy, MaterialStream

An energy carrier embarked in aircraft, with its material properties.

Carriers (Jet-A, liquid hydrogen, batteries) carry a density and a specific energy so that aircraft design can convert between energy, mass, and volume when sizing tanks and computing take-off weight.

Parameters:
energy_to_mass(energy)[source]#

Convert energy to mass.

energy_to_volume(energy)[source]#

Convert energy to volume.

mass_to_energy(mass)[source]#

Convert mass to energy.

mass_to_volume(mass)#

Convert mass to volume.

volume_to_energy(volume)[source]#

Convert volume to energy.

volume_to_mass(volume)#

Convert volume to mass.

density: float#
name: str#
specific_energy: float#
unit: str = 'MJ'#
class noads.core.models.energy.energy.ProducedEnergy(name, pathways)[source]#

Bases: Energy

An energy flow produced by one or several production pathways.

When several pathways compete (e.g. HEFA, ATJ, and FT for biofuel), the share of each pathway is a time-dependent control used as optimization variable, and the energy’s impact index is the share-weighted mean of the pathway indices. The class provides the production, consumption, and impact-index models described in the energy-mix formulation of the extended paper (intensive impacts computed primary-to-final, extensive production computed final-to-primary).

Parameters:

pathways (Sequence[ProductionPathway])

add_output_stream(output_stream)[source]#

Add a stream that consume this energy type.

Parameters:

output_stream (Stream)

consumption_model()[source]#

Energy consumption model.

impact_index_model()[source]#

Impact index model.

production_model()[source]#

Energy production model.

set_output_streams(output_streams)[source]#

Set streams that consume this energy type.

Parameters:

output_streams (Sequence[Stream])

impacts: list[Impact]#

Set of all impacts accounted.

input_streams: list[Stream]#

Set of input streams that are directly consumed for production.

property models: list[Model]#

List of models.

name#
output_streams: list[Stream]#

Set of output streams that consume this energy to be produced.

pathways: list[ProductionPathway]#

Set of production pathways for this energy.

unit = 'MJ'#
class noads.core.models.energy.energy.ProducedEnergyCarrier(name, pathways, density, specific_energy)[source]#

Bases: ProducedEnergy, EnergyCarrier

A final energy carrier produced by pathways and embarked in aircraft.

Combines ProducedEnergy (production, consumption, and impact models) with EnergyCarrier (density and specific energy for aircraft design). Its direct consumption is the sum over the aircraft that embark it.

Parameters:

pathways (Sequence[ProductionPathway])

add_output_stream(output_stream)#

Add a stream that consume this energy type.

Parameters:

output_stream (Stream)

consumption_model()[source]#

Energy consumption model.

energy_to_mass(energy)#

Convert energy to mass.

energy_to_volume(energy)#

Convert energy to volume.

impact_index_model()#

Impact index model.

mass_to_energy(mass)#

Convert mass to energy.

mass_to_volume(mass)#

Convert mass to volume.

production_model()#

Energy production model.

set_output_streams(output_streams)#

Set streams that consume this energy type.

Parameters:

output_streams (Sequence[Stream])

volume_to_energy(volume)#

Convert volume to energy.

volume_to_mass(volume)#

Convert volume to mass.

density#
impacts#

Set of all impacts accounted.

input_streams#

Set of input streams that are directly consumed for production.

property models: list[Model]#

List of models.

name#
output_streams#

Set of output streams that consume this energy to be produced.

pathways#

Set of production pathways for this energy.

specific_energy#
unit = 'MJ'#

Classes

Energy(name)

A primary energy flow, consumed but not produced within the system.

EnergyCarrier(name, density, specific_energy)

An energy carrier embarked in aircraft, with its material properties.

ProducedEnergy(name, pathways)

An energy flow produced by one or several production pathways.

ProducedEnergyCarrier(name, pathways, ...)

A final energy carrier produced by pathways and embarked in aircraft.