Struct ConcatPostPrcess

Source
pub struct ConcatPostPrcess {
    dataset: Vec<PostProcess>,
}

Fields§

§dataset: Vec<PostProcess>

Implementations§

Source§

impl ConcatPostPrcess

Source

pub fn new(folder: &[&str], root: Option<String>) -> Result<Self, ApiError>

Source

pub fn get_time_end(&self) -> Result<Vec<f64>, String>

Retrieves the last time value from each dataset in the collection.

§Returns
  • Result<Vec<f64>, String> - A vector of the last time values for each dataset or an error message if any dataset is empty.

Trait Implementations§

Source§

impl Debug for ConcatPostPrcess

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PostProcessReader for ConcatPostPrcess

Source§

fn time_array(&self) -> Array1<f64>

Concatenates the time arrays from all datasets into a single array view.

§Returns
  • ArrayView1<f64> - A concatenated array view of time data.
Source§

fn time(&self) -> &[f64]

Returns a reference to the time data from the simulation results. Read more
Source§

fn v_liquid(&self) -> ArrayView2<'_, f64>

Source§

fn get_spatial_average_property( &self, key: &str, ) -> Result<Array2<f64>, ApiError>

Source§

fn get_concentrations(&self, phase: Phase) -> ArrayView3<'_, f64>

Source§

fn get_variance_concentration( &self, species: usize, phase: Phase, ) -> Result<Array1<f64>, ApiError>

Source§

fn get_spatial_average_biomass_concentration( &self, ) -> Result<Array1<f64>, ApiError>

Source§

fn get_probes(&self) -> Result<Array1<f64>, ApiError>

Source§

fn get_property_names(&self) -> Vec<String>

Returns model’s property names Read more
Source§

fn get_max_n_export_bio(&self) -> usize

Retrieves the maximum number of biological export events. Read more
Source§

fn n_export(&self) -> usize

Retrieves the total number of export events from the simulation results. Read more
Source§

fn get_spatial_average_concentration( &self, species: usize, phase: Phase, ) -> Array1<f64>

Computes the spatial average concentration for a specific species and phase. Read more
Source§

fn get_time_average_concentration( &self, species: usize, position: usize, phase: Phase, ) -> Result<Array1<f64>, ApiError>

Computes the time average concentration for a specific species, position, and phase. Read more
Source§

fn get_spatial_average_mtr( &self, species: usize, ) -> Result<Array1<f64>, ApiError>

Source§

fn get_biomass_concentration(&self) -> Result<Array2<f64>, ApiError>

Calculates the biomass concentration over time. Read more
Source§

fn get_growth_in_number(&self) -> Array1<f64>

Calculates the total growth in number. Read more
Source§

fn weight(&self) -> &Weight

Returns a weight chosen for simulation Read more
Source§

fn get_number_particle(&self) -> &Array2<f64>

Retrieves a reference to the 2D array of particle numbers. Read more
Source§

fn get_properties( &self, key: &str, i_export: usize, ) -> Result<Array1<f64>, ApiError>

Fetches specific properties of the model at a given export index. Read more
Source§

fn get_time_population_mean(&self, key: &str) -> Result<Array1<f64>, ApiError>

Calculates the time-averaged population mean for a specific property key. Read more
Source§

fn get_histogram_array( &self, n_bins: usize, i_export: usize, key: &str, ) -> Result<(Array1<f64>, Array1<f64>), ApiError>

Retrieves histogram data for a specific property key at a given export index. Read more
Source§

fn get_histogram( &self, n_bins: usize, i_export: usize, key: &str, ) -> Result<(Vec<f64>, Vec<f64>), ApiError>

Retrieves histogram data for a specific property key at a given export index. Read more
Source§

fn get_population_mean( &self, key: &str, i_export: usize, ) -> Result<f64, ApiError>

Retrieves the population mean for a specific property key at a given export index. Read more
Source§

fn tallies(&self) -> Option<&Tallies>

Returns Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.