27#ifndef OPM_VTK_BLACK_OIL_POLYMER_MODULE_HPP
28#define OPM_VTK_BLACK_OIL_POLYMER_MODULE_HPP
30#include <dune/common/fvector.hh>
32#include <opm/material/densead/Math.hpp>
59template <
class TypeTag>
75 using ScalarBuffer =
typename ParentType::ScalarBuffer;
81 if constexpr (enablePolymer) {
92 if constexpr (enablePolymer) {
103 if constexpr (enablePolymer) {
104 if (!Parameters::Get<Parameters::EnableVtkOutput>()) {
108 if (params_.polymerConcentrationOutput_) {
111 if (params_.polymerDeadPoreVolumeOutput_) {
114 if (params_.polymerRockDensityOutput_) {
117 if (params_.polymerAdsorptionOutput_) {
120 if (params_.polymerViscosityCorrectionOutput_) {
123 if (params_.waterViscosityCorrectionOutput_) {
135 if constexpr (enablePolymer) {
136 if (!Parameters::Get<Parameters::EnableVtkOutput>()) {
144 if (params_.polymerConcentrationOutput_) {
149 if (params_.polymerDeadPoreVolumeOutput_) {
154 if (params_.polymerRockDensityOutput_) {
159 if (params_.polymerAdsorptionOutput_) {
164 if (params_.polymerViscosityCorrectionOutput_) {
169 if (params_.waterViscosityCorrectionOutput_) {
182 if constexpr (enablePolymer) {
188 if (params_.polymerConcentrationOutput_) {
192 if (params_.polymerDeadPoreVolumeOutput_) {
193 this->
commitScalarBuffer_(baseWriter,
"dead pore volume fraction", polymerDeadPoreVolume_);
196 if (params_.polymerRockDensityOutput_) {
200 if (params_.polymerAdsorptionOutput_) {
204 if (params_.polymerViscosityCorrectionOutput_) {
205 this->
commitScalarBuffer_(baseWriter,
"polymer viscosity correction", polymerViscosityCorrection_);
208 if (params_.waterViscosityCorrectionOutput_) {
209 this->
commitScalarBuffer_(baseWriter,
"water viscosity correction", waterViscosityCorrection_);
216 ScalarBuffer polymerConcentration_{};
217 ScalarBuffer polymerDeadPoreVolume_{};
218 ScalarBuffer polymerRockDensity_{};
219 ScalarBuffer polymerAdsorption_{};
220 ScalarBuffer polymerViscosityCorrection_{};
221 ScalarBuffer waterViscosityCorrection_{};
The base class for writer modules.
Declares the properties required by the black oil model.
The base class for writer modules.
Definition baseoutputmodule.hh:67
void commitScalarBuffer_(BaseOutputWriter &baseWriter, const char *name, ScalarBuffer &buffer, BufferType bufferType=DofBuffer)
Add a buffer containing scalar quantities to the result file.
Definition baseoutputmodule.hh:244
void resizeScalarBuffer_(ScalarBuffer &buffer, BufferType bufferType=DofBuffer)
Allocate the space for a buffer storing a scalar quantity.
Definition baseoutputmodule.hh:156
The base class for all output writers.
Definition baseoutputwriter.hh:44
VTK output module for the black oil model's polymer related quantities.
Definition vtkblackoilpolymermodule.hpp:61
void allocBuffers()
Allocate memory for the scalar fields we would like to write to the VTK file.
Definition vtkblackoilpolymermodule.hpp:101
static void registerParameters()
Register all run-time parameters for the multi-phase VTK output module.
Definition vtkblackoilpolymermodule.hpp:90
void processElement(const ElementContext &elemCtx)
Modify the internal buffers according to the intensive quantities relevant for an element.
Definition vtkblackoilpolymermodule.hpp:133
void commitBuffers(BaseOutputWriter &baseWriter)
Add all buffers to the VTK output writer.
Definition vtkblackoilpolymermodule.hpp:180
Simplifies writing multi-file VTK datasets.
Definition vtkmultiwriter.hh:66
Declare the properties used by the infrastructure code of the finite volume discretizations.
The generic type tag for problems using the immiscible multi-phase model.
Definition blackoilmodel.hh:74
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.
Definition vtkblackoilpolymermodule.hpp:48
Struct holding the parameters for VtkBlackoilPolymerModule.
Definition vtkblackoilpolymerparams.hpp:48
static void registerParameters()
Registers the parameters in parameter system.
Definition vtkblackoilpolymerparams.cpp:31
void read()
Reads the parameter values from the parameter system.
Definition vtkblackoilpolymerparams.cpp:53
VTK output module for the black oil model's polymer related quantities.
Simplifies writing multi-file VTK datasets.