https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
19
25 public BlockRestrictable,
28 public MooseVariableInterface<Real>,
30{
31public:
33
34 LinearFVKernel(const InputParameters & params);
35
36 virtual const MooseLinearVariableFV<Real> & variable() const override { return _var; }
37
38protected:
40 void requestVariableCellGradient(const std::string & variable_name);
41
44
46 const unsigned int _var_num;
47
49 const unsigned int _sys_num;
50};
An interface that restricts an object to subdomains via the 'blocks' input parameter.
This class is responsible for adding relationship managers that describe geometric,...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Base class for finite volume kernels that contribute to a linear systems.
MooseLinearVariableFV< Real > & _var
Reference to the linear finite volume variable.
static InputParameters validParams()
const unsigned int _sys_num
Cache for the system number.
virtual const MooseLinearVariableFV< Real > & variable() const override
Returns base class reference of the variable that this object operates on.
void requestVariableCellGradient(const std::string &variable_name)
Utility routine to request cell gradient computation on a variable.
const unsigned int _var_num
Cache for the variable number.
This is the common base class for objects that give contributions to a linear system.
This class provides variable solution interface for linear finite volume problems.
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...