https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVDivergence.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 "LinearFVFluxKernel.h"
13
19{
20public:
22
27 LinearFVDivergence(const InputParameters & params);
28
29 virtual Real computeElemMatrixContribution() override;
30
31 virtual Real computeNeighborMatrixContribution() override;
32
33 virtual Real computeElemRightHandSideContribution() override;
34
35 virtual Real computeNeighborRightHandSideContribution() override;
36
37 virtual Real computeBoundaryMatrixContribution(const LinearFVBoundaryCondition & bc) override;
38
39 virtual Real computeBoundaryRHSContribution(const LinearFVBoundaryCondition & bc) override;
40
41protected:
42 // Computes and caches the face flux contributions for the same face.
43 Real computeFaceFlux();
44
47
50};
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
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