https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFVSource.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
13
19{
20public:
22
27 LinearFVSource(const InputParameters & params);
28
29 virtual Real computeMatrixContribution() override;
30
31 virtual Real computeRightHandSideContribution() override;
32
33protected:
36
39};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Finite volume kernel that contributes approximations of volumetric integral terms to the matrix and r...
Kernel that adds contributions from a external source term discretized using the finite volume method...
virtual Real computeRightHandSideContribution() override
Computes the right hand side contribution for the given variable on the current element.
static InputParameters validParams()
const Moose::Functor< Real > & _source_density
The functor for the source density.
const Moose::Functor< Real > & _scale
Scale factor.
virtual Real computeMatrixContribution() override
Computes the system matrix contribution for the given variable on the current element.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...