pub struct MuscleMaterial {
pub max_isometric_force: f64,
pub optimal_fiber_length: f64,
pub pennation_angle: f64,
pub vmax_factor: f64,
pub passive_stiffness: f64,
}Expand description
Hill three-element muscle model.
Active force is generated by the contractile element (CE); total force combines the active CE with a passive elastic element (PE).
Fields§
§max_isometric_force: f64Maximum isometric force F0 (N).
optimal_fiber_length: f64Optimal fiber length L0 (m) at which active force is maximal.
pennation_angle: f64Pennation angle at optimal length (radians).
vmax_factor: f64Maximum shortening velocity Vmax = k * L0 (fiber lengths per second).
passive_stiffness: f64Passive tissue stiffness coefficient (Pa).
Implementations§
Source§impl MuscleMaterial
impl MuscleMaterial
Sourcepub fn force_length_factor(&self, length: f64) -> f64
pub fn force_length_factor(&self, length: f64) -> f64
Force-length factor FL(l) — bell-shaped function around L0.
Returns a value in [0, 1].
Sourcepub fn active_force(&self, activation: f64, length: f64) -> f64
pub fn active_force(&self, activation: f64, length: f64) -> f64
Active force produced by the contractile element.
activation– neural activation in [0, 1].length– current fiber length (m).
Sourcepub fn passive_force(&self, length: f64) -> f64
pub fn passive_force(&self, length: f64) -> f64
Passive elastic force from parallel element (N).
Sourcepub fn total_force(&self, activation: f64, length: f64) -> f64
pub fn total_force(&self, activation: f64, length: f64) -> f64
Total muscle force (N) = active + passive.
Sourcepub fn tissue_type(&self) -> TissueType
pub fn tissue_type(&self) -> TissueType
Tissue type classification.
Trait Implementations§
Source§impl Clone for MuscleMaterial
impl Clone for MuscleMaterial
Source§fn clone(&self) -> MuscleMaterial
fn clone(&self) -> MuscleMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MuscleMaterial
impl RefUnwindSafe for MuscleMaterial
impl Send for MuscleMaterial
impl Sync for MuscleMaterial
impl Unpin for MuscleMaterial
impl UnsafeUnpin for MuscleMaterial
impl UnwindSafe for MuscleMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more