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>()) {
135 if (params_.solventSaturationOutput_) {
137 Toolbox::scalarValue(
intQuants.solventSaturation());
140 if (params_.solventRswOutput_) {
142 Toolbox::scalarValue(
intQuants.rsSolw());
145 if (params_.solventDensityOutput_) {
147 Toolbox::scalarValue(
intQuants.solventDensity());
150 if (params_.solventViscosityOutput_) {
152 Toolbox::scalarValue(
intQuants.solventViscosity());
155 if (params_.solventMobilityOutput_) {
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 commitBuffers(BaseOutputWriter &baseWriter)
Add all buffers to the VTK output writer.
Definition vtkblackoilsolventmodule.hpp:166
static void registerParameters()
Register all run-time parameters for the multi-phase VTK output module.
Definition vtkblackoilsolventmodule.hpp:83
void processElement(const ElementContext &elemCtx)
Modify the internal buffers according to the intensive quantities relevant for an element.
Definition vtkblackoilsolventmodule.hpp:123
void allocBuffers()
Allocate memory for the scalar fields we would like to write to the VTK file.
Definition vtkblackoilsolventmodule.hpp:94
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.