https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVDivergence.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
10#include "LinearFVDivergence.h"
11
13
16{
18 params.addClassDescription("Represents a divergence term. Note, this term does not contribute to "
19 "the system matrix, only takes the divergence of a face flux field "
20 "and adds it to the right hand side of the linear system.");
21 params.addRequiredParam<MooseFunctorName>("face_flux", "Functor for the face flux.");
22 return params;
23}
24
26 : LinearFVFluxKernel(params), _face_flux(getFunctor<Real>("face_flux"))
27
28{
29}
30
31Real
36
37Real
42
43Real
48
49Real
54
55Real
60
61Real
66
67Real
69{
70 const auto face_arg = makeCDFace(*_current_face_info);
71 const auto state_arg = determineState();
72
74 {
77 }
78
80}
registerMooseObject("NavierStokesApp", LinearFVDivergence)
Moose::FaceArg makeCDFace(const FaceInfo &fi, const bool correct_skewness=false) const
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Kernel that adds contributions from an advection term discretized using the finite volume method to a...
Real _flux_rhs_contribution
The cached right hand side contribution.
virtual Real computeNeighborMatrixContribution() override
virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition &bc) override
LinearFVDivergence(const InputParameters &params)
Class constructor.
virtual Real computeElemMatrixContribution() override
static InputParameters validParams()
const Moose::Functor< Real > & _face_flux
The functor for the face flux.
virtual Real computeBoundaryMatrixContribution(const LinearFVBoundaryCondition &bc) override
virtual Real computeNeighborRightHandSideContribution() override
virtual Real computeElemRightHandSideContribution() override
const FaceInfo * _current_face_info
static InputParameters validParams()
Moose::StateArg determineState() const