pub struct ForcingScenario {
pub name: String,
pub co2_trajectory: Vec<(f64, f64)>,
pub aerosol_trajectory: Vec<(f64, f64)>,
}Expand description
Climate forcing scenario for transient simulations.
Fields§
§name: StringName of scenario.
co2_trajectory: Vec<(f64, f64)>CO2 trajectory (year, ppm).
aerosol_trajectory: Vec<(f64, f64)>Aerosol forcing trajectory (year, W/m²).
Implementations§
Source§impl ForcingScenario
impl ForcingScenario
Sourcepub fn historical() -> Self
pub fn historical() -> Self
Create historical forcing scenario (1850-2020).
Sourcepub fn aerosol_at(&self, year: f64) -> f64
pub fn aerosol_at(&self, year: f64) -> f64
Interpolate aerosol forcing at given year.
Trait Implementations§
Source§impl Clone for ForcingScenario
impl Clone for ForcingScenario
Source§fn clone(&self) -> ForcingScenario
fn clone(&self) -> ForcingScenario
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForcingScenario
impl Debug for ForcingScenario
Source§impl<'de> Deserialize<'de> for ForcingScenario
impl<'de> Deserialize<'de> for ForcingScenario
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ForcingScenario
impl RefUnwindSafe for ForcingScenario
impl Send for ForcingScenario
impl Sync for ForcingScenario
impl Unpin for ForcingScenario
impl UnsafeUnpin for ForcingScenario
impl UnwindSafe for ForcingScenario
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