Writes the intermediate solutions for every Newton iteration.
More...
#include <dumux/multidomain/newtonconvergencewriter.hh>
template<class MDTraits>
class Dumux::MultiDomainNewtonConvergenceWriter< MDTraits >
- Note
- To use this create a shared_ptr to an instance of this class in the main file and pass it to newton.solve(x, convergencewriter). You can use the reset method to write out multiple Newton solves with a unique id, if you don't call use all Newton iterations just come after each other in the pvd file.
|
| MultiDomainNewtonConvergenceWriter (GridGeometryPtrTuple gridGeometryPtrTuple, const std::string &name="newton_convergence") |
| Constructor.
|
|
void | resize () |
| Resizes the output fields. This has to be called whenever the grid changes.
|
|
void | reset (std::size_t newId=0UL) |
|
void | write (const SolutionVector &uLastIter, const ResidualVector &deltaU, const ResidualVector &residual) override |
|
virtual void | write (const SolutionVector &uLastIter, const ResidualVector &deltaU, const ResidualVector &residual) |
|
◆ MultiDomainNewtonConvergenceWriter()
template<class MDTraits >
- Parameters
-
gridGeometryPtrTuple | A tuple of shared pointers to const grid geometries |
name | Base name of the vtk output |
◆ reset()
template<class MDTraits >
Reset the convergence writer for a possible next Newton step You may set a different id in case you don't want the output to be overwritten by the next step
◆ resize()
template<class MDTraits >
◆ write() [1/2]
virtual void Dumux::ConvergenceWriterInterface< SolutionVector, ResidualVector >::write |
( |
const SolutionVector & | uLastIter, |
|
|
const ResidualVector & | deltaU, |
|
|
const ResidualVector & | residual ) |
|
inlinevirtualinherited |
◆ write() [2/2]
template<class MDTraits >
The documentation for this class was generated from the following file: