28#ifndef EWOMS_FV_BASE_NEWTON_CONVERGENCE_WRITER_HH
29#define EWOMS_FV_BASE_NEWTON_CONVERGENCE_WRITER_HH
39namespace Opm::Properties {
42template<
class TypeTag,
class MyTypeTag>
44template<
class TypeTag,
class MyTypeTag>
46template<
class TypeTag,
class MyTypeTag>
48template<
class TypeTag,
class MyTypeTag>
62template <
class TypeTag>
63class FvBaseNewtonConvergenceWriter
75 explicit FvBaseNewtonConvergenceWriter(NewtonMethod& nm)
99 if (!vtkMultiWriter_) {
101 std::make_unique<VtkMultiWriter>(
false,
102 newtonMethod_.problem().gridView(),
103 newtonMethod_.problem().outputDir(),
106 vtkMultiWriter_->beginWrite(timeStepIdx_ + iteration_ / 100.0);
119 const GlobalEqVector& deltaU)
122 newtonMethod_.problem().model().addConvergenceVtkFields(*vtkMultiWriter_,
127 std::cout <<
"Oops: exception thrown on rank "
128 << newtonMethod_.problem().gridView().comm().rank()
129 <<
" while writing the convergence\n" << std::flush;
138 { vtkMultiWriter_->endWrite(
false); }
153 std::unique_ptr<VtkMultiWriter> vtkMultiWriter_{};
154 NewtonMethod& newtonMethod_;
Defines a type tags and some fundamental properties all models.
void writeFields(const SolutionVector &uLastIter, const GlobalEqVector &deltaU)
Write the Newton update to disk.
Definition fvbasenewtonconvergencewriter.hh:118
void beginTimeStep()
Called by the Newton method before the actual algorithm is started for any given timestep.
Definition fvbasenewtonconvergencewriter.hh:86
void endTimeStep()
Called by the Newton method after Newton algorithm has been completed for any given timestep.
Definition fvbasenewtonconvergencewriter.hh:147
void beginIteration()
Called by the Newton method before an iteration of the Newton algorithm is started.
Definition fvbasenewtonconvergencewriter.hh:96
void endIteration()
Called by the Newton method after an iteration of the Newton algorithm has been completed.
Definition fvbasenewtonconvergencewriter.hh:137
Simplifies writing multi-file VTK datasets.
Definition vtkmultiwriter.hh:65
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:233
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
The Opm property system, traits with inheritance.
Vector containing a quantity of for equation for each DOF of the whole grid.
Definition linalgproperties.hh:54
Specifies the type of the actual Newton method.
Definition newtonmethodproperties.hh:32
Vector containing all primary variables of the grid.
Definition fvbaseproperties.hh:126
Simplifies writing multi-file VTK datasets.