VectorFunction
VectorFunction(*args, **kwargs)
Vector valued space varying Function as a rank 1 tensor of Function.
Methods
| curl | Gradient of the (3D) VectorFunction, creates the curl VectorFunction. | 
| div | Divergence of the VectorFunction, creates the divergence Function. | 
| grad | Gradient of the VectorFunction, creates the gradient TensorFunction. | 
| laplacian | Laplacian of the VectorFunction, creates the Laplacian VectorFunction. | 
curl
curl(shift=None, order=None, method='FD', **kwargs)
Gradient of the (3D) VectorFunction, creates the curl VectorFunction.
Parameters
| shift |  | Shift for the center point of the derivative in number of gridpoints | None | 
| order |  | Discretization order for the finite differences. Uses func.space_orderwhen not specified | None | 
| method |  | Discretization method. Options are ‘FD’ (default) and ‘RSFD’ (rotated staggered grid finite-difference). | 'FD' | 
| weights |  | Custom weights for the finite difference coefficients. | required | 
div
div(shift=None, order=None, method='FD', **kwargs)
Divergence of the VectorFunction, creates the divergence Function.
Parameters
| shift |  | Shift for the center point of the derivative in number of gridpoints | None | 
| order |  | Discretization order for the finite differences. Uses func.space_orderwhen not specified | None | 
| method |  | Discretization method. Options are ‘FD’ (default) and ‘RSFD’ (rotated staggered grid finite-difference). | 'FD' | 
| weights |  | Custom weights for the finite difference coefficients. | required | 
grad
grad(shift=None, order=None, method='FD', **kwargs)
Gradient of the VectorFunction, creates the gradient TensorFunction.
Parameters
| shift |  | Shift for the center point of the derivative in number of gridpoints | None | 
| order |  | Discretization order for the finite differences. Uses func.space_orderwhen not specified | None | 
| method |  | Discretization method. Options are ‘FD’ (default) and ‘RSFD’ (rotated staggered grid finite-difference). | 'FD' | 
| weights |  | Custom weights for the finite difference coefficients. | required | 
laplacian
laplacian(shift=None, order=None, method='FD', **kwargs)
Laplacian of the VectorFunction, creates the Laplacian VectorFunction.
Parameters
| shift |  | Shift for the center point of the derivative in number of gridpoints | None | 
| order |  | Discretization order for the finite differences. Uses func.space_orderwhen not specified | None | 
| method |  | Discretization method. Options are ‘FD’ (default) and ‘RSFD’ (rotated staggered grid finite-difference). | 'FD' | 
| weights |  | Custom weights for the finite | required | 
 Back to top