https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
21public:
23
29
30 virtual Real computeMatrixContribution() override;
31
32 virtual Real computeRightHandSideContribution() override;
33
34 virtual void setCurrentElemInfo(const ElemInfo * elem_info) override;
35
36protected:
39
43
44private:
46 std::vector<Real> _factor_history;
47
51 std::vector<Moose::StateArg> _state_args;
52};
Class used for caching additional information for elements such as the volume and centroid.
Definition ElemInfo.h:26
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Finite volume kernel that contributes approximations of volumetric integral terms to the matrix and r...
Kernel that adds contributions from a time derivative term to a linear system populated using the fin...
virtual void setCurrentElemInfo(const ElemInfo *elem_info) override
Set the current ElemInfo object.
virtual Real computeMatrixContribution() override
Computes the system matrix contribution for the given variable on the current element.
const TimeIntegrator & _time_integrator
The time integrator to use in this kernel, will provide information on how many states are required i...
virtual Real computeRightHandSideContribution() override
Computes the right hand side contribution for the given variable on the current element.
std::vector< Real > _factor_history
Current and older values of the material property multiplier.
const Moose::Functor< Real > & _factor
The functor for the material property multipler.
std::vector< Moose::StateArg > _state_args
State args, the args which will help us fetch the different states of the material property multiplie...
static InputParameters validParams()
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
Base class for time integrators.