28 #ifndef EWOMS_FV_BASE_NEWTON_CONVERGENCE_WRITER_HH 29 #define EWOMS_FV_BASE_NEWTON_CONVERGENCE_WRITER_HH 38 namespace Properties {
54 template <
class TypeTag>
57 typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;
59 typedef typename GET_PROP_TYPE(TypeTag, SolutionVector) SolutionVector;
60 typedef typename GET_PROP_TYPE(TypeTag, GlobalEqVector) GlobalEqVector;
63 static const int vtkFormat =
GET_PROP_VALUE(TypeTag, VtkOutputFormat);
76 {
delete vtkMultiWriter_; }
98 vtkMultiWriter_->
beginWrite(timeStepIdx_ + iteration_ / 100.0);
111 const GlobalEqVector& deltaU)
114 newtonMethod_.
problem().model().addConvergenceVtkFields(*vtkMultiWriter_,
119 std::cout <<
"Oops: exception thrown on rank " 120 << newtonMethod_.
problem().gridView().comm().rank()
121 <<
" while writing the convergence\n" << std::flush;
void beginIteration()
Called by the Newton method before an iteration of the Newton algorithm is started.
Definition: fvbasenewtonconvergencewriter.hh:92
void endIteration()
Called by the Newton method after an iteration of the Newton algorithm has been completed.
Definition: fvbasenewtonconvergencewriter.hh:129
void beginWrite(double t)
Called whenever a new time step must be written.
Definition: vtkmultiwriter.hh:135
Definition: baseauxiliarymodule.hh:37
Writes the intermediate solutions during the Newton scheme for models using a finite volume discretiz...
Definition: fvbasenewtonconvergencewriter.hh:55
Simplifies writing multi-file VTK datasets.
Definition: vtkmultiwriter.hh:63
#define GET_PROP_VALUE(TypeTag, PropTagName)
Access the value attribute of a property for a type tag.
Definition: propertysystem.hh:469
void endTimeStep()
Called by the Newton method after Newton algorithm has been completed for any given timestep...
Definition: fvbasenewtonconvergencewriter.hh:139
void endWrite(bool onlyDiscard=false)
Finalizes the current writer.
Definition: vtkmultiwriter.hh:340
The multi-dimensional Newton method.
Definition: newtonmethod.hh:56
Provides the magic behind the eWoms property system.
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:82
#define NEW_PROP_TAG(PTagName)
Define a property tag.
Definition: propertysystem.hh:247
Problem & problem()
Returns a reference to the object describing the current physical problem.
Definition: newtonmethod.hh:244
void writeFields(const SolutionVector &uLastIter, const GlobalEqVector &deltaU)
Write the Newton update to disk.
Definition: fvbasenewtonconvergencewriter.hh:110