energia.components.commodities.material#
Material
Classes
|
Materials are Resources, that are used to set up Operations |
|
A resource, can be a material, chemical, energy, etc. |
- class Material(basis: Unit | None = None, label: str = '', citations: str = '', **kwargs)[source]#
Bases:
ResourceMaterials are Resources, that are used to set up Operations
- Parameters:
label (str, optional) – Label of the commodity, used for plotting. Defaults to None.
name (str, optional) – Name of the commodity, used for indexing. Defaults to None.
basis (Unit, optional) – Unit basis of the commodity. Defaults to None.
- Variables:
model (Model) – The model to which the component belongs.
name (str) – Set when the component is assigned as a Model attribute.
constraints (list[str]) – List of constraints associated with the component.
domains (list[Domain]) – List of domains associated with the component.
aspects (dict[Aspect, list[Domain]]) – Aspects associated with the component with domains.
conversions (list[Conversion]) – List of conversions associated with the commodity. Defaults to [].
insitu (bool, optional) – If the commodity only exists insitu, i.e., does not scale any domains
- property I#
gana index set (I)
- property balance: dict[Conversion | Self, int | float]#
Conversion
- property cons: list[C]#
Constraints
- get(k[, d]) D[k] if k in D, else d. d defaults to None.#
- items() a set-like object providing a view on D's items#
- keys() a set-like object providing a view on D's keys#
- property program: Prg#
Mathematical program
- show(descriptive=False, category: str = '')#
Pretty print the component
- values() an object providing a view on D's values#