24#ifndef DUMUX_RANS_IO_FIELDS_HH
25#define DUMUX_RANS_IO_FIELDS_HH
38 template <
class OutputModule>
43 static const bool isFlatWallBounded = getParamFromGroup<bool>(out.paramGroup(),
"RANS.IsFlatWallBounded",
false);
44 static const bool writeFlatWallBoundedFields = getParamFromGroup<bool>(out.paramGroup(),
"RANS.WriteFlatWallBoundedFields", isFlatWallBounded);
46 static constexpr auto dim =
decltype(std::declval<typename OutputModule::VolumeVariables>().ccVelocityVector())::dimension;
48 out.addVolumeVariable([](
const auto& v){
return v.ccVelocityVector()[0] / v.velocityMaximum()[0]; },
"v_x/v_x,max");
49 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[0]; },
"dv_x/dx_");
51 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[1]; },
"dv_y/dx_");
53 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[2]; },
"dv_z/dx_");
54 out.addVolumeVariable([](
const auto& v){
return v.pressure() - 1e5; },
"p_rel");
55 out.addVolumeVariable([](
const auto& v){
return v.viscosity() / v.density(); },
"nu");
56 out.addVolumeVariable([](
const auto& v){
return v.kinematicEddyViscosity(); },
"nu_t");
57 out.addVolumeVariable([](
const auto& v){
return v.wallDistance(); },
"l_w");
58 if (writeFlatWallBoundedFields)
60 out.addVolumeVariable([](
const auto& v){
return v.yPlus(); },
"y^+");
61 out.addVolumeVariable([](
const auto& v){
return v.uPlus(); },
"u^+");
66 template <
class ModelTraits,
class Flu
idSystem>
69 return NavierStokesIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
static void initOutputModule(OutputModule &out)
Initialize the Navier-Stokes specific output fields.
Definition: freeflow/navierstokes/iofields.hh:91
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
Definition: freeflow/rans/iofields.hh:36
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition: freeflow/rans/iofields.hh:67
static void initOutputModule(OutputModule &out)
Initialize the RANS specific output fields.
Definition: freeflow/rans/iofields.hh:39