27#ifndef OPM_VTK_BLACK_OIL_SOLVENT_MODULE_HPP
28#define OPM_VTK_BLACK_OIL_SOLVENT_MODULE_HPP
30#include <dune/common/fvector.hh>
32#include <opm/material/densead/Math.hpp>
52template <
class TypeTag>
68 using ScalarBuffer =
typename ParentType::ScalarBuffer;
74 if constexpr (enableSolvent) {
85 if constexpr (enableSolvent) {
96 if constexpr (enableSolvent) {
97 if (!Parameters::Get<Parameters::EnableVtkOutput>()) {
101 if (params_.solventSaturationOutput_) {
104 if (params_.solventRswOutput_) {
107 if (params_.solventDensityOutput_) {
110 if (params_.solventViscosityOutput_) {
113 if (params_.solventMobilityOutput_) {
125 if constexpr (enableSolvent) {
126 if (!Parameters::Get<Parameters::EnableVtkOutput>()) {
131 for (
unsigned dofIdx = 0; dofIdx < elemCtx.numPrimaryDof(0); ++dofIdx) {
132 const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, 0);
133 unsigned globalDofIdx = elemCtx.globalSpaceIndex(dofIdx, 0);
135 if (params_.solventSaturationOutput_) {
136 solventSaturation_[globalDofIdx] =
137 Toolbox::scalarValue(intQuants.solventSaturation());
140 if (params_.solventRswOutput_) {
141 solventRsw_[globalDofIdx] =
142 Toolbox::scalarValue(intQuants.rsSolw());
145 if (params_.solventDensityOutput_) {
146 solventDensity_[globalDofIdx] =
147 Toolbox::scalarValue(intQuants.solventDensity());
150 if (params_.solventViscosityOutput_) {
151 solventViscosity_[globalDofIdx] =
152 Toolbox::scalarValue(intQuants.solventViscosity());
155 if (params_.solventMobilityOutput_) {
156 solventMobility_[globalDofIdx] =
157 Toolbox::scalarValue(intQuants.solventMobility());
168 if constexpr (enableSolvent) {
174 if (params_.solventSaturationOutput_) {
178 if (params_.solventRswOutput_) {
182 if (params_.solventDensityOutput_) {
186 if (params_.solventViscosityOutput_) {
190 if (params_.solventMobilityOutput_) {
198 ScalarBuffer solventSaturation_{};
199 ScalarBuffer solventRsw_{};
200 ScalarBuffer solventDensity_{};
201 ScalarBuffer solventViscosity_{};
202 ScalarBuffer solventMobility_{};
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 solvent related quantities.
Definition vtkblackoilsolventmodule.hpp:54
void processElement(const ElementContext &elemCtx) override
Modify the internal buffers according to the intensive quantities relevant for an element.
Definition vtkblackoilsolventmodule.hpp:123
void allocBuffers() override
Allocate memory for the scalar fields we would like to write to the VTK file.
Definition vtkblackoilsolventmodule.hpp:94
static void registerParameters()
Register all run-time parameters for the multi-phase VTK output module.
Definition vtkblackoilsolventmodule.hpp:83
void commitBuffers(BaseOutputWriter &baseWriter) override
Add all buffers to the VTK output writer.
Definition vtkblackoilsolventmodule.hpp:166
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 VtkBlackoilPolymerModule.
Definition vtkblackoilsolventparams.hpp:47
void read()
Reads the parameter values from the parameter system.
Definition vtkblackoilsolventparams.cpp:50
static void registerParameters()
Registers the parameters in parameter system.
Definition vtkblackoilsolventparams.cpp:31
VTK output module for the black oil model's solvent related quantities.
Simplifies writing multi-file VTK datasets.