[][src]Struct lmb_engine_simulator::core::system::System

pub struct System { /* fields omitted */ }

Implementations

impl System[src]

pub fn new(
    objs_info: Vec<ObjectInfo>,
    engine: Option<Engine>,
    zero_dim: Vec<Box<dyn ZeroD>>,
    one_dim: Vec<Box<dyn OneD>>,
    connector: Vec<Box<dyn Conn>>
) -> Result<System, String>
[src]

pub fn advance<'a>(&'a mut self, dt: f64) -> &'a mut Self[src]

Advance all objects in System by dt. The state of the objects is stored.

pub fn advance_to_steady_state<'a>(&'a mut self) -> &'a mut Self[src]

Advance all objects in System until steady state or until a max number of iterations/cycles is reached. All the stored data of objects are reseted

pub fn write_to_file(
    &self,
    file_name: &str,
    obj_name: &str,
    _range: Option<(usize, usize)>
)
[src]

Write the stored data from a object, obj_name, into a file file_name. If Engine has been added, only the data stored in the last cycle will be written as default. _range can be used to set the first and last index of the writable data.

pub fn engine<'a>(&'a self) -> Option<&'a Engine>[src]

pub fn engine_mut<'a>(&'a mut self) -> Option<&'a mut Engine>[src]

pub fn _store_composition_of(&mut self, _obj_name: &str)[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.