https://mooseframework.inl.gov
LinearFVKernel.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 "LinearFVKernel.h"
11 #include "Assembly.h"
12 #include "SubProblem.h"
13 #include "FEProblemBase.h"
14 
17 {
22 
23  params.registerBase("LinearFVKernel");
24  return params;
25 }
26 
29  BlockRestrictable(this),
32  false,
33  "variable",
37  _var(*mooseLinearVariableFV()),
38  _var_num(_var.number()),
39  _sys_num(_sys.number())
40 {
42 }
43 
44 void
45 LinearFVKernel::requestVariableCellGradient(const std::string & var_name)
46 {
48  ->computeCellGradients();
49 }
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
VarFieldType
Definition: MooseTypes.h:721
void requestVariableCellGradient(const std::string &variable_name)
Utility routine to request cell gradient computation on a variable.
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()
static InputParameters validParams()
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System...
const THREAD_ID _tid
The thread ID for this object.
VarKindType
Framework-wide stuff.
Definition: MooseTypes.h:714
virtual MooseVariable & getStandardVariable(const THREAD_ID tid, const std::string &var_name) override
Returns the variable reference for requested MooseVariable which may be in any system.
void addMooseVariableDependency(MooseVariableFieldBase *var)
Call this function to add the passed in MooseVariableFieldBase as a variable that this object depends...
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.
static InputParameters validParams()
FEProblemBase & _fe_problem
Reference to this object&#39;s FEProblemBase.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
LinearFVKernel(const InputParameters &params)