pub struct Harmonic {
pub rest_length: Scalar,
pub stiffness: Scalar,
}Expand description
The harmonic potential.
Fields§
§rest_length: ScalarThe rest length $x_0$.
stiffness: ScalarThe stiffness $k$.
Trait Implementations§
Source§impl Potential for Harmonic
impl Potential for Harmonic
Source§fn anharmonicity(&self, _length: Scalar) -> Scalar
fn anharmonicity(&self, _length: Scalar) -> Scalar
h(x) = 0.0Source§fn compliance(&self, _force: Scalar) -> Scalar
fn compliance(&self, _force: Scalar) -> Scalar
c(f) = \frac{1}{k}Source§fn peak_force(&self) -> Scalar
fn peak_force(&self) -> Scalar
f(x_\mathrm{peak}) = \inftySource§fn rest_length(&self) -> Scalar
fn rest_length(&self) -> Scalar
\text{arg min }u(x) = x_0Source§fn nondimensional_energy(
&self,
nondimensional_length: Scalar,
temperature: Scalar,
) -> Scalar
fn nondimensional_energy( &self, nondimensional_length: Scalar, temperature: Scalar, ) -> Scalar
Source§fn nondimensional_force(
&self,
nondimensional_length: Scalar,
temperature: Scalar,
) -> Scalar
fn nondimensional_force( &self, nondimensional_length: Scalar, temperature: Scalar, ) -> Scalar
Source§fn nondimensional_stiffness(
&self,
nondimensional_length: Scalar,
temperature: Scalar,
) -> Scalar
fn nondimensional_stiffness( &self, nondimensional_length: Scalar, temperature: Scalar, ) -> Scalar
Source§fn nondimensional_anharmonicity(
&self,
nondimensional_length: Scalar,
temperature: Scalar,
) -> Scalar
fn nondimensional_anharmonicity( &self, nondimensional_length: Scalar, temperature: Scalar, ) -> Scalar
Source§fn nondimensional_legendre(
&self,
nondimensional_force: Scalar,
temperature: Scalar,
) -> Scalar
fn nondimensional_legendre( &self, nondimensional_force: Scalar, temperature: Scalar, ) -> Scalar
Auto Trait Implementations§
impl Freeze for Harmonic
impl RefUnwindSafe for Harmonic
impl Send for Harmonic
impl Sync for Harmonic
impl Unpin for Harmonic
impl UnwindSafe for Harmonic
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