https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVTurbulentTimeDerivative.C
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
11#include "NavierStokesMethods.h"
12
14
17{
20 "Represents the matrix and right hand side contributions of a "
21 "time derivative term for a turbulent variable in a partial differential equation.");
22
23 params.addParam<std::vector<BoundaryName>>(
24 "walls", {}, "Boundaries that correspond to solid walls.");
25 return params;
26}
27
29 : LinearFVTimeDerivative(params),
30 _wall_boundary_names(getParam<std::vector<BoundaryName>>("walls"))
31{
32}
33
34void
41
42bool
47
48void
50{
51 // The rows of wall bounded elements are set by the wall treatment
54}
55
56void
58{
59 // The rows of wall bounded elements are set by the wall treatment
62}
registerMooseObject("NavierStokesApp", LinearFVTurbulentTimeDerivative)
virtual const std::set< SubdomainID > & blockIDs() const
const Elem * elem() const
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
const ElemInfo * _current_elem_info
virtual void addRightHandSideContribution() override
virtual void addMatrixContribution() override
static InputParameters validParams()
Kernel that adds contributions from a time derivative term of the turbulent variables,...
const std::vector< BoundaryName > & _wall_boundary_names
Wall boundaries.
LinearFVTurbulentTimeDerivative(const InputParameters &params)
Class constructor.
std::unordered_set< const Elem * > _wall_bounded
List for wall bounded elements.
bool currentElemIsWallBounded() const
Whether the current element is wall bounded.
FEProblemBase & _fe_problem
virtual void initialSetup()
SubProblem & _subproblem
void getWallBoundedElements(const std::vector< BoundaryName > &wall_boundary_name, const FEProblemBase &fe_problem, const SubProblem &subproblem, const std::set< SubdomainID > &block_ids, std::unordered_set< const Elem * > &wall_bounded)
Map marking wall bounded elements The map passed in wall_bounded_map gets cleared and re-populated.