pub struct FreelyJointedChain {
pub n_segments: usize,
pub segment_length: f64,
}Expand description
Freely Jointed Chain (FJC) model.
Describes a polymer as n_segments rigid links of equal length
segment_length joined by freely-rotating joints.
Fields§
§n_segments: usizeNumber of Kuhn segments.
segment_length: f64Kuhn segment length (m).
Implementations§
Source§impl FreelyJointedChain
impl FreelyJointedChain
Sourcepub fn contour_length(&self) -> f64
pub fn contour_length(&self) -> f64
Contour (maximum extended) length L = n·b.
Sourcepub fn end_to_end_rms(&self) -> f64
pub fn end_to_end_rms(&self) -> f64
Root-mean-square end-to-end distance ⟨r²⟩^½ = b·√n.
Trait Implementations§
Source§impl Clone for FreelyJointedChain
impl Clone for FreelyJointedChain
Source§fn clone(&self) -> FreelyJointedChain
fn clone(&self) -> FreelyJointedChain
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 FreelyJointedChain
impl RefUnwindSafe for FreelyJointedChain
impl Send for FreelyJointedChain
impl Sync for FreelyJointedChain
impl Unpin for FreelyJointedChain
impl UnsafeUnpin for FreelyJointedChain
impl UnwindSafe for FreelyJointedChain
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