https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
15#include "NS.h"
16
22{
23public:
25
26 virtual void initialSetup() override;
27
29
30protected:
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
57 const Real _mu_t_ratio_max;
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::unordered_set<const Elem *> _wall_bounded;
85 std::map<const Elem *, std::vector<Real>> _dist;
86 std::map<const Elem *, std::vector<const FaceInfo *>> _face_infos;
88};
const InputParameters & parameters() const
Computes the turbuent viscosity for the k-Epsilon model.
const Real _C_mu
C-mu closure coefficient.
const Moose::Functor< Real > * _w_var
z-velocity
NS::WallTreatmentEnum _wall_treatment
Method used for wall treatment.
std::unordered_set< const Elem * > _wall_bounded
virtual Real computeValue() override
static constexpr int _MAX_ITERS_U_TAU
Maximum number of iterations to find the friction velocity.
const unsigned int _dim
The dimension of the domain.
const bool _newton_solve
Whether we are using a newton solve.
const Moose::Functor< Real > & _k
Turbulent kinetic energy.
virtual void initialSetup() override
const Moose::Functor< Real > & _mu
Dynamic viscosity.
std::map< const Elem *, std::vector< const FaceInfo * > > _face_infos
static constexpr Real _REL_TOLERANCE
Relative tolerance to find the friction velocity.
const bool _bulk_wall_treatment
If the user wants to enable bulk wall treatment.
static InputParameters validParams()
const MooseEnum _scale_limiter
Method used to limit the k-e time scale.
const Moose::Functor< Real > * _v_var
y-velocity
const Moose::Functor< Real > & _u_var
x-velocity
const Moose::Functor< Real > & _rho
Density.
std::map< const Elem *, std::vector< Real > > _dist
const Moose::Functor< Real > & _epsilon
Turbulent kinetic energy dissipation rate.
const std::vector< BoundaryName > & _wall_boundary_names
Wall boundaries.
WallTreatmentEnum
Wall treatment options.
Definition NS.h:187