www.mooseframework.org
OrderParameterFunctionMaterial.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 #ifndef ORDERPARAMETERFUNCTIONMATERIAL_H
8 #define ORDERPARAMETERFUNCTIONMATERIAL_H
9 
10 #include "Material.h"
11 #include "DerivativeMaterialInterface.h"
12 
13 // Forward Declarations
15 
16 template <>
18 
24 class OrderParameterFunctionMaterial : public DerivativeMaterialInterface<Material>
25 {
26 public:
27  OrderParameterFunctionMaterial(const InputParameters & parameters);
28 
29 protected:
31  const VariableValue & _eta;
32  unsigned int _eta_var;
33  VariableName _eta_name;
34 
36  std::string _function_name;
37 
39  MaterialProperty<Real> & _prop_f;
40 
42  MaterialProperty<Real> & _prop_df;
43 
45  MaterialProperty<Real> & _prop_d2f;
46 };
47 
48 #endif // ORDERPARAMETERFUNCTIONMATERIAL_H
InputParameters validParams< OrderParameterFunctionMaterial >()
Material base class for materials that provide the switching function or the double well function ...
MaterialProperty< Real > & _prop_d2f
Material property to store the second derivative .
OrderParameterFunctionMaterial(const InputParameters &parameters)
std::string _function_name
name of the function of eta (used to generate the material property names)
MaterialProperty< Real > & _prop_df
Material property to store the derivative .
MaterialProperty< Real > & _prop_f
Material property to store .
const VariableValue & _eta
Coupled variable value for the order parameter .