pub struct Brine { /* private fields */ }Expand description
Owned planar ice-front measurement.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let ice = vec![1; 8];
let front = system.brine(&ice, &seams::BrineOptions::default())?;
let pockets = front.pockets()?;
assert!(pockets.pockets >= 0);Implementations§
Source§impl Brine
impl Brine
Sourcepub fn fronts(&self) -> Result<BrineFronts, Error>
pub fn fronts(&self) -> Result<BrineFronts, Error>
The two planar crossings. Lengths are angstroms.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let front = system.brine(&[1; 8], &seams::BrineOptions::default())?;
let crossings = front.fronts()?;
assert!(crossings.thickness.is_finite());Sourcepub fn rejection(&self) -> Result<Rejection, Error>
pub fn rejection(&self) -> Result<Rejection, Error>
Molal rejection coefficient. Molality is mol/kg.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let front = system.brine(&[1; 8], &seams::BrineOptions::default())?;
let rejection = front.rejection()?;
assert!(rejection.k.is_finite() || !rejection.defined);Sourcepub fn profile(&self) -> Result<BrineProfile, Error>
pub fn profile(&self) -> Result<BrineProfile, Error>
Concentration profile along the front axis.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let front = system.brine(&[1; 8], &seams::BrineOptions::default())?;
let profile = front.profile()?;
assert_eq!(profile.coordinate.len(), profile.molality.len());Sourcepub fn pockets(&self) -> Result<Pockets, Error>
pub fn pockets(&self) -> Result<Pockets, Error>
Pockets trapped in the ice, and the liquid reservoir.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let front = system.brine(&[1; 8], &seams::BrineOptions::default())?;
assert!(front.pockets()?.reservoir_waters >= 0);Trait Implementations§
Auto Trait Implementations§
impl !Sync for Brine
impl Freeze for Brine
impl RefUnwindSafe for Brine
impl Unpin for Brine
impl UnsafeUnpin for Brine
impl UnwindSafe for Brine
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