https://mooseframework.inl.gov
INSFVTKESourceSink.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 "FVElementalKernel.h"
13 #include "INSFVVelocityVariable.h"
14 #include "NS.h"
15 
20 {
21 public:
23 
24  virtual void initialSetup() override;
25 
27 
28 protected:
29  ADReal computeQpResidual() override;
30 
31 protected:
33  const unsigned int _dim;
34 
41 
44 
47 
50 
53 
55  const std::vector<BoundaryName> & _wall_boundary_names;
56 
58  const bool _linearized_model;
59 
62 
64  const Real _C_mu;
65 
66  // Production Limiter Constant
67  const Real _C_pl;
68 
70  const bool _newton_solve;
71 
74  std::unordered_set<const Elem *> _wall_bounded;
75  std::map<const Elem *, std::vector<Real>> _dist;
76  std::map<const Elem *, std::vector<const FaceInfo *>> _face_infos;
78 };
const bool _newton_solve
For Newton solves we want to add extra zero-valued terms regardless of y-plus to avoid sparsity patte...
const bool _linearized_model
Linearized model?
const Moose::Functor< ADReal > & _mu_t
Turbulent dynamic viscosity.
const Moose::Functor< ADReal > * _w_var
z-velocity
const Real _C_mu
C_mu constant.
const std::vector< BoundaryName > & _wall_boundary_names
Wall boundaries.
ADReal computeQpResidual() override
WallTreatmentEnum
Wall treatment options.
Definition: NS.h:182
const Moose::Functor< ADReal > & _u_var
x-velocity
const Moose::Functor< ADReal > & _mu
Dynamic viscosity.
const Moose::Functor< ADReal > & _rho
Density.
DualNumber< Real, DNDerivativeType, true > ADReal
std::map< const Elem *, std::vector< Real > > _dist
NS::WallTreatmentEnum _wall_treatment
Method used for wall treatment.
const Moose::Functor< ADReal > * _v_var
y-velocity
static InputParameters validParams()
const unsigned int _dim
The dimension of the domain.
std::unordered_set< const Elem * > _wall_bounded
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Computes source the sink terms for the turbulent kinetic energy.
virtual void initialSetup() override
const Moose::Functor< ADReal > & _epsilon
epsilon - dissipation rate of TKE
std::map< const Elem *, std::vector< const FaceInfo * > > _face_infos
INSFVTKESourceSink(const InputParameters &parameters)