https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MaterialStdVectorRealGradientAux.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
11
13
16{
18 params.addClassDescription("Extracts a component of a material's std::vector<RealGradient> to an "
19 "aux variable. If the std::vector is not of sufficient size then "
20 "zero is returned");
21 params.addParam<unsigned int>(
22 "component", 0, "The gradient component to be extracted for this kernel");
23 return params;
24}
25
27 const InputParameters & parameters)
28 : MaterialStdVectorAuxBase<RealGradient>(parameters),
29 _component(getParam<unsigned int>("component"))
30{
31 if (_component > LIBMESH_DIM)
33 "The component ", _component, " does not exist for ", LIBMESH_DIM, " dimensional problems");
34}
35
36Real
registerMooseObject("MooseApp", MaterialStdVectorRealGradientAux)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
void ErrorVector unsigned int
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
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.
Moose::GenericType< std::vector< T >, is_ad > _full_value
T Value evaluated from either the property or the functor.
A base class for the various Material related AuxKernel objects.
unsigned int _index
index of the vector element
AuxKernel for outputting a std::vector material-property component to an AuxVariable.
virtual Real getRealValue() override
Returns material property values at quadrature points.
unsigned int _component
component of the real gradient to be extracted
MaterialStdVectorRealGradientAux(const InputParameters &parameters)