https://mooseframework.inl.gov
LinearFVTKEDSourceSink.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
13 #include "NS.h"
14 
21 {
22 public:
24 
30 
31  virtual void initialSetup() override;
32 
33  virtual Real computeMatrixContribution() override;
34 
35  virtual Real computeRightHandSideContribution() override;
36 
37 protected:
39  const unsigned int _dim;
40 
47 
50 
53 
56 
59 
61  const std::vector<BoundaryName> & _wall_boundary_names;
62 
64  const bool _linearized_model;
65 
68 
70  const Real _C1_eps;
71 
73  const Real _C2_eps;
74 
76  const Real _C_mu;
77 
79  const Real _C_pl;
80 
82 
83  std::unordered_set<const Elem *> _wall_bounded;
84  std::map<const Elem *, std::vector<Real>> _dist;
85  std::map<const Elem *, std::vector<const FaceInfo *>> _face_infos;
87 };
virtual Real computeMatrixContribution() override
virtual Real computeRightHandSideContribution() override
const bool _linearized_model
If the user wants to use the linearized model.
const Moose::Functor< Real > * _v_var
y-velocity
const Moose::Functor< Real > & _u_var
x-velocity
std::map< const Elem *, std::vector< Real > > _dist
WallTreatmentEnum
Wall treatment options.
Definition: NS.h:182
NS::WallTreatmentEnum _wall_treatment
Method used for wall treatment.
const std::vector< BoundaryName > & _wall_boundary_names
Wall boundaries.
const Real _C2_eps
Value of the second epsilon closure coefficient.
const Moose::Functor< Real > & _rho
Density.
const Real _C_pl
Production Limiter Constant.
LinearFVTKEDSourceSink(const InputParameters &params)
Class constructor.
const unsigned int _dim
The dimension of the simulation.
static InputParameters validParams()
std::map< const Elem *, std::vector< const FaceInfo * > > _face_infos
Kernel that adds contributions to the source and the sink of the turbulent kinetic energy dissipation...
virtual void initialSetup() override
const Real _C1_eps
Value of the first epsilon closure coefficient.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Moose::Functor< Real > & _mu_t
Turbulent dynamic viscosity.
const Moose::Functor< Real > & _mu
Dynamic viscosity.
const Moose::Functor< Real > & _k
Turbulent kinetic energy.
const Real _C_mu
C_mu constant.
std::unordered_set< const Elem * > _wall_bounded
Maps for wall treatment.
const Moose::Functor< Real > * _w_var
z-velocity