22 "advection term for a turbulence variable.");
25 "rhie_chow_user_object",
26 "The rhie-chow user-object which is used to determine the face velocity.");
29 "advected_interp_method_name",
30 "Name of the FVInterpolationMethod to use for the advected quantity.");
32 params.
addParam<std::vector<BoundaryName>>(
33 "walls", {},
"Boundaries that correspond to solid walls.");
41 _mass_flux_provider(getUserObject<
RhieChowMassFlux>(
"rhie_chow_user_object")),
42 _adv_interp_method(getFVAdvectedInterpolationMethod(
43 getParam<InterpolationMethodName>(
"advected_interp_method_name"))),
45 _wall_boundary_names(getParam<
std::vector<BoundaryName>>(
"walls"))
101 "We should only have one boundary on every face.");
121 const auto dof_id_neighbor =
165 "We should only have one boundary on every face.");
185 const auto dof_id_neighbor =
223 mooseAssert(adv_bc,
"This should be a valid BC!");
225 const auto boundary_value_matrix_contrib = adv_bc->computeBoundaryValueMatrixContribution();
237 mooseAssert(adv_bc,
"This should be a valid BC!");
242 const auto boundary_value_rhs_contrib = adv_bc->computeBoundaryValueRHSContribution();
virtual void addRightHandSideContribution() override
const unsigned int _var_num
virtual void addMatrixContribution() override
virtual Real computeBoundaryMatrixContribution(const LinearFVBoundaryCondition &bc) override
VectorValue< Real > _neighbor_grad_storage
User object responsible for determining the face fluxes using the Rhie-Chow interpolation in a segreg...
const std::set< BoundaryID > & boundaryIDs() const
libMesh::LinearImplicitSystem & _linear_system
Real getMassFlux(const FaceInfo &fi) const
Get the face velocity times density (used in advection terms)
virtual void setupFaceData(const FaceInfo *face_info) override
Moose::StateArg determineState() const
const ElemInfo * neighborInfo() const
void setupFaceData(const FaceInfo *face_info, const FaceInfo::VarFaceNeighbors face_type)
MooseLinearVariableFV< Real > & _var
virtual void setupFaceData(const FaceInfo *face_info)
NumericVector< Number > * rhs
const ElemInfo * elemInfo() const
virtual Moose::FV::GradientLimiterType gradientLimiter() const
LinearFVBoundaryCondition * getBoundaryCondition(const BoundaryID bd_id) const
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...
const FVAdvectedInterpolationMethod & _adv_interp_method
The interpolation method to use for the advected quantity.
virtual const std::set< SubdomainID > & blockIDs() const
virtual void initialSetup() override
Real _mass_face_flux
Container for the mass flux on the face which will be reused in the advection term's matrix and right...
FaceInfo::VarFaceNeighbors _current_face_type
std::pair< Real, Real > weights_matrix
const bool _force_boundary_execution
DenseVector< Real > _rhs_contribution
VectorValue< Real > gradSln(const ElemInfo &elem_info, const StateArg &state) const
const std::vector< BoundaryName > & _wall_boundary_names
Wall boundaries.
virtual Real computeNeighborMatrixContribution() override
virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition &bc) override
static InputParameters validParams()
const FaceInfo * _current_face_info
const Elem * neighborPtr() const
virtual AdvectedSystemContribution advectedInterpolate(const FaceInfo &face, Real elem_value, Real neighbor_value, const VectorValue< Real > *elem_grad, const VectorValue< Real > *neighbor_grad, Real mass_flux) const=0
An advection kernel that implements the advection term for the turbulent variables limited for the fi...
const Elem * elemPtr() const
FVAdvectedInterpolationMethod::AdvectedSystemContribution _adv_interp_result
Cached weights/correction for the current face (refreshed in setupFaceData)
DenseVector< dof_id_type > _dof_indices
const std::vector< std::vector< dof_id_type > > & dofIndices() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual bool needsGradients() const
SparseMatrix< Number > * matrix
static InputParameters validParams()
Real getElemValue(const ElemInfo &elem_info, const StateArg &state) const
VectorValue< Real > _elem_grad_storage
Reusable gradient storage used when advected interpolation requires gradients.
LinearFVTurbulentAdvection(const InputParameters ¶ms)
virtual Real computeNeighborRightHandSideContribution() override
registerMooseObject("NavierStokesApp", LinearFVTurbulentAdvection)
FEProblemBase & _fe_problem
const RhieChowMassFlux & _mass_flux_provider
The Rhie-Chow user object that provides us with the face velocity.
virtual Real computeElemRightHandSideContribution() override
bool hasBlocks(const SubdomainName &name) const
void computeCellGradients()
virtual void initialSetup()
std::unordered_set< const Elem * > _wall_bounded
List for wall bounded elements.
const unsigned int _sys_num
virtual Real computeElemMatrixContribution() override
SubdomainID subdomain_id() const
DenseMatrix< Real > _matrix_contribution