version 3.11-dev
Loading...
Searching...
No Matches
Dumux::Detail::PeriodicConstraints Namespace Reference

Functions

template<class GridGeometry, class Function>
void forEachPeriodicPair (const GridGeometry &gridGeometry, Function &&f)
 Call f(first, second) for each periodically mapped degree of freedom second of the degree of freedom first with the smallest index.
template<class GridGeometry, class Residual, class Solution>
void enforceInResidual (const GridGeometry &gridGeometry, Residual &res, const Solution &curSol)
 Add the residual of each periodic degree of freedom to the one it is mapped to and replace it by the constraint.
template<class GridGeometry, class Matrix>
void enforceInJacobian (const GridGeometry &gridGeometry, Matrix &jac)
 Add the matrix row of each periodic degree of freedom to the one it is mapped to and replace it by the derivative of the constraint.

Function Documentation

◆ enforceInJacobian()

template<class GridGeometry, class Matrix>
void Dumux::Detail::PeriodicConstraints::enforceInJacobian ( const GridGeometry & gridGeometry,
Matrix & jac )

◆ enforceInResidual()

template<class GridGeometry, class Residual, class Solution>
void Dumux::Detail::PeriodicConstraints::enforceInResidual ( const GridGeometry & gridGeometry,
Residual & res,
const Solution & curSol )

◆ forEachPeriodicPair()

template<class GridGeometry, class Function>
void Dumux::Detail::PeriodicConstraints::forEachPeriodicPair ( const GridGeometry & gridGeometry,
Function && f )