https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
15template <bool is_ad>
18{
20 params.addClassDescription("Outputs element material properties rate of change");
21 return params;
22}
23
24template <bool is_ad>
29
30template <bool is_ad>
31Real
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
registerMooseObject("MooseApp", MaterialRateRealAux)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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()
A base class for the various Material related AuxKernal objects.
Object for passing a scalar, REAL material property to an AuxVariable.
Real getRealValue() override
Returns the material rate property values at quadrature points.
MaterialRateRealAuxTempl(const InputParameters &parameters)
static InputParameters validParams()
auto raw_value(const Eigen::Map< T > &in)