Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces
DivergenceOp.hpp File Reference

Public interface of the Divergence element operator, which evaluates the divergence of a physical-space vector field at the quadrature points of every element. More...

#include <MultiRegions/ElmtOps/ElmtOp.hpp>
#include <MultiRegions/ElmtOps/Divergence/DivergenceBlockOp.hpp>

Go to the source code of this file.

Classes

class  Nektar::MultiRegions::DivergenceOp< TData >
 Whole-field interface of the divergence operator: sums the physical derivatives \(\partial u_d / \partial x_d\) of the first shape-dimension components of a physical-space field. More...
 

Namespaces

namespace  Nektar
 
namespace  Nektar::MultiRegions
 

Detailed Description

Public interface of the Divergence element operator, which evaluates the divergence of a physical-space vector field at the quadrature points of every element.

The operator forms

\[ \nabla\cdot\mathbf{u} = \sum_{d} \frac{\partial u_d}{\partial x_d}, \]

where the sum runs over the shape dimension of the expansion and \(u_d\) is the d-th component of the input field. Each physical derivative is obtained element by element, by differentiating in the element's reference directions and contracting with that element's derivative factors (the metric terms \(\partial\xi_j/\partial x_d\)), so unlike BwdTrans the geometry enters through the derivative-factor tables cached in the data warehouse. On a multi-plane 3DH1 expansion this is done plane by plane and \(\partial w/\partial z\), w being input component 2, is added afterwards by the homogeneous z-derivative.

The family follows the standard element-operator layout (see ElmtOp.hpp):

Definition in file DivergenceOp.hpp.