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");
51 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[0]; },
"dv_x/ds_");
53 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[1]; },
"dv_y/ds_");
55 out.addVolumeVariable([](
const auto& v){
return v.velocityGradients()[2]; },
"dv_z/ds_");
56 out.addVolumeVariable([](
const auto& v){
return v.pressure() - 1e5; },
"p_rel");
57 out.addVolumeVariable([](
const auto& v){
return v.viscosity() / v.density(); },
"nu");
58 out.addVolumeVariable([](
const auto& v){
return v.kinematicEddyViscosity(); },
"nu_t");
59 out.addVolumeVariable([](
const auto& v){
return v.wallDistance(); },
"l_w");
60 if (writeFlatWallBoundedFields)
62 out.addVolumeVariable([](
const auto& v){
return v.yPlus(); },
"y^+");
63 out.addVolumeVariable([](
const auto& v){
return v.uPlus(); },
"u^+");
68 template <
class ModelTraits,
class Flu
idSystem>
71 return NavierStokesIOFields::template primaryVariableName<ModelTraits, FluidSystem>(pvIdx, state);
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
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:69
static void initOutputModule(OutputModule &out)
Initialize the RANS specific output fields.
Definition: freeflow/rans/iofields.hh:39