Skip to main content

Eval

Struct Eval 

Source
pub struct Eval {
Show 27 fields pub r: [f64; 2], pub w: [f64; 2], pub v: [f64; 2], pub j: [f64; 2], pub y: f64, pub vy: f64, pub wd: f64, pub t: [f64; 2], pub spring: [f64; 2], pub strain: [f64; 2], pub length: [f64; 2], pub material: [f64; 2], pub material_rate: [f64; 2], pub flow: [f64; 3], pub acc: [f64; 2], pub ydd: f64, pub wdd: f64, pub shaft: [f64; 2], pub drag: [f64; 2], pub brake_rate: [f64; 2], pub factor: [f64; 2], pub gear_input: [f64; 2], pub slide: f64, pub roller: f64, pub stop: [f64; 3], pub cylinder: f64, pub load: f64,
}
Expand description

What Winder::eval works out of a state: kinematics, the web’s tensions, the rates and the forces.

Fields§

§r: [f64; 2]

Radii, roll speeds (rad/s), surface speeds and inertias at the rolls (web, core, rotor through the ratio), unwind first.

§w: [f64; 2]§v: [f64; 2]§j: [f64; 2]§y: f64

The dancer’s travel down from the middle, its speed, and its roller’s speed (rad/s).

§vy: f64§wd: f64§t: [f64; 2]

The spans’ tensions (unwind to dancer, dancer to rewind), the spring’s share of them, their strains, their lengths, the web they hold and its rate (the elastic model; the rigid one has the tensions alone).

§spring: [f64; 2]§strain: [f64; 2]§length: [f64; 2]§material: [f64; 2]§material_rate: [f64; 2]§flow: [f64; 3]

The web crossing into span 1 from the unwind, from span 1 to span 2 over the roller, and out of span 2 onto the rewind, m/s unstretched (the elastic model).

§acc: [f64; 2]

The rolls’ angular accelerations, the dancer’s and its roller’s.

§ydd: f64§wdd: f64§shaft: [f64; 2]

Shaft friction, holding brake and the gearbox’s drag at each motor (N m, opposing its speed), the drag alone, the rate of each brake’s deflection, the dancer slide’s friction (N) and its roller’s (N m).

§drag: [f64; 2]§brake_rate: [f64; 2]§factor: [f64; 2]

Each gearbox’s factor on what it passes (Winder::loss_factor) and the torque at its input, N m.

§gear_input: [f64; 2]§slide: f64§roller: f64§stop: [f64; 3]

The stops’ force on the dancer (N, along y), their stored energy and their loss.

§cylinder: f64

The cylinder’s force setpoint and its force at the dancer’s travel (less the air spring’s k y).

§load: f64

Trait Implementations§

Source§

impl Clone for Eval

Source§

fn clone(&self) -> Eval

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Eval

Source§

impl Debug for Eval

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Eval

Source§

fn default() -> Eval

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Eval

§

impl RefUnwindSafe for Eval

§

impl Send for Eval

§

impl Sync for Eval

§

impl Unpin for Eval

§

impl UnsafeUnpin for Eval

§

impl UnwindSafe for Eval

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.