https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
21public:
23
25
26 ADReal boundaryValue(const FaceInfo & fi, const Moose::StateArg & state) const override;
27
28private:
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};
DualNumber< Real, DNDerivativeType, true > ADReal
Applies a wall function to the turbulent viscosity field.
const Moose::Functor< ADReal > * _v_var
y-velocity
const Moose::Functor< ADReal > & _mu_t
Turbulent dynamic viscosity.
const bool _preserve_sparsity_pattern
For Newton solves we want to add extra zero-valued terms regardless of y-plus to avoid sparsity patte...
ADReal boundaryValue(const FaceInfo &fi, const Moose::StateArg &state) const override
NS::WallTreatmentEnum _wall_treatment
Method used for wall treatment.
const unsigned int _dim
the dimension of the domain
const Moose::Functor< ADReal > & _rho
Density.
const Moose::Functor< ADReal > & _u_var
x-velocity
const Moose::Functor< ADReal > * _w_var
z-velocity
const Moose::Functor< ADReal > & _k
Turbulent kinetic energy.
const Moose::Functor< ADReal > & _mu
Dynamic viscosity.
const InputParameters & parameters() const
static constexpr Real von_karman_constant
Definition NS.h:205
WallTreatmentEnum
Wall treatment options.
Definition NS.h:187
static constexpr Real E_turb_constant
Definition NS.h:206