www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VariableGradientMaterial Class Reference

Set a material property to the norm of the gradient of a non-linear variable. More...

#include <VariableGradientMaterial.h>

Inheritance diagram for VariableGradientMaterial:
[legend]

Public Member Functions

 VariableGradientMaterial (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

const VariableGradient & _grad
 
MaterialProperty< Real > & _prop
 

Detailed Description

Set a material property to the norm of the gradient of a non-linear variable.

Definition at line 21 of file VariableGradientMaterial.h.

Constructor & Destructor Documentation

VariableGradientMaterial::VariableGradientMaterial ( const InputParameters &  parameters)

Definition at line 21 of file VariableGradientMaterial.C.

22  : Material(parameters),
23  _grad(coupledGradient("variable")),
24  _prop(declareProperty<Real>(getParam<MaterialPropertyName>("prop")))
25 {
26 }
MaterialProperty< Real > & _prop
const VariableGradient & _grad

Member Function Documentation

void VariableGradientMaterial::computeQpProperties ( )
protectedvirtual

Definition at line 29 of file VariableGradientMaterial.C.

30 {
31  _prop[_qp] = _grad[_qp].norm();
32 }
MaterialProperty< Real > & _prop
const VariableGradient & _grad

Member Data Documentation

const VariableGradient& VariableGradientMaterial::_grad
protected

Definition at line 29 of file VariableGradientMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& VariableGradientMaterial::_prop
protected

Definition at line 30 of file VariableGradientMaterial.h.

Referenced by computeQpProperties().


The documentation for this class was generated from the following files: