Function palarust::lbm_hlp2d::strain_to_stress [] [src]

pub fn strain_to_stress(
    strain: &[[f64; 2]; 2],
    rho: &f64,
    omega: &f64
) -> [[f64; 2]; 2]

Computes the deviatoric stress from the strain rate.

Arguments

  • strain - 2x2 matrix
  • rho - density
  • omega - relaxation frequency

Example