CADETProcess.processModel.Component#

class CADETProcess.processModel.Component(name: str | None = None, species: str | list[str | None] = None, charge: int | list[int | None] = None, molar_mass: float | list[float | None] = None, density: float | list[float | None] = None)[source]#

Bases: object

A conserved chemical entity that may exist as multiple species.

Parameters:
namestr, optional

Name of the component.

speciesstr | list[str], optional

Name(s) of the subspecies. If None the component name is used.

chargeint | list[int | None], optional

Charge(s) of the subspecies.

molar_massfloat | list[float | None], optional

Molar mass(es) of the subspecies in kg/mol.

densityfloat | list[float | None], optional

Density(ies) of the subspecies in kg/m³.

add_species(species: str | Species, charge: int | None = None, molar_mass: float | None = None, density: float | None = None) Species[source]#

Add a subspecies to the component.

Parameters:
speciesstr | Species

Species or name of the species to add.

chargeint, optional

Charge of the species.

molar_massfloat, optional

Molar mass in kg/mol.

densityfloat, optional

Pure-component density in kg/m³.

Returns:
Species

The added species.

property charge: list[int | None]#

list[int | None]: Charges of the subspecies.

property density: list[float | None]#

list[float | None]: Densities of the subspecies in kg/m³.

property label: list[str]#

list[str]: Names of the subspecies.

property molar_mass: list[float | None]#

list[float | None]: Molar masses of the subspecies in kg/mol.

property molecular_weight: list[float | None]#

Deprecated. Use molar_mass.

property n_species: int#

int: Number of subspecies.

property species: list[Species]#

list[Species]: The subspecies of the component.