Skip to main content

elastic_energy_from_force_deformation

Function elastic_energy_from_force_deformation 

Source
pub fn elastic_energy_from_force_deformation(
    force: f64,
    deformation: f64,
) -> Option<f64>
Expand description

Computes elastic energy from force and deformation for a linear loading path.

Formula: U = 0.5 * F * x.

Returns None when the result is negative or when any input or result is not finite.