Struct CosseratElement
pub struct CosseratElement {
pub q: [f64; 4],
pub omega: [f64; 3],
pub rest_len: f64,
pub rest_darboux: [f64; 3],
pub k_bend_twist: [f64; 3],
pub k_shear_stretch: [f64; 3],
pub cavity_pressure_pa: f64,
pub auxin_concentration: f64,
pub gravitropic_gain: f64,
pub phototropic_gain: f64,
pub drag_normal: f64,
pub drag_tangent: f64,
}Expand description
Material-frame segment state connecting node i to node i + 1.
Fields§
§q: [f64; 4]Material frame unit quaternion [w, x, y, z] (d3 = local +Z tangent).
omega: [f64; 3]Material-frame angular velocity (rad/s).
rest_len: f64§rest_darboux: [f64; 3]§k_bend_twist: [f64; 3]§k_shear_stretch: [f64; 3]§cavity_pressure_pa: f64Internal hydrostatic / turgor cavity pressure in Pa ($F_{\text{hydro}} = P_{\text{cav}} \pi r^2$).
auxin_concentration: f64Auxin hormone concentration modulating differential growth tropism.
gravitropic_gain: f64§phototropic_gain: f64§drag_normal: f64§drag_tangent: f64Trait Implementations§
§impl Clone for CosseratElement
impl Clone for CosseratElement
§fn clone(&self) -> CosseratElement
fn clone(&self) -> CosseratElement
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 moreimpl Copy for CosseratElement
§impl Debug for CosseratElement
impl Debug for CosseratElement
§impl Default for CosseratElement
impl Default for CosseratElement
§fn default() -> CosseratElement
fn default() -> CosseratElement
Returns the “default value” for a type. Read more
§impl PartialEq for CosseratElement
impl PartialEq for CosseratElement
impl StructuralPartialEq for CosseratElement
Auto Trait Implementations§
impl Freeze for CosseratElement
impl RefUnwindSafe for CosseratElement
impl Send for CosseratElement
impl Sync for CosseratElement
impl Unpin for CosseratElement
impl UnsafeUnpin for CosseratElement
impl UnwindSafe for CosseratElement
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