Opm::VtkMultiWriter< GridView, vtkFormat > Class Template Reference Simplifies writing multi-file VTK datasets. More...
Inheritance diagram for Opm::VtkMultiWriter< GridView, vtkFormat >:
![]()
Detailed Descriptiontemplate<class GridView, int vtkFormat> class Opm::VtkMultiWriter< GridView, vtkFormat > Simplifies writing multi-file VTK datasets. This class automatically keeps the meta file up to date and simplifies writing datasets consisting of multiple files. (i.e. multiple time steps or grid refinements within a time step.) Member Typedef Documentation◆ FunctionPtr
template<class GridView , int vtkFormat>
◆ Scalar
template<class GridView , int vtkFormat>
◆ ScalarBuffer
template<class GridView , int vtkFormat>
◆ Tensor
template<class GridView , int vtkFormat>
◆ TensorBuffer
template<class GridView , int vtkFormat>
◆ Vector
template<class GridView , int vtkFormat>
◆ VectorBuffer
template<class GridView , int vtkFormat>
◆ VtkWriter
template<class GridView , int vtkFormat>
Constructor & Destructor Documentation◆ VtkMultiWriter()
template<class GridView , int vtkFormat>
◆ ~VtkMultiWriter()
template<class GridView , int vtkFormat>
References Opm::TaskletRunner::barrier(). Member Function Documentation◆ allocateManagedScalarBuffer()
template<class GridView , int vtkFormat>
Allocate a managed buffer for a scalar field. The buffer will be deleted automatically after the data has been written by to disk. Referenced by Opm::FvBaseDiscretization< TypeTag >::addConvergenceVtkFields(). ◆ allocateManagedVectorBuffer()
template<class GridView , int vtkFormat>
Allocate a managed buffer for a vector field. The buffer will be deleted automatically after the data has been written by to disk. ◆ attachScalarElementData()
template<class GridView , int vtkFormat>
Add a element centered quantity to the output. If the buffer is managed by the VtkMultiWriter, it must have been created using createField() and may not be used by anywhere after calling this method. After the data is written to disk, it will be deleted automatically. If the buffer is not managed by the MultiWriter, the buffer must exist at least until the call to endWrite() finishes. In both cases, modifying the buffer between the call to this method and endWrite() results in undefined behaviour. Implements Opm::BaseOutputWriter. ◆ attachScalarVertexData()
template<class GridView , int vtkFormat>
Add a finished vertex centered vector field to the output. If the buffer is managed by the VtkMultiWriter, it must have been created using allocateManagedBuffer() and may not be used anywhere after calling this method. After the data is written to disk, it will be deleted automatically. If the buffer is not managed by the MultiWriter, the buffer must exist at least until the call to endWrite() finishes. In both cases, modifying the buffer between the call to this method and endWrite() results in undefined behavior. Implements Opm::BaseOutputWriter. ◆ attachTensorElementData()
template<class GridView , int vtkFormat>
Add a finished element-centered tensor field to the output. Implements Opm::BaseOutputWriter. ◆ attachTensorVertexData()
template<class GridView , int vtkFormat>
Add a finished vertex-centered tensor field to the output. Implements Opm::BaseOutputWriter. ◆ attachVectorElementData()
template<class GridView , int vtkFormat>
Add a element centered quantity to the output. If the buffer is managed by the VtkMultiWriter, it must have been created using createField() and may not be used by anywhere after calling this method. After the data is written to disk, it will be deleted automatically. If the buffer is not managed by the MultiWriter, the buffer must exist at least until the call to endWrite() finishes. In both cases, modifying the buffer between the call to this method and endWrite() results in undefined behaviour. Implements Opm::BaseOutputWriter. ◆ attachVectorVertexData()
template<class GridView , int vtkFormat>
Add a finished vertex centered vector field to the output. If the buffer is managed by the VtkMultiWriter, it must have been created using allocateManagedBuffer() and may not be used anywhere after calling this method. After the data is written to disk, it will be deleted automatically. If the buffer is not managed by the MultiWriter, the buffer must exist at least until the call to endWrite() finishes. In both cases, modifying the buffer between the call to this method and endWrite() results in undefined behavior. Implements Opm::BaseOutputWriter. ◆ beginWrite()
template<class GridView , int vtkFormat>
Called whenever a new time step must be written. Implements Opm::BaseOutputWriter. References Opm::TaskletRunner::barrier(). Referenced by Opm::FvBaseNewtonConvergenceWriter< TypeTag >::beginIteration(), and Opm::FvBaseProblem< TypeTag >::writeOutput(). ◆ curWriterNum()
template<class GridView , int vtkFormat>
Returns the number of the current VTK file. ◆ deserialize()
template<class GridView , int vtkFormat>
template<class Restarter >
Read the multi-writer's state from a restart file. Referenced by Opm::FvBaseProblem< TypeTag >::deserialize(). ◆ endWrite()
template<class GridView , int vtkFormat>
Finalizes the current writer. This means that everything will be written to disk, except if the onlyDiscard argument is true. In this case only all managed buffers are deleted, but no output is written. Implements Opm::BaseOutputWriter. References Opm::TaskletRunner::dispatch(). Referenced by Opm::FvBaseNewtonConvergenceWriter< TypeTag >::endIteration(), and Opm::FvBaseProblem< TypeTag >::writeOutput(). ◆ gridChanged()
template<class GridView , int vtkFormat>
Updates the internal data structures after mesh refinement. If the grid changes between two calls of beginWrite(), this method must be called before the second beginWrite()! Referenced by Opm::FvBaseProblem< TypeTag >::gridChanged(). ◆ serialize()
template<class GridView , int vtkFormat>
template<class Restarter >
Write the multi-writer's state to a restart file. Referenced by Opm::FvBaseProblem< TypeTag >::serialize(). The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||