Skip to main content

WormLikeChainPolymer

Struct WormLikeChainPolymer 

Source
pub struct WormLikeChainPolymer {
    pub persistence_length: f64,
    pub contour_length: f64,
    pub temperature: f64,
}
Expand description

Worm-Like Chain polymer model for semi-flexible polymers.

Uses the Marko-Siggia interpolation formula for force-extension.

Fields§

§persistence_length: f64

Persistence length L_p [m]

§contour_length: f64

Contour length L_c [m]

§temperature: f64

Temperature [K]

Implementations§

Source§

impl WormLikeChainPolymer

Source

pub fn new( persistence_length: f64, contour_length: f64, temperature: f64, ) -> Self

Create a new Worm-Like Chain model.

§Arguments
  • persistence_length - Persistence length L_p [m]
  • contour_length - Contour length L_c [m]
  • temperature - Temperature [K]
Source

pub fn force_extension(&self, extension: f64) -> f64

Force-extension using Marko-Siggia interpolation: F = (kT/L_p) * [1/(4*(1-x)²) - 1/4 + x] where x = R/L_c.

§Arguments
  • extension - End-to-end distance R [m], must be < contour length
Source

pub fn extension_at_force(&self, force: f64) -> f64

Extension at a given force (numerical inversion via bisection).

§Arguments
  • force - Applied force [N]
Source

pub fn mean_square_end_to_end(&self) -> f64

Mean square end-to-end distance in the WLC model: = 2 * L_p * L_c * [1 - (L_p/L_c)*(1 - exp(-L_c/L_p))]

Auto Trait Implementations§

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> 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, 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.