12#ifndef DUMUX_FREEFLOW_SHALLOW_WATER_IO_FIELDS_HH
13#define DUMUX_FREEFLOW_SHALLOW_WATER_IO_FIELDS_HH
27 template <
class OutputModule>
30 using VolumeVariables =
typename OutputModule::VolumeVariables;
32 out.addVolumeVariable([](
const VolumeVariables& v){
return v.waterDepth(); },
"waterDepth");
33 out.addVolumeVariable([](
const VolumeVariables& v){
return v.velocity(0); },
"velocityX");
34 out.addVolumeVariable([](
const VolumeVariables& v){
return v.velocity(1); },
"velocityY");
35 out.addVolumeVariable([](
const VolumeVariables& v){
return v.bedSurface(); },
"bedSurface");
36 out.addVolumeVariable([](
const VolumeVariables& v){
return v.bedSurface() + v.waterDepth(); },
"freeSurface");
43 template <
class ModelTraits>
49 case 0 : name =
"waterDepth";
50 case 1 : name =
"velocityX";
51 case 2 : name =
"velocityY";
Adds vtk output fields for the shallow water model.
Definition: freeflow/shallowwater/iofields.hh:25
static std::string primaryVariableName(int pvIdx)
Definition: freeflow/shallowwater/iofields.hh:44
static void initOutputModule(OutputModule &out)
Definition: freeflow/shallowwater/iofields.hh:28
A collection of input/output field names for common physical quantities.