pub struct ConservationResult {
pub quantity: ConservationQuantity,
pub before: f64,
pub after: f64,
pub conserved: bool,
pub tolerance: f64,
}Expand description
A conservation law check result (T34).
When a law transforms a mixture (or any state with conserved quantities),
the host’s conservation_check method returns this value to indicate
whether the transformation preserves the conserved quantity.
Fields§
§quantity: ConservationQuantityThe conserved quantity being checked: “mass”, “mole”, “energy”, “charge”, “momentum”, or “angular_momentum”.
before: f64The value before the transformation.
after: f64The value after the transformation.
conserved: boolWhether the quantity is conserved (within tolerance).
tolerance: f64The tolerance used for the check (absolute).
Trait Implementations§
Source§impl Clone for ConservationResult
impl Clone for ConservationResult
Source§impl Debug for ConservationResult
impl Debug for ConservationResult
Source§impl PartialEq for ConservationResult
impl PartialEq for ConservationResult
impl StructuralPartialEq for ConservationResult
Auto Trait Implementations§
impl Freeze for ConservationResult
impl RefUnwindSafe for ConservationResult
impl Send for ConservationResult
impl Sync for ConservationResult
impl Unpin for ConservationResult
impl UnsafeUnpin for ConservationResult
impl UnwindSafe for ConservationResult
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