https://mooseframework.inl.gov
LinearFVTimeDerivative.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 "TimeIntegrator.h"
14 
20 {
21 public:
23 
29 
30  virtual Real computeMatrixContribution() override;
31 
32  virtual Real computeRightHandSideContribution() override;
33 
34  virtual void setCurrentElemInfo(const ElemInfo * elem_info) override;
35 
36 protected:
39 
43 
44 private:
46  std::vector<Real> _factor_history;
47 
51  std::vector<Moose::StateArg> _state_args;
52 };
LinearFVTimeDerivative(const InputParameters &params)
Class constructor.
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...
std::vector< Real > _factor_history
Current and older values of the material property multiplier.
const TimeIntegrator & _time_integrator
The time integrator to use in this kernel, will provide information on how many states are required i...
Finite volume kernel that contributes approximations of volumetric integral terms to the matrix and r...
std::vector< Moose::StateArg > _state_args
State args, the args which will help us fetch the different states of the material property multiplie...
virtual Real computeRightHandSideContribution() override
Computes the right hand side contribution for the given variable on the current element.
virtual void setCurrentElemInfo(const ElemInfo *elem_info) override
Set the current ElemInfo object.
const Moose::Functor< Real > & _factor
The functor for the material property multipler.
Kernel that adds contributions from a time derivative term to a linear system populated using the fin...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Base class for time integrators.
virtual Real computeMatrixContribution() override
Computes the system matrix contribution for the given variable on the current element.
Class used for caching additional information for elements such as the volume and centroid...
Definition: ElemInfo.h:25