24#ifndef DUMUX_RANS_IO_FIELDS_HH
25#define DUMUX_RANS_IO_FIELDS_HH
38 template <
class OutputModule>
43 static constexpr auto dim =
decltype(std::declval<typename OutputModule::VolumeVariables>().velocity())::dimension;
45 out.addVolumeVariable([](
const auto& v){
return v.velocity()[0] / v.velocityMaximum()[0]; },
"v_x/v_x,max");
46 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[0]; },
"dv_x/dx_");
48 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[1]; },
"dv_y/dx_");
50 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[2]; },
"dv_z/dx_");
51 out.addVolumeVariable([](
const auto& v){
return v.pressure() - 1e5; },
"p_rel");
52 out.addVolumeVariable([](
const auto& v){
return v.viscosity() / v.density(); },
"nu");
53 out.addVolumeVariable([](
const auto& v){
return v.kinematicEddyViscosity(); },
"nu_t");
54 out.addVolumeVariable([](
const auto& v){
return v.wallDistance(); },
"l_w");
55 out.addVolumeVariable([](
const auto& v){
return v.yPlus(); },
"y^+");
56 out.addVolumeVariable([](
const auto& v){
return v.uPlus(); },
"u^+");
60 template <
class ModelTraits,
class Flu
idSystem>
63 return NavierStokesIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
static void initOutputModule(OutputModule &out)
Initialize the Navier-Stokes specific output fields.
Definition: dumux/freeflow/navierstokes/iofields.hh:91
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
Definition: dumux/freeflow/rans/iofields.hh:36
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition: dumux/freeflow/rans/iofields.hh:61
static void initOutputModule(OutputModule &out)
Initialize the RANS specific output fields.
Definition: dumux/freeflow/rans/iofields.hh:39