pub struct Mixture {
pub iri: Option<String>,
pub components: Vec<(SpeciesRef, f64)>,
pub phase: MixturePhase,
pub miscibility: Miscibility,
}Expand description
A mixture of chemical species with composition data (T33).
Solubility-as-boolean cannot express oil/water. A mixture carries mole fractions (or mass fractions) for each species, plus phase information and miscibility data.
Fields§
§iri: Option<String>The mixture’s IRI identifier (optional — anonymous mixtures are allowed).
components: Vec<(SpeciesRef, f64)>Components: species handle + mole fraction (0.0–1.0).
Mole fractions should sum to 1.0 for a closed mixture, but this
is not enforced at construction — the host’s law.apply() can
check conservation.
phase: MixturePhaseThe phase of this mixture: solid, liquid, gas, plasma, or supercritical.
miscibility: MiscibilityMiscibility with other mixtures. Miscible means fully mixable,
Immiscible means forms separate layers, Partial means limited
solubility.
Trait Implementations§
impl StructuralPartialEq for Mixture
Auto Trait Implementations§
impl Freeze for Mixture
impl RefUnwindSafe for Mixture
impl Send for Mixture
impl Sync for Mixture
impl Unpin for Mixture
impl UnsafeUnpin for Mixture
impl UnwindSafe for Mixture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more