https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
26
32 false,
33 "variable",
34 Moose::VarKindType::VAR_SOLVER,
35 Moose::VarFieldType::VAR_FIELD_STANDARD),
37 _var(*mooseLinearVariableFV()),
38 _var_num(_var.number()),
39 _sys_num(_sys.number())
40{
42}
43
44void
46{
48 ->computeCellGradients();
49}
An interface that restricts an object to subdomains via the 'blocks' input parameter.
static InputParameters validParams()
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.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System.
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable.
static InputParameters validParams()
LinearFVKernel(const InputParameters &params)
void requestVariableCellGradient(const std::string &variable_name)
Utility routine to request cell gradient computation on a variable.
This is the common base class for objects that give contributions to a linear system.
const THREAD_ID _tid
The thread ID for this object.
FEProblemBase & _fe_problem
Reference to this object's FEProblemBase.
This class provides variable solution interface for linear finite volume problems.
void addMooseVariableDependency(MooseVariableFieldBase *var)
Call this function to add the passed in MooseVariableFieldBase as a variable that this object depends...
Interface for objects that need to get values of MooseVariables.
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
static InputParameters validParams()
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...