https://mooseframework.inl.gov
LinearFVKernel.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 #include "BlockRestrictable.h"
14 #include "NonADFunctorInterface.h"
15 #include "MooseLinearVariableFV.h"
16 #include "MooseVariableInterface.h"
19 
25  public BlockRestrictable,
26  public NonADFunctorInterface,
28  public MooseVariableInterface<Real>,
30 {
31 public:
33 
34  LinearFVKernel(const InputParameters & params);
35 
36  virtual const MooseLinearVariableFV<Real> & variable() const override { return _var; }
37 
38 protected:
41 
43  const unsigned int _var_num;
44 
46  const unsigned int _sys_num;
47 };
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
const unsigned int _var_num
Cache for the variable number.
This class is responsible for adding relationship managers that describe geometric, algebraic and coupling ghosting for finite volume computations.
Base class for finite volume kernels that contribute to a linear systems.
virtual const MooseLinearVariableFV< Real > & variable() const override
Returns base class reference of the variable that this object operates on.
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
This is the common base class for objects that give contributions to a linear system.
Interface for objects that need to get values of MooseVariables.
An interface that restricts an object to subdomains via the &#39;blocks&#39; input parameter.
const unsigned int _sys_num
Cache for the system number.
LinearFVKernel(const InputParameters &params)