[−][src]Struct lmb_engine_simulator::zero_dim::cylinder::Cylinder
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]
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>
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]
pub fn get_headers(&self) -> String
[src]
pub fn num_storable_variables(&self) -> usize
[src]
pub fn get_storable_data(&self) -> Array1<f64>
[src]
impl ZeroD for Cylinder
[src]
impl ZeroDim for Cylinder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Cylinder
[src]
impl !Send for Cylinder
[src]
impl !Sync for Cylinder
[src]
impl Unpin for Cylinder
[src]
impl !UnwindSafe for Cylinder
[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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,