[][src]Struct lmb_engine_simulator::engine::engine::Engine

pub struct Engine { /* fields omitted */ }

Implementations

impl Engine[src]

pub fn new(file_name: &str, gas: &Gas) -> Result<Engine, String>[src]

pub fn advance(&mut self, dt: f64)[src]

pub fn calc_operational_param(
    &mut self,
    press: Vec<ArrayView1<'_, f64>>,
    vol: Vec<ArrayView1<'_, f64>>
)
[src]

pub fn write_performance_to(&self, file_name: &str)[src]

pub fn update_cylinders_flow_ratio(
    &mut self,
    flow_ratio: Vec<Vec<(&str, &FlowRatio)>>
)
[src]

pub fn set_speed(&mut self, speed: f64)[src]

Set engine speed, input in RPM

pub fn set_displacement(&mut self, disp: f64)[src]

Set engine displacement, input in cm³

pub fn set_compression_ratio_of(&mut self, cyl: &str, comp_ratio: f64)[src]

Set cylinder cyl compression ratio

pub fn set_combustion_model(&mut self, comb: &Box<dyn Combustion>)[src]

Set combustion model for all cylinders

pub fn set_air_fuel_ratio(&mut self, afr: f64)[src]

Set injectors relative air-fuel ratio, input between 0 and 1

pub fn store_species(&mut self, state: bool)[src]

Set if the species inside the cylinder should be storable

pub fn cylinders<'a>(&'a self) -> &'a Vec<Cylinder>[src]

Returns a reference to the cylinders in the engine

pub fn valves<'a>(&'a self) -> &'a Vec<Valve>[src]

Returns a reference to the valves in the engine

pub fn bore(&self) -> f64[src]

Returns cylinders bore in mm

pub fn firing_order(&self) -> String[src]

Returns the firing order of the cylinders

pub fn eccentricity(&self) -> f64[src]

Returns cylinders eccentricity in mm

pub fn combustion_model(&self) -> String[src]

Returns the combustion model name

pub fn injector(&self) -> Option<&Injector>[src]

pub fn sec_to_rad(&self) -> f64[src]

Returns the constant multiplier to change from seconds to crank-angle degrees

pub fn operat_param(&self) -> &OperationalParameters[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.