28#ifndef OPM_VTK_DIFFUSION_MODULE_HPP
29#define OPM_VTK_DIFFUSION_MODULE_HPP
31#include <opm/material/densead/Evaluation.hpp>
32#include <opm/material/densead/Math.hpp>
56template <
class TypeTag>
68 using PhaseComponentBuffer =
typename ParentType::PhaseComponentBuffer;
69 using PhaseBuffer =
typename ParentType::PhaseBuffer;
98 if (params_.tortuosityOutput_) {
101 if (params_.diffusionCoefficientOutput_) {
104 if (params_.effectiveDiffusionCoefficientOutput_) {
115 if (!Parameters::Get<Parameters::EnableVtkOutput>()) {
119 for (
unsigned i = 0; i <
elemCtx.numPrimaryDof(0); ++i) {
120 unsigned I =
elemCtx.globalSpaceIndex(i, 0);
124 if (params_.tortuosityOutput_) {
128 if (params_.diffusionCoefficientOutput_) {
132 if (params_.effectiveDiffusionCoefficientOutput_) {
151 if (params_.tortuosityOutput_) {
154 if (params_.diffusionCoefficientOutput_) {
156 diffusionCoefficient_);
158 if (params_.effectiveDiffusionCoefficientOutput_) {
160 "effectiveDiffusionCoefficient",
161 effectiveDiffusionCoefficient_);
167 PhaseBuffer tortuosity_{};
168 PhaseComponentBuffer diffusionCoefficient_{};
169 PhaseComponentBuffer effectiveDiffusionCoefficient_{};
The base class for writer modules.
The base class for writer modules.
Definition baseoutputmodule.hh:67
void commitPhaseBuffer_(BaseOutputWriter &baseWriter, const char *pattern, PhaseBuffer &buffer, BufferType bufferType=DofBuffer)
Add a phase-specific buffer to the result file.
Definition baseoutputmodule.hh:345
void resizePhaseBuffer_(PhaseBuffer &buffer, BufferType bufferType=DofBuffer)
Allocate the space for a buffer storing a phase-specific quantity.
Definition baseoutputmodule.hh:201
void resizePhaseComponentBuffer_(PhaseComponentBuffer &buffer, BufferType bufferType=DofBuffer)
Allocate the space for a buffer storing a phase and component specific buffer.
Definition baseoutputmodule.hh:229
void commitPhaseComponentBuffer_(BaseOutputWriter &baseWriter, const char *pattern, PhaseComponentBuffer &buffer, BufferType bufferType=DofBuffer)
Add a phase and component specific quantities to the output.
Definition baseoutputmodule.hh:377
The base class for all output writers.
Definition baseoutputwriter.hh:44
VTK output module for quantities which make sense for models which incorperate molecular diffusion.
Definition vtkdiffusionmodule.hpp:58
void allocBuffers()
Allocate memory for the scalar fields we would like to write to the VTK file.
Definition vtkdiffusionmodule.hpp:96
void processElement(const ElementContext &elemCtx)
Modify the internal buffers according to the intensive quanties relevant for an element.
Definition vtkdiffusionmodule.hpp:113
void commitBuffers(BaseOutputWriter &baseWriter)
Add all buffers to the VTK output writer.
Definition vtkdiffusionmodule.hpp:144
static void registerParameters()
Register all run-time parameters for the Vtk output module.
Definition vtkdiffusionmodule.hpp:87
Simplifies writing multi-file VTK datasets.
Definition vtkmultiwriter.hh:66
Declare the properties used by the infrastructure code of the finite volume discretizations.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
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:235
This file provides the infrastructure to retrieve run-time parameters.
The Opm property system, traits with inheritance.
Struct holding the parameters for VtkDiffusionModule.
Definition vtkdiffusionparams.hpp:46
static void registerParameters()
Registers the parameters in parameter system.
Definition vtkdiffusionparams.cpp:31
void read()
Reads the parameter values from the parameter system.
Definition vtkdiffusionparams.cpp:43
VTK output module for quantities which make sense for models which incorperate molecular diffusion.
Simplifies writing multi-file VTK datasets.