Skip to main content

gradient_3d

Function gradient_3d 

Source
pub fn gradient_3d(phi: &FluxGrid3D) -> VectorFluxGrid3D
Expand description

Compute the gradient of a scalar field at every cell.

Returns a VectorFluxGrid3D where each component is a partial derivative.