Derivative.h file
Directional derivative operator for scalar functions.
This file defines the Derivative class, which computes directional derivatives of scalar functions. This generalizes the gradient concept to derivatives in specific directions.
Mathematical Foundation
The directional derivative of a function in direction is:
Coordinate Derivatives
Special cases are partial derivatives:
- where is the -th coordinate direction.
Applications
- Normal derivatives:
- Material derivatives in fluid dynamics
- Characteristic methods for PDEs
- Shape sensitivity analysis
Usage Example
// Normal derivative on boundary auto n = BoundaryNormal(); auto normal_deriv = Derivative(u, n); // ∂u/∂n = ∇u·n
Namespaces
- namespace Rodin
- The Rodin library for Shape and Topology Optimization.
- namespace Rodin::FormLanguage
- Module for writing high level abstract expressions.
- namespace Rodin::Variational
- Module which provides the necessary tools for constructing variational problems.