Skip to main content

symdiv_inplace_f32

Function symdiv_inplace_f32 

Source
pub fn symdiv_inplace_f32(
    divx: &mut [f32],
    divy: &mut [f32],
    divz: &mut [f32],
    sxx: &[f32],
    sxy: &[f32],
    sxz: &[f32],
    syy: &[f32],
    syz: &[f32],
    szz: &[f32],
    nx: usize,
    ny: usize,
    nz: usize,
    vsx: f32,
    vsy: f32,
    vsz: f32,
)
Expand description

Divergence of symmetric tensor field (adjoint of symgrad)

Computes the divergence of a 6-component symmetric tensor field, producing a 3-component vector field. This is the adjoint of symgrad_inplace_f32. Uses zero boundary conditions (matching Julia).