pub struct WormLikeChain {
pub persistence_length: f64,
pub contour_length: f64,
}Expand description
Worm-Like Chain (WLC) model — semiflexible polymer.
Described by persistence length lp and contour length lc.
Fields§
§persistence_length: f64Persistence length (m).
contour_length: f64Contour length (m).
Implementations§
Source§impl WormLikeChain
impl WormLikeChain
Sourcepub fn end_to_end_rms(&self) -> f64
pub fn end_to_end_rms(&self) -> f64
RMS end-to-end distance for the WLC: ⟨r²⟩^½ = √(2·lp·lc).
This is the Gaussian limit; always less than contour length.
Sourcepub fn force_extension(&self, extension: f64, kt: f64) -> f64
pub fn force_extension(&self, extension: f64, kt: f64) -> f64
Force at fractional extension r/lc via the Marko-Siggia interpolation.
f = (kT / lp) · [ 1/(4(1−x)²) − 1/4 + x ] where x = extension/lc.
§Arguments
extension– end-to-end distance (m), must be < contour_length.kt– thermal energy k_B T (J).
Trait Implementations§
Source§impl Clone for WormLikeChain
impl Clone for WormLikeChain
Source§fn clone(&self) -> WormLikeChain
fn clone(&self) -> WormLikeChain
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 WormLikeChain
impl RefUnwindSafe for WormLikeChain
impl Send for WormLikeChain
impl Sync for WormLikeChain
impl Unpin for WormLikeChain
impl UnsafeUnpin for WormLikeChain
impl UnwindSafe for WormLikeChain
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