Skip to main content

shape_function

Function shape_function 

Source
pub fn shape_function(
    coords: &[[f64; 6]; 2],
    gp: (f64, f64, f64),
) -> ShapeFunctionResult
Expand description

Evaluate Tri6 shape functions, derivatives, Jacobian, and global coords.

coords is a 2×6 array: coords[0] = x-coords, coords[1] = y-coords. Node ordering: [v0, v1, v2, mid01, mid12, mid20].