The base class for writer modules.
More...
#include <baseoutputmodule.hh>
|
void | resizeScalarBuffer_ (ScalarBuffer &buffer, BufferType bufferType=DofBuffer) |
| Allocate the space for a buffer storing a scalar quantity. More...
|
|
void | resizeTensorBuffer_ (TensorBuffer &buffer, BufferType bufferType=DofBuffer) |
| Allocate the space for a buffer storing a tensorial quantity. More...
|
|
void | resizeVectorBuffer_ (VectorBuffer &buffer, BufferType bufferType=DofBuffer) |
|
void | resizeEqBuffer_ (EqBuffer &buffer, BufferType bufferType=DofBuffer) |
| Allocate the space for a buffer storing a equation specific quantity. More...
|
|
void | resizePhaseBuffer_ (PhaseBuffer &buffer, BufferType bufferType=DofBuffer) |
| Allocate the space for a buffer storing a phase-specific quantity. More...
|
|
void | resizeComponentBuffer_ (ComponentBuffer &buffer, BufferType bufferType=DofBuffer) |
| Allocate the space for a buffer storing a component specific quantity. More...
|
|
void | resizePhaseComponentBuffer_ (PhaseComponentBuffer &buffer, BufferType bufferType=DofBuffer) |
| Allocate the space for a buffer storing a phase and component specific buffer. More...
|
|
void | commitScalarBuffer_ (BaseOutputWriter &baseWriter, const char *name, ScalarBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a buffer containing scalar quantities to the result file. More...
|
|
void | commitVectorBuffer_ (BaseOutputWriter &baseWriter, const char *name, VectorBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a buffer containing vectorial quantities to the result file. More...
|
|
void | commitTensorBuffer_ (BaseOutputWriter &baseWriter, const char *name, TensorBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a buffer containing tensorial quantities to the result file. More...
|
|
void | commitPriVarsBuffer_ (BaseOutputWriter &baseWriter, const char *pattern, EqBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a buffer with as many variables as PDEs to the result file. More...
|
|
void | commitEqBuffer_ (BaseOutputWriter &baseWriter, const char *pattern, EqBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a buffer with as many variables as PDEs to the result file. More...
|
|
void | commitPhaseBuffer_ (BaseOutputWriter &baseWriter, const char *pattern, PhaseBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a phase-specific buffer to the result file. More...
|
|
void | commitComponentBuffer_ (BaseOutputWriter &baseWriter, const char *pattern, ComponentBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a component-specific buffer to the result file. More...
|
|
void | commitPhaseComponentBuffer_ (BaseOutputWriter &baseWriter, const char *pattern, PhaseComponentBuffer &buffer, BufferType bufferType=DofBuffer) |
| Add a phase and component specific quantities to the output. More...
|
|
void | attachScalarElementData_ (BaseOutputWriter &baseWriter, ScalarBuffer &buffer, const char *name) |
|
void | attachScalarVertexData_ (BaseOutputWriter &baseWriter, ScalarBuffer &buffer, const char *name) |
|
void | attachVectorElementData_ (BaseOutputWriter &baseWriter, VectorBuffer &buffer, const char *name) |
|
void | attachVectorVertexData_ (BaseOutputWriter &baseWriter, VectorBuffer &buffer, const char *name) |
|
void | attachTensorElementData_ (BaseOutputWriter &baseWriter, TensorBuffer &buffer, const char *name) |
|
void | attachTensorVertexData_ (BaseOutputWriter &baseWriter, TensorBuffer &buffer, const char *name) |
|
template<class TypeTag>
class Opm::BaseOutputModule< TypeTag > The base class for writer modules.
This class also provides some convenience methods for buffer management and is the base class for all other output writer modules.
◆ ComponentBuffer
◆ EqBuffer
◆ PhaseBuffer
◆ PhaseComponentBuffer
◆ PhaseVectorBuffer
◆ ScalarBuffer
◆ TensorBuffer
◆ VectorBuffer
◆ BufferType
Enumerator |
---|
DofBuffer | Buffer contains data associated with the degrees of freedom.
|
VertexBuffer | Buffer contains data associated with the grid's vertices.
|
ElementBuffer | Buffer contains data associated with the grid's elements.
|
◆ BaseOutputModule()
◆ ~BaseOutputModule()
◆ allocBuffers()
Allocate memory for the scalar fields we would like to write to disk.
The module can dynamically cast the writer to the desired concrete class. If the writer is incompatible with the module, this method should become a no-op.
Implemented in Opm::VtkBlackOilEnergyModule< TypeTag >, Opm::VtkBlackOilMICPModule< TypeTag >, Opm::VtkBlackOilModule< TypeTag >, Opm::VtkBlackOilPolymerModule< TypeTag >, Opm::VtkBlackOilSolventModule< TypeTag >, Opm::VtkCompositionModule< TypeTag >, Opm::VtkDiffusionModule< TypeTag >, Opm::VtkDiscreteFractureModule< TypeTag >, Opm::VtkEnergyModule< TypeTag >, Opm::VtkMultiPhaseModule< TypeTag >, Opm::VtkPhasePresenceModule< TypeTag >, Opm::VtkPrimaryVarsModule< TypeTag >, Opm::VtkPTFlashModule< TypeTag >, and Opm::VtkTemperatureModule< TypeTag >.
◆ attachScalarElementData_()
◆ attachScalarVertexData_()
◆ attachTensorElementData_()
◆ attachTensorVertexData_()
◆ attachVectorElementData_()
◆ attachVectorVertexData_()
◆ commitBuffers()
Add all buffers to the VTK output writer.
Implemented in Opm::VtkBlackOilEnergyModule< TypeTag >, Opm::VtkBlackOilMICPModule< TypeTag >, Opm::VtkBlackOilModule< TypeTag >, Opm::VtkBlackOilPolymerModule< TypeTag >, Opm::VtkBlackOilSolventModule< TypeTag >, Opm::VtkCompositionModule< TypeTag >, Opm::VtkDiffusionModule< TypeTag >, Opm::VtkDiscreteFractureModule< TypeTag >, Opm::VtkEnergyModule< TypeTag >, Opm::VtkMultiPhaseModule< TypeTag >, Opm::VtkPhasePresenceModule< TypeTag >, Opm::VtkPrimaryVarsModule< TypeTag >, Opm::VtkPTFlashModule< TypeTag >, and Opm::VtkTemperatureModule< TypeTag >.
◆ commitComponentBuffer_()
◆ commitEqBuffer_()
◆ commitPhaseBuffer_()
◆ commitPhaseComponentBuffer_()
◆ commitPriVarsBuffer_()
◆ commitScalarBuffer_()
Add a buffer containing scalar quantities to the result file.
References Opm::BaseOutputModule< TypeTag >::attachScalarElementData_(), Opm::BaseOutputModule< TypeTag >::attachScalarVertexData_(), Opm::BaseOutputModule< TypeTag >::DofBuffer, Opm::BaseOutputModule< TypeTag >::ElementBuffer, and Opm::BaseOutputModule< TypeTag >::VertexBuffer.
Referenced by Opm::VtkBlackOilEnergyModule< TypeTag >::commitBuffers(), Opm::VtkBlackOilMICPModule< TypeTag >::commitBuffers(), Opm::VtkBlackOilModule< TypeTag >::commitBuffers(), Opm::VtkBlackOilPolymerModule< TypeTag >::commitBuffers(), Opm::VtkBlackOilSolventModule< TypeTag >::commitBuffers(), Opm::VtkDiscreteFractureModule< TypeTag >::commitBuffers(), Opm::VtkEnergyModule< TypeTag >::commitBuffers(), Opm::VtkMultiPhaseModule< TypeTag >::commitBuffers(), Opm::VtkPhasePresenceModule< TypeTag >::commitBuffers(), Opm::VtkPrimaryVarsModule< TypeTag >::commitBuffers(), Opm::VtkPTFlashModule< TypeTag >::commitBuffers(), and Opm::VtkTemperatureModule< TypeTag >::commitBuffers().
◆ commitTensorBuffer_()
◆ commitVectorBuffer_()
◆ needExtensiveQuantities()
Returns true iff the module needs to access the extensive quantities of a context to do its job.
For example, this happens if velocities or gradients should be written.
Always returning true here does not do any harm from the correctness perspective, but it slows down writing the output fields. Since most output modules only write intensive quantities, this method returns 'false' by default.
Reimplemented in Opm::VtkMultiPhaseModule< TypeTag >.
◆ processElement()
Modify the internal buffers according to the intensive quanties relevant for an element.
The module can dynamically cast the writer to the desired concrete class. If the writer is incompatible with the module, this method should become a no-op.
Implemented in Opm::VtkBlackOilEnergyModule< TypeTag >, Opm::VtkBlackOilMICPModule< TypeTag >, Opm::VtkBlackOilModule< TypeTag >, Opm::VtkBlackOilPolymerModule< TypeTag >, Opm::VtkBlackOilSolventModule< TypeTag >, Opm::VtkCompositionModule< TypeTag >, Opm::VtkDiffusionModule< TypeTag >, Opm::VtkDiscreteFractureModule< TypeTag >, Opm::VtkEnergyModule< TypeTag >, Opm::VtkMultiPhaseModule< TypeTag >, Opm::VtkPhasePresenceModule< TypeTag >, Opm::VtkPrimaryVarsModule< TypeTag >, Opm::VtkPTFlashModule< TypeTag >, and Opm::VtkTemperatureModule< TypeTag >.
◆ resizeComponentBuffer_()
◆ resizeEqBuffer_()
◆ resizePhaseBuffer_()
◆ resizePhaseComponentBuffer_()
◆ resizeScalarBuffer_()
Allocate the space for a buffer storing a scalar quantity.
References Opm::BaseOutputModule< TypeTag >::DofBuffer, Opm::BaseOutputModule< TypeTag >::ElementBuffer, Opm::BaseOutputModule< TypeTag >::simulator_, and Opm::BaseOutputModule< TypeTag >::VertexBuffer.
Referenced by Opm::VtkBlackOilEnergyModule< TypeTag >::allocBuffers(), Opm::VtkBlackOilMICPModule< TypeTag >::allocBuffers(), Opm::VtkBlackOilModule< TypeTag >::allocBuffers(), Opm::VtkBlackOilPolymerModule< TypeTag >::allocBuffers(), Opm::VtkBlackOilSolventModule< TypeTag >::allocBuffers(), Opm::VtkDiscreteFractureModule< TypeTag >::allocBuffers(), Opm::VtkEnergyModule< TypeTag >::allocBuffers(), Opm::VtkMultiPhaseModule< TypeTag >::allocBuffers(), Opm::VtkPhasePresenceModule< TypeTag >::allocBuffers(), Opm::VtkPrimaryVarsModule< TypeTag >::allocBuffers(), Opm::VtkPTFlashModule< TypeTag >::allocBuffers(), and Opm::VtkTemperatureModule< TypeTag >::allocBuffers().
◆ resizeTensorBuffer_()
◆ resizeVectorBuffer_()
◆ simulator_
Referenced by Opm::VtkDiscreteFractureModule< TypeTag >::allocBuffers(), Opm::VtkMultiPhaseModule< TypeTag >::allocBuffers(), Opm::VtkDiscreteFractureModule< TypeTag >::commitBuffers(), Opm::VtkMultiPhaseModule< TypeTag >::commitBuffers(), Opm::BaseOutputModule< TypeTag >::commitPriVarsBuffer_(), Opm::VtkPrimaryVarsModule< TypeTag >::processElement(), Opm::BaseOutputModule< TypeTag >::resizeComponentBuffer_(), Opm::BaseOutputModule< TypeTag >::resizeEqBuffer_(), Opm::BaseOutputModule< TypeTag >::resizePhaseBuffer_(), Opm::BaseOutputModule< TypeTag >::resizePhaseComponentBuffer_(), Opm::BaseOutputModule< TypeTag >::resizeScalarBuffer_(), Opm::BaseOutputModule< TypeTag >::resizeTensorBuffer_(), and Opm::BaseOutputModule< TypeTag >::resizeVectorBuffer_().
The documentation for this class was generated from the following file:
|