Rodin/Variational/Div.h file

Divergence operator for vector-valued functions.

This file defines the Div class, which computes the divergence of vector-valued functions in variational formulations. The divergence is a fundamental differential operator that measures the "outflow" of a vector field.

Mathematical Foundation

For a vector field $ \mathbf{u} : \Omega \subset \mathbb{R}^d \to \mathbb{R}^d $ , the divergence is defined as:

\[ \nabla \cdot \mathbf{u} = \sum_{i=1}^d \frac{\partial u_i}{\partial x_i} \]

Applications

  • Incompressibility constraint: $ \nabla \cdot \mathbf{u} = 0 $
  • Conservation laws: $ \nabla \cdot \mathbf{F} = 0 $
  • Mixed formulations for elliptic problems

Namespaces

namespace Rodin
The Rodin library for Shape and Topology Optimization.
namespace Rodin::Variational
Module which provides the necessary tools for constructing variational problems.

Classes

template<class FES, class Data, class Derived>
class Rodin::Variational::DivBase<GridFunction<FES, Data>, Derived>
Divergence of a P1 GridFunction.