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