https://mooseframework.inl.gov
MaterialRateAuxBase.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 
12 // MOOSE includes
13 #include "MaterialAuxBase.h"
14 
19 template <typename T, bool is_ad, typename RT = Real>
21 {
22 public:
25 
26 protected:
28  virtual RT getRealValue() = 0;
29 
32 };
33 
34 template <typename T, bool is_ad, typename RT>
37 {
39  return params;
40 }
41 
42 template <typename T, bool is_ad, typename RT>
44  : MaterialAuxBaseTempl<RT, is_ad>(parameters),
45  _prop_old(this->template getMaterialPropertyOld<T>("property"))
46 {
47 }
48 
49 template <typename T = Real>
A base class for the various Material related AuxKernal objects.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const MaterialProperty< T > & _prop_old
Reference to the old material property for this AuxKernel.
MaterialRateAuxBaseTempl(const InputParameters &parameters)
A base class for the various Material related AuxKernal objects.
static InputParameters validParams()
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()
virtual RT getRealValue()=0
Returns material rate property values at quadrature points.