[][src]Struct lmb_engine_simulator::zero_dim::cylinder::Cylinder

pub struct Cylinder { /* fields omitted */ }

Zero-Dimensional struct representing the cylinder of an engine.

Implementations

impl Cylinder[src]

pub fn new(
    name: String,
    ini_angle: f64,
    engine_info: &JsonEngine,
    cylinder_info: &JsonCylinder,
    int_valves_info: &Vec<JsonValve>,
    exh_valves_info: &Vec<JsonValve>,
    combustion: Box<dyn Combustion>,
    injector: Option<Injector>,
    gas: &Gas
) -> Result<Cylinder, String>
[src]

Creates a cylinder object. Inputs units must be: mm, RPM and CA deg.

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

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

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

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

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

pub fn set_compression_ratio(&mut self, comp_ratio: f64)[src]

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

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

pub fn _test_closed_phase(&mut self)[src]

Test the compression phase of a cylinder.

pub fn _test_volume(&mut self)[src]

Estimates the cylinder volume and its derivative.

Trait Implementations

impl Display for Cylinder[src]

impl SaveData for Cylinder[src]

impl ZeroD for Cylinder[src]

impl ZeroDim for Cylinder[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> ToString for T where
    T: Display + ?Sized
[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.