Opm::FvBaseNewtonConvergenceWriter< TypeTag > Class Template Reference

Writes the intermediate solutions during the Newton scheme for models using a finite volume discretization. More...

#include <fvbasenewtonconvergencewriter.hh>

Public Member Functions

 FvBaseNewtonConvergenceWriter (NewtonMethod &nm)
 
 ~FvBaseNewtonConvergenceWriter ()
 
void beginTimeStep ()
 Called by the Newton method before the actual algorithm is started for any given timestep. More...
 
void beginIteration ()
 Called by the Newton method before an iteration of the Newton algorithm is started. More...
 
void writeFields (const SolutionVector &uLastIter, const GlobalEqVector &deltaU)
 Write the Newton update to disk. More...
 
void endIteration ()
 Called by the Newton method after an iteration of the Newton algorithm has been completed. More...
 
void endTimeStep ()
 Called by the Newton method after Newton algorithm has been completed for any given timestep. More...
 

Detailed Description

template<class TypeTag>
class Opm::FvBaseNewtonConvergenceWriter< TypeTag >

Writes the intermediate solutions during the Newton scheme for models using a finite volume discretization.

Constructor & Destructor Documentation

◆ FvBaseNewtonConvergenceWriter()

template<class TypeTag >
Opm::FvBaseNewtonConvergenceWriter< TypeTag >::FvBaseNewtonConvergenceWriter ( NewtonMethod &  nm)
inline

◆ ~FvBaseNewtonConvergenceWriter()

template<class TypeTag >
Opm::FvBaseNewtonConvergenceWriter< TypeTag >::~FvBaseNewtonConvergenceWriter ( )
inline

Member Function Documentation

◆ beginIteration()

template<class TypeTag >
void Opm::FvBaseNewtonConvergenceWriter< TypeTag >::beginIteration ( )
inline

Called by the Newton method before an iteration of the Newton algorithm is started.

References Opm::VtkMultiWriter< GridView, vtkFormat >::beginWrite().

◆ beginTimeStep()

template<class TypeTag >
void Opm::FvBaseNewtonConvergenceWriter< TypeTag >::beginTimeStep ( )
inline

Called by the Newton method before the actual algorithm is started for any given timestep.

◆ endIteration()

template<class TypeTag >
void Opm::FvBaseNewtonConvergenceWriter< TypeTag >::endIteration ( )
inline

Called by the Newton method after an iteration of the Newton algorithm has been completed.

References Opm::VtkMultiWriter< GridView, vtkFormat >::endWrite().

◆ endTimeStep()

template<class TypeTag >
void Opm::FvBaseNewtonConvergenceWriter< TypeTag >::endTimeStep ( )
inline

Called by the Newton method after Newton algorithm has been completed for any given timestep.

This method is called regardless of whether the Newton method converged or not.

◆ writeFields()

template<class TypeTag >
void Opm::FvBaseNewtonConvergenceWriter< TypeTag >::writeFields ( const SolutionVector &  uLastIter,
const GlobalEqVector &  deltaU 
)
inline

Write the Newton update to disk.

Called after the linear solution is found for an iteration.

Parameters
uLastIterThe solution vector of the previous iteration.
deltaUThe negative difference between the solution vectors of the previous and the current iteration.

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