13#ifndef DUMUX_TWOPVE_FINE_LEVEL_FIELDSTORAGE_HH
14#define DUMUX_TWOPVE_FINE_LEVEL_FIELDSTORAGE_HH
19#include <dune/grid/io/file/vtk/vtksequencewriter.hh>
33template<
class Gr
idGeometry,
class Scalar,
class Flu
idSystem>
38 static constexpr int wettingPhaseIdx = FluidSystem::phase0Idx;
39 static constexpr int nonwettingPhaseIdx = FluidSystem::phase1Idx;
40 using GridView =
typename GridGeometry::GridView;
41 using VTKSeqWriter =
typename Dune::VTKSequenceWriter<GridView>;
78 void set(std::size_t fineIdx,
79 const FineLevelElementState& fineElementState)
102 vtkSequenceWriter.addCellData(
saturationW,
"S_liq");
104 vtkSequenceWriter.addCellData(
mobilityW,
"mob_liq");
105 vtkSequenceWriter.addCellData(
mobilityNw,
"mob_gas");
106 vtkSequenceWriter.addCellData(
pressureW,
"p_liq");
107 vtkSequenceWriter.addCellData(
pressureNw,
"p_gas");
109 vtkSequenceWriter.addCellData(
permeability,
"permeability");
110 vtkSequenceWriter.addCellData(
porosity,
"porosity");
111 vtkSequenceWriter.addCellData(
densityW,
"rho_liq");
112 vtkSequenceWriter.addCellData(
densityNw,
"rho_gas");
The quantities of a fine-level element reconstructed from the state of its coarse-level column.
Definition elementstatefine.hh:61
Scalar gasPlumeDist() const
Returns the gas plume distance within a coarse-level element.
Definition elementstatefine.hh:229
Scalar density(int phaseIdx) const
Returns the mass density of a given phase within the control volume in .
Definition elementstatefine.hh:191
Scalar permeability() const
Returns the permeability within the control volume in .
Definition elementstatefine.hh:206
Scalar capillaryPressure() const
Returns the capillary pressure within the control volume in .
Definition elementstatefine.hh:173
Scalar pressure(int phaseIdx) const
Returns the effective pressure of a given phase within the control volume in .
Definition elementstatefine.hh:157
Scalar saturation(int phaseIdx) const
Returns the saturation of a given phase within the control volume in .
Definition elementstatefine.hh:166
Scalar porosity() const
Returns the average porosity within the control volume in .
Definition elementstatefine.hh:212
Scalar mobility(int phaseIdx) const
Returns the effective mobility of a given phase within the control volume in .
Definition elementstatefine.hh:182
Mimics the volume variables structure of DuMux applied to the fine level of the VE scheme.
std::vector< Scalar > saturationW
Definition fieldstoragefine.hh:44
std::vector< Scalar > pressureW
Definition fieldstoragefine.hh:48
void set(std::size_t fineIdx, const FineLevelElementState &fineElementState)
Sets the fine-level fields to the provided fine-level element state.
Definition fieldstoragefine.hh:78
std::vector< Scalar > densityNw
Definition fieldstoragefine.hh:54
std::vector< Scalar > capillaryPressure
Definition fieldstoragefine.hh:50
std::vector< Scalar > mobilityNw
Definition fieldstoragefine.hh:47
std::vector< Scalar > mobilityW
Definition fieldstoragefine.hh:46
std::vector< Scalar > gasPlumeDistance
Definition fieldstoragefine.hh:55
std::vector< Scalar > porosity
Definition fieldstoragefine.hh:52
std::vector< Scalar > densityW
Definition fieldstoragefine.hh:53
TwoPVEFineLevelFieldStorage(std::size_t size)
Definition fieldstoragefine.hh:57
std::vector< Scalar > pressureNw
Definition fieldstoragefine.hh:49
std::vector< Scalar > saturationNw
Definition fieldstoragefine.hh:45
std::vector< Scalar > permeability
Definition fieldstoragefine.hh:51
void registerFields(VTKSeqWriter &vtkSequenceWriter) const
Registers fine-level fields to vtk writer, should be called when initializing the vtk writer.
Definition fieldstoragefine.hh:100