https://mooseframework.inl.gov
INSFVTurbulentViscosityWallFunction.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "FVDirichletBCBase.h"
13 #include "FVFluxBC.h"
14 #include "NS.h"
15 
20 {
21 public:
23 
25 
26  ADReal boundaryValue(const FaceInfo & fi, const Moose::StateArg & state) const override;
27 
28 private:
30  const unsigned int _dim;
31 
38 
45 
48 
50  const Real _C_mu;
51 
54 
57 
58  // Mu_t evaluated at y+=30 for blending purposes
59  const Real _mut_30 =
60  (NS::von_karman_constant * 30.0 / std::log(NS::E_turb_constant * 30.0) - 1.0);
61 };
static constexpr Real von_karman_constant
Definition: NS.h:191
const Moose::Functor< ADReal > * _v_var
y-velocity
Applies a wall function to the turbulent viscosity field.
WallTreatmentEnum
Wall treatment options.
Definition: NS.h:182
const Moose::Functor< ADReal > * _w_var
z-velocity
const unsigned int _dim
the dimension of the domain
DualNumber< Real, DNDerivativeType, true > ADReal
const Moose::Functor< ADReal > & _mu_t
Turbulent dynamic viscosity.
INSFVTurbulentViscosityWallFunction(const InputParameters &parameters)
ADReal boundaryValue(const FaceInfo &fi, const Moose::StateArg &state) const override
const Moose::Functor< ADReal > & _k
Turbulent kinetic energy.
NS::WallTreatmentEnum _wall_treatment
Method used for wall treatment.
const Moose::Functor< ADReal > & _u_var
x-velocity
const Real _C_mu
C_mu turbulent coefficient.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static constexpr Real E_turb_constant
Definition: NS.h:192
const InputParameters & parameters() const
const bool _preserve_sparsity_pattern
For Newton solves we want to add extra zero-valued terms regardless of y-plus to avoid sparsity patte...
const Moose::Functor< ADReal > & _rho
Density.
const Moose::Functor< ADReal > & _mu
Dynamic viscosity.