https://mooseframework.inl.gov
kEpsilonViscosityAux.h
Go to the documentation of this file.
1 
2 //* This file is part of the MOOSE framework
3 //* https://mooseframework.inl.gov
4 //*
5 //* All rights reserved, see COPYRIGHT for full restrictions
6 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
7 //*
8 //* Licensed under LGPL 2.1, please see LICENSE for details
9 //* https://www.gnu.org/licenses/lgpl-2.1.html
10 
11 #pragma once
12 
13 #include "AuxKernel.h"
14 #include "INSFVVelocityVariable.h"
15 #include "NS.h"
16 
22 {
23 public:
25 
26  virtual void initialSetup() override;
27 
29 
30 protected:
31  virtual Real computeValue() override;
32 
34  const unsigned int _dim;
35 
42 
47 
52 
54  const Real _C_mu;
55 
56  // Maximum allowable mu_t_ratio : mu/mu_t
58 
60  const std::vector<BoundaryName> & _wall_boundary_names;
61 
64 
67 
70 
72  const bool _newton_solve;
73 
74  // -- Parameters of the wall function method
75 
77  static constexpr int _MAX_ITERS_U_TAU{50};
78 
80  static constexpr Real _REL_TOLERANCE{1e-4};
81 
84  std::map<const Elem *, bool> _wall_bounded;
85  std::map<const Elem *, std::vector<Real>> _dist;
86  std::map<const Elem *, std::vector<const FaceInfo *>> _face_infos;
88 };
virtual void initialSetup() override
const Moose::Functor< ADReal > & _k
Turbulent kinetic energy.
const Moose::Functor< ADReal > * _v_var
y-velocity
Computes the turbuent viscosity for the k-Epsilon model.
const bool _bulk_wall_treatment
If the user wants to enable bulk wall treatment.
std::map< const Elem *, bool > _wall_bounded
const unsigned int _dim
The dimension of the domain.
WallTreatmentEnum
Wall treatment options.
Definition: NS.h:182
static constexpr int _MAX_ITERS_U_TAU
Maximum number of iterations to find the friction velocity.
NS::WallTreatmentEnum _wall_treatment
Method used for wall treatment.
static constexpr Real _REL_TOLERANCE
Relative tolerance to find the friction velocity.
const bool _newton_solve
Whether we are using a newton solve.
std::map< const Elem *, std::vector< const FaceInfo * > > _face_infos
const Moose::Functor< ADReal > * _w_var
z-velocity
std::map< const Elem *, std::vector< Real > > _dist
virtual Real computeValue() override
kEpsilonViscosityAux(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const MooseEnum _scale_limiter
Method used to limit the k-e time scale.
const Moose::Functor< ADReal > & _mu
Dynamic viscosity.
const std::vector< BoundaryName > & _wall_boundary_names
Wall boundaries.
const Moose::Functor< ADReal > & _u_var
x-velocity
const InputParameters & parameters() const
static InputParameters validParams()
const Moose::Functor< ADReal > & _rho
Density.
const Moose::Functor< ADReal > & _epsilon
Turbulent kinetic energy dissipation rate.
const Real _C_mu
C-mu closure coefficient.