[−][src]Struct capra::deco::zhl16::ZHL16
A ZHL-16 decompression model of a diver.
Notes
For now, each ZHL16 struct should only be used for one dive. This is because calculating decompression stops with Gradient Factors requires some side effects to be stored inside the struct.
Implementations
impl ZHL16
[src]
pub fn new(
tissue: Tissue,
n2_a: [f64; 16],
n2_b: [f64; 16],
n2_hl: [f64; 16],
he_a: [f64; 16],
he_b: [f64; 16],
he_hl: [f64; 16],
gf_low: usize,
gf_high: usize
) -> Self
[src]
tissue: Tissue,
n2_a: [f64; 16],
n2_b: [f64; 16],
n2_hl: [f64; 16],
he_a: [f64; 16],
he_b: [f64; 16],
he_hl: [f64; 16],
gf_low: usize,
gf_high: usize
) -> Self
Returns a ZHL16 model with the given parameters. Use this if you have to supply all the tissue
loading constants by yourself. Otherwise, use ZHL16::new_by_variant
instead.
Arguments
tissue
- Tissue model of the diver before the diven2_a
- Nitrogen A-values to usen2_b
- Nitrogen B-values to usen2_hl
- Nitrogen half-lives to usehe_a
- Helium A-values to usehe_b
- Helium B-values to usehe_hl
- Helium half-lives to usegf_low
- Gradient Factor low value to use when calculating deco stopsgf_high
- Gradient Factor high value to use when calculating deco stops
pub fn new_by_variant(
tissue: Tissue,
gfl: usize,
gfh: usize,
variant: Variant
) -> Self
[src]
tissue: Tissue,
gfl: usize,
gfh: usize,
variant: Variant
) -> Self
Returns a ZHL16 model with the tissue loading constants of a defined variant.
Arguments
tissue
- Tissue model of the diver before the divegf_low
- Gradient Factor low value to use when calculating deco stopsgf_high
- Gradient Factor high value to use when calculating deco stopsvariant
- Variant to use
pub fn tissue(&self) -> Tissue
[src]
Returns the tissue of the deco model.
Trait Implementations
impl Clone for ZHL16
[src]
impl Copy for ZHL16
[src]
impl Debug for ZHL16
[src]
impl DecoAlgorithm for ZHL16
[src]
fn add_dive_segment(
&mut self,
segment: &DiveSegment,
gas: &Gas,
metres_per_bar: f64
)
[src]
&mut self,
segment: &DiveSegment,
gas: &Gas,
metres_per_bar: f64
)
fn surface(
&mut self,
ascent_rate: isize,
descent_rate: isize,
gas: &Gas,
metres_per_bar: f64
) -> Vec<DiveSegment>
[src]
&mut self,
ascent_rate: isize,
descent_rate: isize,
gas: &Gas,
metres_per_bar: f64
) -> Vec<DiveSegment>
fn get_tissue(&self) -> Tissue
[src]
fn get_stops(
&self,
ascent_rate: isize,
descent_rate: isize,
gas: &Gas,
metres_per_bar: f64
) -> Vec<DiveSegment>
[src]
&self,
ascent_rate: isize,
descent_rate: isize,
gas: &Gas,
metres_per_bar: f64
) -> Vec<DiveSegment>
Auto Trait Implementations
impl RefUnwindSafe for ZHL16
impl Send for ZHL16
impl Sync for ZHL16
impl Unpin for ZHL16
impl UnwindSafe for ZHL16
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,