www.mooseframework.org
VariableGradientMaterial.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef VARIABLEGRADIENTMATERIAL_H
9 #define VARIABLEGRADIENTMATERIAL_H
10 
11 #include "Material.h"
12 
14 
15 template <>
17 
21 class VariableGradientMaterial : public Material
22 {
23 public:
24  VariableGradientMaterial(const InputParameters & parameters);
25 
26 protected:
27  virtual void computeQpProperties();
28 
29  const VariableGradient & _grad;
30  MaterialProperty<Real> & _prop;
31 };
32 
33 #endif // VARIABLEGRADIENTMATERIAL_H
InputParameters validParams< VariableGradientMaterial >()
MaterialProperty< Real > & _prop
const VariableGradient & _grad
Set a material property to the norm of the gradient of a non-linear variable.
VariableGradientMaterial(const InputParameters &parameters)