Periodic constraints of assembled linear systems. More...
#include <algorithm>#include <cassert>#include <dumux/common/deprecated.hh>#include <dumux/common/typetraits/periodic.hh>Go to the source code of this file.
Of each set of periodically identified degrees of freedom, the one with the smallest index keeps the sum of the equations of the set, and the equations of the others are replaced by the constraint that their solution equals the one of the smallest index.
Namespaces | |
| namespace | Dumux |
| namespace | Dumux::Detail |
| namespace | Dumux::Detail::PeriodicConstraints |
Functions | |
| template<class GridGeometry, class Function> | |
| void | Dumux::Detail::PeriodicConstraints::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 | Dumux::Detail::PeriodicConstraints::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 | Dumux::Detail::PeriodicConstraints::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. | |