https://mooseframework.inl.gov
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 {
20 public:
22 
27  LinearFVSource(const InputParameters & params);
28 
29  virtual Real computeMatrixContribution() override;
30 
31  virtual Real computeRightHandSideContribution() override;
32 
33 protected:
36 
39 };
virtual Real computeRightHandSideContribution() override
Computes the right hand side contribution for the given variable on the current element.
virtual Real computeMatrixContribution() override
Computes the system matrix contribution for the given variable on the current element.
Kernel that adds contributions from a external source term discretized using the finite volume method...
static InputParameters validParams()
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
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...
const Moose::Functor< Real > & _source_density
The functor for the source density.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Moose::Functor< Real > & _scale
Scale factor.
LinearFVSource(const InputParameters &params)
Class constructor.