Classes | Functions
MaterialPropertyInterface.h File Reference

Go to the source code of this file.


class  MaterialPropertyInterface
 An interface for accessing Materials. More...


template<typename T >
InputParameters validParams ()
InputParameters validParams< MaterialPropertyInterface > ()
template<typename T >
void mooseSetToZero (T &v)
 Helper function templates to set a variable to zero. More...
template<typename T >
void mooseSetToZero (T *&)

Function Documentation

template<typename T >
void mooseSetToZero ( T &  v)

Helper function templates to set a variable to zero.

Specializations may have to be implemented (for examples see RankTwoTensor, RankFourTensor).

The default for non-pointer types is to assign zero. This should either do something sensible, or throw a compiler error. Otherwise the T type is designed badly.

Definition at line 269 of file MaterialPropertyInterface.h.

270 {
276  v = 0;
277 }
template<typename T >
void mooseSetToZero ( T *&  )

Definition at line 280 of file MaterialPropertyInterface.h.

281 {
282  mooseError("Cannot use pointer types for MaterialProperty derivatives.");
283 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
template<typename T >
InputParameters validParams ( )

Definition at line 22 of file MaterialPropertyInterface.C.

Referenced by validParams< AuxKernel >(), validParams< DiracKernel >(), validParams< ElementDamper >(), validParams< ElementIndicator >(), validParams< ElementUserObject >(), validParams< GeneralUserObject >(), validParams< Indicator >(), validParams< IntegratedBC >(), validParams< KernelBase >(), validParams< Material >(), validParams< NodalDamper >(), validParams< QuadraturePointMarker >(), validParams< SideUserObject >(), and validParams< TwoMaterialPropertyInterface >().

23 {
26  "_material_data_type"); // optionally force the type of MaterialData to utilize
27  return params;
28 }
void addPrivateParam(const std::string &name, const T &value)
These method add a parameter to the InputParameters object which can be retrieved like any other para...
MaterialData types.
Definition: MooseTypes.h:129
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters emptyInputParameters()