www.mooseframework.org
MaterialRealAux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "MaterialRealAux.h"
11 
14 
15 template <bool is_ad>
18 {
20  params.addClassDescription("Outputs element volume-averaged material properties");
21  return params;
22 }
23 
24 template <bool is_ad>
26  : MaterialAuxBaseTempl<Real, is_ad>(parameters)
27 {
28 }
29 
30 template <bool is_ad>
31 Real
33 {
34  return MetaPhysicL::raw_value(this->_prop[this->_qp]);
35 }
36 
37 template class MaterialRealAuxTempl<false>;
38 template class MaterialRealAuxTempl<true>;
Object for passing a scalar, REAL material property to an AuxVariable.
static InputParameters validParams()
A base class for the various Material related AuxKernal objects.
auto raw_value(const Eigen::Map< T > &in)
Definition: ADReal.h:73
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Real getRealValue() override
Returns the material property values at quadrature points.
registerMooseObject("MooseApp", MaterialRealAux)
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...
MaterialRealAuxTempl(const InputParameters &parameters)
Class constructor.