pyaga8.Composition

class pyaga8.Composition

Gas composition of 21 components, in mole fractions.

Wrapper around aga8::composition::Composition in the Rust crate aga8 0.6.1 (https://docs.rs/aga8/0.6.1/aga8/composition/struct.Composition.html). The unit of each component is mole fraction, so the sum of all components should be 1.0. All components are 0.0 after construction.

The components can only be set, not read back. Gerg2008.set_composition and Detail.set_composition raise ValueError if the composition is empty or if the sum differs from 1.0 by more than 0.01.

__init__()

Methods

Attributes

argon

Mole fraction of argon (write-only).

carbon_dioxide

Mole fraction of carbon dioxide (write-only).

carbon_monoxide

Mole fraction of carbon monoxide (write-only).

decane

Mole fraction of decane (write-only).

ethane

Mole fraction of ethane (write-only).

helium

Mole fraction of helium (write-only).

heptane

Mole fraction of heptane (write-only).

hexane

Mole fraction of hexane (write-only).

hydrogen

Mole fraction of hydrogen (write-only).

hydrogen_sulfide

Mole fraction of hydrogen sulfide (write-only).

isobutane

Mole fraction of isobutane (write-only).

isopentane

Mole fraction of isopentane (write-only).

methane

Mole fraction of methane (write-only).

n_butane

Mole fraction of n-butane (write-only).

n_pentane

Mole fraction of n-pentane (write-only).

nitrogen

Mole fraction of nitrogen (write-only).

nonane

Mole fraction of nonane (write-only).

octane

Mole fraction of octane (write-only).

oxygen

Mole fraction of oxygen (write-only).

propane

Mole fraction of propane (write-only).

water

Mole fraction of water (write-only).

argon

Mole fraction of argon (write-only).

carbon_dioxide

Mole fraction of carbon dioxide (write-only).

carbon_monoxide

Mole fraction of carbon monoxide (write-only).

decane

Mole fraction of decane (write-only).

ethane

Mole fraction of ethane (write-only).

helium

Mole fraction of helium (write-only).

heptane

Mole fraction of heptane (write-only).

hexane

Mole fraction of hexane (write-only).

hydrogen

Mole fraction of hydrogen (write-only).

hydrogen_sulfide

Mole fraction of hydrogen sulfide (write-only).

isobutane

Mole fraction of isobutane (write-only).

isopentane

Mole fraction of isopentane (write-only).

methane

Mole fraction of methane (write-only).

n_butane

Mole fraction of n-butane (write-only).

n_pentane

Mole fraction of n-pentane (write-only).

nitrogen

Mole fraction of nitrogen (write-only).

nonane

Mole fraction of nonane (write-only).

octane

Mole fraction of octane (write-only).

oxygen

Mole fraction of oxygen (write-only).

propane

Mole fraction of propane (write-only).

water

Mole fraction of water (write-only).