[−][src]Struct lmb_engine_simulator::engine::engine::Engine
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]
&mut self,
press: Vec<ArrayView1<'_, f64>>,
vol: Vec<ArrayView1<'_, f64>>
)
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]
&mut self,
flow_ratio: Vec<Vec<(&str, &FlowRatio)>>
)
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
impl !RefUnwindSafe for Engine
[src]
impl !Send for Engine
[src]
impl !Sync for Engine
[src]
impl Unpin for Engine
[src]
impl !UnwindSafe for Engine
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,