AFL.automation.mixing.Component#
Functions
|
Ensure that a number has units and convert to the default_units |
Classes
|
Component of a mixture |
Exceptions
|
|
|
Exception thrown when a parse expression doesn't match the input string |
- class AFL.automation.mixing.Component.Component(name: str, mass: Quantity | None = None, volume: Quantity | None = None, density: Quantity | None = None, formula: str | None = None, sld: Quantity | None = None, uid: str | None = None, solute: bool = False)[source]#
Component of a mixture
This class defines the basic properties of a component within a mixture. It includes attributes for mass, volume, density, formula, and scattering length density (SLD). It also enforces unit specifications for these attributes.
- Parameters:
name (str) – The name of the component.
mass (str | units.Quantity | None) – The mass of the component, by default None.
volume (str | units.Quantity | None) – The volume of the component, by default None.
density (str | units.Quantity | None) – The density of the component, by default None.
formula (Optional[str], optional) – The chemical formula of the component, by default None.
sld (str | units.Quantity | None) – The scattering length density of the component, by default None.