28 #ifndef EWOMS_FV_BASE_NEWTON_CONVERGENCE_WRITER_HH 29 #define EWOMS_FV_BASE_NEWTON_CONVERGENCE_WRITER_HH 42 template<
class TypeTag,
class MyTypeTag>
43 struct SolutionVector;
44 template<
class TypeTag,
class MyTypeTag>
45 struct GlobalEqVector;
46 template<
class TypeTag,
class MyTypeTag>
48 template<
class TypeTag,
class MyTypeTag>
49 struct VtkOutputFormat;
62 template <
class TypeTag>
71 static constexpr
auto vtkFormat = getPropValue<TypeTag, Properties::VtkOutputFormat>();
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_;
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
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
Writes the intermediate solutions during the Newton scheme for models using a finite volume discretiz...
Definition: fvbasenewtonconvergencewriter.hh:63
Simplifies writing multi-file VTK datasets.
Definition: vtkmultiwriter.hh:64
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
void writeFields(const SolutionVector &uLastIter, const GlobalEqVector &deltaU)
Write the Newton update to disk.
Definition: fvbasenewtonconvergencewriter.hh:118
The Opm property system, traits with inheritance.
Simplifies writing multi-file VTK datasets.
void beginTimeStep()
Called by the Newton method before the actual algorithm is started for any given timestep.
Definition: fvbasenewtonconvergencewriter.hh:86
Definition: blackoilmodel.hh:80
Defines a type tags and some fundamental properties all models.
void endIteration()
Called by the Newton method after an iteration of the Newton algorithm has been completed.
Definition: fvbasenewtonconvergencewriter.hh:137