pub enum PredefinedMix {
Show 147 variants
Air,
Amarillo,
Ekofisk,
GulfCoast,
GulfCoastGasNIST,
HighCO2,
HighN2,
NaturalGasSample,
R401A,
R401B,
R401C,
R402A,
R402B,
R403A,
R403B,
R404A,
R405A,
R406A,
R407A,
R407B,
R407C,
R407D,
R407E,
R407F,
R407G,
R407H,
R407I,
R408A,
R409A,
R409B,
R410A,
R410B,
R411A,
R411B,
R412A,
R413A,
R414A,
R414B,
R415A,
R415B,
R416A,
R417A,
R417B,
R417C,
R418A,
R419A,
R419B,
R420A,
R421A,
R421B,
R422A,
R422B,
R422C,
R422D,
R422E,
R423A,
R424A,
R425A,
R426A,
R427A,
R427C,
R428A,
R429A,
R430A,
R431A,
R432A,
R433A,
R433B,
R433C,
R434A,
R435A,
R436A,
R436B,
R436C,
R437A,
R438A,
R439A,
R440A,
R441A,
R442A,
R443A,
R444A,
R444B,
R445A,
R446A,
R447A,
R447B,
R448A,
R448B,
R449A,
R449B,
R449C,
R450A,
R451A,
R451B,
R452A,
R452B,
R452C,
R453A,
R454A,
R454B,
R454C,
R455A,
R456A,
R457A,
R457B,
R457C,
R458A,
R459A,
R459B,
R460A,
R460B,
R460C,
R461A,
R462A,
R463A,
R464A,
R465A,
R466A,
R467A,
R468A,
R468B,
R468C,
R469A,
R470A,
R470B,
R471A,
R472A,
R472B,
R473A,
R474A,
R475A,
R476A,
R500,
R501,
R502,
R503,
R504,
R507A,
R508A,
R508B,
R509A,
R510A,
R511A,
R512A,
R513A,
TypicalNaturalGas,
}Expand description
CoolProp predefined mixtures.
ยงExamples
Conversion between &str:
use std::str::FromStr;
use rfluids::prelude::*;
assert_eq!(PredefinedMix::R444A.as_ref(), "R444A.mix");
assert_eq!(PredefinedMix::from_str("R444A.mix"), Ok(PredefinedMix::R444A));
assert_eq!(PredefinedMix::from_str("R444A"), Ok(PredefinedMix::R444A));ยงSee Also
Variantsยง
Air
Air mixture.
Amarillo
Amarillo natural gas mixture.
Ekofisk
Ekofisk natural gas mixture.
GulfCoast
Gulf Coast natural gas mixture.
GulfCoastGasNIST
NIST Gulf Coast gas mixture.
HighCO2
High-carbon-dioxide natural gas mixture.
HighN2
High-nitrogen natural gas mixture.
NaturalGasSample
Natural gas sample mixture.
R401A
Refrigerant blend R401A.
R401B
Refrigerant blend R401B.
R401C
Refrigerant blend R401C.
R402A
Refrigerant blend R402A.
R402B
Refrigerant blend R402B.
R403A
Refrigerant blend R403A.
R403B
Refrigerant blend R403B.
R404A
Refrigerant blend R404A.
R405A
Refrigerant blend R405A.
R406A
Refrigerant blend R406A.
R407A
Refrigerant blend R407A.
R407B
Refrigerant blend R407B.
R407C
Refrigerant blend R407C.
R407D
Refrigerant blend R407D.
R407E
Refrigerant blend R407E.
R407F
Refrigerant blend R407F.
R407G
Refrigerant blend R407G.
R407H
Refrigerant blend R407H.
R407I
Refrigerant blend R407I.
R408A
Refrigerant blend R408A.
R409A
Refrigerant blend R409A.
R409B
Refrigerant blend R409B.
R410A
Refrigerant blend R410A.
R410B
Refrigerant blend R410B.
R411A
Refrigerant blend R411A.
R411B
Refrigerant blend R411B.
R412A
Refrigerant blend R412A.
R413A
Refrigerant blend R413A.
R414A
Refrigerant blend R414A.
R414B
Refrigerant blend R414B.
R415A
Refrigerant blend R415A.
R415B
Refrigerant blend R415B.
R416A
Refrigerant blend R416A.
R417A
Refrigerant blend R417A.
R417B
Refrigerant blend R417B.
R417C
Refrigerant blend R417C.
R418A
Refrigerant blend R418A.
R419A
Refrigerant blend R419A.
R419B
Refrigerant blend R419B.
R420A
Refrigerant blend R420A.
R421A
Refrigerant blend R421A.
R421B
Refrigerant blend R421B.
R422A
Refrigerant blend R422A.
R422B
Refrigerant blend R422B.
R422C
Refrigerant blend R422C.
R422D
Refrigerant blend R422D.
R422E
Refrigerant blend R422E.
R423A
Refrigerant blend R423A.
R424A
Refrigerant blend R424A.
R425A
Refrigerant blend R425A.
R426A
Refrigerant blend R426A.
R427A
Refrigerant blend R427A.
R427C
Refrigerant blend R427C.
R428A
Refrigerant blend R428A.
R429A
Refrigerant blend R429A.
R430A
Refrigerant blend R430A.
R431A
Refrigerant blend R431A.
R432A
Refrigerant blend R432A.
R433A
Refrigerant blend R433A.
R433B
Refrigerant blend R433B.
R433C
Refrigerant blend R433C.
R434A
Refrigerant blend R434A.
R435A
Refrigerant blend R435A.
R436A
Refrigerant blend R436A.
R436B
Refrigerant blend R436B.
R436C
Refrigerant blend R436C.
R437A
Refrigerant blend R437A.
R438A
Refrigerant blend R438A.
R439A
Refrigerant blend R439A.
R440A
Refrigerant blend R440A.
R441A
Refrigerant blend R441A.
R442A
Refrigerant blend R442A.
R443A
Refrigerant blend R443A.
R444A
Refrigerant blend R444A.
R444B
Refrigerant blend R444B.
R445A
Refrigerant blend R445A.
R446A
Refrigerant blend R446A.
R447A
Refrigerant blend R447A.
R447B
Refrigerant blend R447B.
R448A
Refrigerant blend R448A.
R448B
Refrigerant blend R448B.
R449A
Refrigerant blend R449A.
R449B
Refrigerant blend R449B.
R449C
Refrigerant blend R449C.
R450A
Refrigerant blend R450A.
R451A
Refrigerant blend R451A.
R451B
Refrigerant blend R451B.
R452A
Refrigerant blend R452A.
R452B
Refrigerant blend R452B.
R452C
Refrigerant blend R452C.
R453A
Refrigerant blend R453A.
R454A
Refrigerant blend R454A.
R454B
Refrigerant blend R454B.
R454C
Refrigerant blend R454C.
R455A
Refrigerant blend R455A.
R456A
Refrigerant blend R456A.
R457A
Refrigerant blend R457A.
R457B
Refrigerant blend R457B.
R457C
Refrigerant blend R457C.
R458A
Refrigerant blend R458A.
R459A
Refrigerant blend R459A.
R459B
Refrigerant blend R459B.
R460A
Refrigerant blend R460A.
R460B
Refrigerant blend R460B.
R460C
Refrigerant blend R460C.
R461A
Refrigerant blend R461A.
R462A
Refrigerant blend R462A.
R463A
Refrigerant blend R463A.
R464A
Refrigerant blend R464A.
R465A
Refrigerant blend R465A.
R466A
Refrigerant blend R466A.
R467A
Refrigerant blend R467A.
R468A
Refrigerant blend R468A.
R468B
Refrigerant blend R468B.
R468C
Refrigerant blend R468C.
R469A
Refrigerant blend R469A.
R470A
Refrigerant blend R470A.
R470B
Refrigerant blend R470B.
R471A
Refrigerant blend R471A.
R472A
Refrigerant blend R472A.
R472B
Refrigerant blend R472B.
R473A
Refrigerant blend R473A.
R474A
Refrigerant blend R474A.
R475A
Refrigerant blend R475A.
R476A
Refrigerant blend R476A.
R500
Refrigerant blend R500.
R501
Refrigerant blend R501.
R502
Refrigerant blend R502.
R503
Refrigerant blend R503.
R504
Refrigerant blend R504.
R507A
Refrigerant blend R507A.
R508A
Refrigerant blend R508A.
R508B
Refrigerant blend R508B.
R509A
Refrigerant blend R509A.
R510A
Refrigerant blend R510A.
R511A
Refrigerant blend R511A.
R512A
Refrigerant blend R512A.
R513A
Refrigerant blend R513A.
TypicalNaturalGas
Typical natural gas mixture.
Trait Implementationsยง
Sourceยงimpl AsRef<str> for PredefinedMix
impl AsRef<str> for PredefinedMix
Sourceยงimpl Clone for PredefinedMix
impl Clone for PredefinedMix
Sourceยงfn clone(&self) -> PredefinedMix
fn clone(&self) -> PredefinedMix
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PredefinedMix
Sourceยงimpl Debug for PredefinedMix
impl Debug for PredefinedMix
Sourceยงimpl DefaultBackend for PredefinedMix
impl DefaultBackend for PredefinedMix
impl Eq for PredefinedMix
Sourceยงimpl<'_derivative_strum> From<&'_derivative_strum PredefinedMix> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum PredefinedMix> for &'static str
Sourceยงfn from(x: &'_derivative_strum PredefinedMix) -> &'static str
fn from(x: &'_derivative_strum PredefinedMix) -> &'static str
Sourceยงimpl From<PredefinedMix> for &'static str
impl From<PredefinedMix> for &'static str
Sourceยงfn from(x: PredefinedMix) -> &'static str
fn from(x: PredefinedMix) -> &'static str
Sourceยงimpl From<PredefinedMix> for Substance
impl From<PredefinedMix> for Substance
Sourceยงfn from(value: PredefinedMix) -> Self
fn from(value: PredefinedMix) -> Self
Sourceยงimpl FromStr for PredefinedMix
impl FromStr for PredefinedMix
Sourceยงimpl PartialEq for PredefinedMix
impl PartialEq for PredefinedMix
impl StructuralPartialEq for PredefinedMix
Sourceยงimpl TryFrom<&str> for PredefinedMix
impl TryFrom<&str> for PredefinedMix
Sourceยงimpl TryFrom<PredefinedMix> for Fluid<Undefined>
impl TryFrom<PredefinedMix> for Fluid<Undefined>
Sourceยงfn try_from(value: PredefinedMix) -> Result<Self, Self::Error>
fn try_from(value: PredefinedMix) -> Result<Self, Self::Error>
Tries to create and return a new Fluid instance with Undefined state variant
from PredefinedMix.
If you need advanced control over backend selection, consider using Fluid::builder.
ยงErrors
Returns a FluidBuildError for unsupported predefined mixtures.
ยงExamples
use rfluids::prelude::*;
assert!(Fluid::try_from(PredefinedMix::R444A).is_ok());
assert!(Fluid::try_from(PredefinedMix::R401A).is_err());