https://mooseframework.inl.gov
MaterialRateRealAux.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 "MaterialRateRealAux.h"
11 
14 
15 template <bool is_ad>
18 {
20  params.addClassDescription("Outputs element material properties rate of change");
21  return params;
22 }
23 
24 template <bool is_ad>
26  : MaterialRateAuxBaseTempl<Real, is_ad>(parameters)
27 {
28 }
29 
30 template <bool is_ad>
31 Real
33 {
34  Real prop = MetaPhysicL::raw_value(this->_full_value);
35  Real prop_old = MetaPhysicL::raw_value(this->_prop_old[this->_qp]);
36  Real rate = (prop - prop_old) / this->_dt;
37  return rate;
38 }
39 
40 template class MaterialRateRealAuxTempl<false>;
41 template class MaterialRateRealAuxTempl<true>;
auto raw_value(const Eigen::Map< T > &in)
Definition: EigenADReal.h:73
registerMooseObject("MooseApp", MaterialRateRealAux)
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Real getRealValue() override
Returns the material rate property values at quadrature points.
MaterialRateRealAuxTempl(const InputParameters &parameters)
A base class for the various Material related AuxKernal objects.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
static InputParameters validParams()
Object for passing a scalar, REAL material property to an AuxVariable.