12#ifndef DUMUX_RANS_IO_FIELDS_HH
13#define DUMUX_RANS_IO_FIELDS_HH
26 template <
class OutputModule>
31 static const bool isFlatWallBounded = getParamFromGroup<bool>(out.paramGroup(),
"RANS.IsFlatWallBounded",
false);
32 static const bool writeFlatWallBoundedFields = getParamFromGroup<bool>(out.paramGroup(),
"RANS.WriteFlatWallBoundedFields", isFlatWallBounded);
34 static constexpr auto dim =
decltype(std::declval<typename OutputModule::VolumeVariables>().ccVelocityVector())::dimension;
36 out.addVolumeVariable([](
const auto& v){
return v.ccVelocityVector()[0] / v.velocityMaximum()[0]; },
"v_x/v_x,max");
39 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[0]; },
"dv_x/ds_");
41 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[1]; },
"dv_y/ds_");
43 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[2]; },
"dv_z/ds_");
44 out.addVolumeVariable([](
const auto& v){
return v.pressure() - 1e5; },
"p_rel");
45 out.addVolumeVariable([](
const auto& v){
return v.viscosity() / v.density(); },
"nu");
46 out.addVolumeVariable([](
const auto& v){
return v.kinematicEddyViscosity(); },
"nu_t");
47 out.addVolumeVariable([](
const auto& v){
return v.wallDistance(); },
"l_w");
48 if (writeFlatWallBoundedFields)
50 out.addVolumeVariable([](
const auto& v){
return v.yPlus(); },
"y^+");
51 out.addVolumeVariable([](
const auto& v){
return v.uPlus(); },
"u^+");
56 template <
class ModelTraits,
class Flu
idSystem>
59 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:79
Adds I/O fields for the Reynolds-Averaged Navier-Stokes model.
Definition: freeflow/rans/iofields.hh:24
static std::string primaryVariableName(int pvIdx=0, int state=0)
return the names of the primary variables
Definition: freeflow/rans/iofields.hh:57
static void initOutputModule(OutputModule &out)
Initialize the RANS specific output fields.
Definition: freeflow/rans/iofields.hh:27