24#ifndef DUMUX_FREEFLOW_SHALLOW_WATER_IO_FIELDS_HH
25#define DUMUX_FREEFLOW_SHALLOW_WATER_IO_FIELDS_HH
39 template <
class OutputModule>
42 using VolumeVariables =
typename OutputModule::VolumeVariables;
44 out.addVolumeVariable([](
const VolumeVariables& v){
return v.waterDepth(); },
"waterDepth");
45 out.addVolumeVariable([](
const VolumeVariables& v){
return v.velocity(0); },
"velocityX");
46 out.addVolumeVariable([](
const VolumeVariables& v){
return v.velocity(1); },
"velocityY");
47 out.addVolumeVariable([](
const VolumeVariables& v){
return v.bedSurface(); },
"bedSurface");
48 out.addVolumeVariable([](
const VolumeVariables& v){
return v.bedSurface() + v.waterDepth(); },
"freeSurface");
55 template <
class ModelTraits>
61 case 0 : name =
"waterDepth";
62 case 1 : name =
"velocityX";
63 case 2 : name =
"velocityY";
A collection of input/output field names for common physical quantities.
Adds vtk output fields for the shallow water model.
Definition: freeflow/shallowwater/iofields.hh:37
static std::string primaryVariableName(int pvIdx)
Definition: freeflow/shallowwater/iofields.hh:56
static void initOutputModule(OutputModule &out)
Definition: freeflow/shallowwater/iofields.hh:40