[−][src]Struct lmb_engine_simulator::connector::valve::Valve
Connector struct representing a poppet valve of an engine
Implementations
impl Valve
[src]
pub fn new(
name: String,
opening_angle: f64,
closing_angle: f64,
diameter: f64,
max_lift: f64,
cylinder: &Cylinder
) -> Result<Valve, &'static str>
[src]
name: String,
opening_angle: f64,
closing_angle: f64,
diameter: f64,
max_lift: f64,
cylinder: &Cylinder
) -> Result<Valve, &'static str>
pub fn _test_valve_area_and_lift(&self)
[src]
Trait Implementations
impl Clone for Valve
[src]
impl Conn for Valve
[src]
impl Connector for Valve
[src]
pub fn name<'a>(&'a self) -> &'a str
[src]
pub fn connecting<'a>(&'a self) -> &'a Vec<String>
[src]
pub fn connect_to(&mut self, elem_name: &str) -> Result<(), String>
[src]
pub fn update_flow_ratio(&mut self, prop: Vec<BasicProperties<'_>>, dt: f64)
[src]
pub fn get_flow_ratio<'a>(
&'a self,
elem_name: &str
) -> Result<&'a FlowRatio, String>
[src]
&'a self,
elem_name: &str
) -> Result<&'a FlowRatio, String>
impl SaveData for Valve
[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]
Auto Trait Implementations
impl !RefUnwindSafe for Valve
[src]
impl !Send for Valve
[src]
impl !Sync for Valve
[src]
impl Unpin for Valve
[src]
impl !UnwindSafe for Valve
[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> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,