3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | List of all members
Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector > Class Template Reference

Writes the intermediate solutions for every Newton iteration (for staggered grid scheme) More...

#include <dumux/nonlinear/staggerednewtonconvergencewriter.hh>

Inheritance diagram for Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector >:
Inheritance graph

Description

template<class GridGeometry, class SolutionVector>
class Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector >

Writes the intermediate solutions for every Newton iteration (for staggered grid scheme)

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.

Public Member Functions

 StaggeredNewtonConvergenceWriter (const GridGeometry &gridGeometry, const std::string &name="newton_convergence")
 Constructor. More...
 
void resize ()
 Resizes the output fields. This has to be called whenever the grid changes. More...
 
void reset (std::size_t newId=0UL)
 
void write (const SolutionVector &uLastIter, const SolutionVector &deltaU, const SolutionVector &residual) override
 

Constructor & Destructor Documentation

◆ StaggeredNewtonConvergenceWriter()

template<class GridGeometry , class SolutionVector >
Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector >::StaggeredNewtonConvergenceWriter ( const GridGeometry &  gridGeometry,
const std::string &  name = "newton_convergence" 
)
inline

Constructor.

Parameters
gridGeometryThe finite volume geometry on the grid view
nameBase name of the vtk output

Member Function Documentation

◆ reset()

template<class GridGeometry , class SolutionVector >
void Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector >::reset ( std::size_t  newId = 0UL)
inline

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 GridGeometry , class SolutionVector >
void Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector >::resize ( )
inline

Resizes the output fields. This has to be called whenever the grid changes.

◆ write()

template<class GridGeometry , class SolutionVector >
void Dumux::StaggeredNewtonConvergenceWriter< GridGeometry, SolutionVector >::write ( const SolutionVector &  uLastIter,
const SolutionVector &  deltaU,
const SolutionVector &  residual 
)
inlineoverridevirtual

The documentation for this class was generated from the following file: