27 #ifndef EWOMS_VTK_TEMPERATURE_MODULE_HH
28 #define EWOMS_VTK_TEMPERATURE_MODULE_HH
36 #include <opm/material/common/MathToolbox.hpp>
39 namespace Properties {
58 template<
class TypeTag>
64 typedef typename GET_PROP_TYPE(TypeTag, ElementContext) ElementContext;
66 typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;
67 typedef typename GET_PROP_TYPE(TypeTag, Evaluation) Evaluation;
69 typedef typename ParentType::ScalarBuffer ScalarBuffer;
71 static const int vtkFormat =
GET_PROP_VALUE(TypeTag, VtkOutputFormat);
85 "Include the temperature in the VTK output files");
103 typedef Opm::MathToolbox<Evaluation> Toolbox;
108 for (
unsigned i = 0; i < elemCtx.numPrimaryDof(0); ++i) {
109 unsigned I = elemCtx.globalSpaceIndex(i, 0);
110 const auto& intQuants = elemCtx.intensiveQuantities(i, 0);
111 const auto& fs = intQuants.fluidState();
113 if (temperatureOutput_())
114 temperature_[I] = Toolbox::value(fs.temperature(0));
128 if (temperatureOutput_())
133 static bool temperatureOutput_()
136 ScalarBuffer temperature_;
void allocBuffers()
Allocate memory for the scalar fields we would like to write to the VTK file.
Definition: vtktemperaturemodule.hh:92
The base class for all output writers.
Definition: baseoutputwriter.hh:43
#define SET_BOOL_PROP(EffTypeTagName, PropTagName,...)
Set a property to a simple constant boolean value.
Definition: propertysystem.hh:361
Simplifies writing multi-file VTK datasets.
Definition: vtkmultiwriter.hh:63
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:305
#define GET_PROP_VALUE(TypeTag, PropTagName)
Access the value attribute of a property for a type tag.
Definition: propertysystem.hh:469
The base class for writer modules.
#define NEW_TYPE_TAG(...)
Define a new type tag.
Definition: propertysystem.hh:169
#define EWOMS_REGISTER_PARAM(TypeTag, ParamType, ParamName, Description)
Register a run-time parameter.
Definition: parametersystem.hh:68
This file provides the infrastructure to retrieve run-time parameters.
The base class for writer modules.
Definition: baseoutputmodule.hh:80
VTK output module for the temperature in which assume thermal equilibrium.
Definition: vtktemperaturemodule.hh:59
static void registerParameters()
Register all run-time parameters for the Vtk output module.
Definition: vtktemperaturemodule.hh:82
#define EWOMS_GET_PARAM(TypeTag, ParamType, ParamName)
Retrieve a runtime parameter.
Definition: parametersystem.hh:99
void processElement(const ElementContext &elemCtx)
Modify the internal buffers according to the intensive quantities relevant for an element...
Definition: vtktemperaturemodule.hh:101
Provides the magic behind the eWoms property system.
void resizeScalarBuffer_(ScalarBuffer &buffer, BufferType bufferType=DofBuffer)
Allocate the space for a buffer storing a scalar quantity.
Definition: baseoutputmodule.hh:170
Simplifies writing multi-file VTK datasets.
Manages the initializing and running of time dependent problems.
Definition: simulator.hh:75
#define NEW_PROP_TAG(PTagName)
Define a property tag.
Definition: propertysystem.hh:247
void commitBuffers(BaseOutputWriter &baseWriter)
Add all buffers to the VTK output writer.
Definition: vtktemperaturemodule.hh:121