www.mooseframework.org
GenericFunctionMaterial.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef GENERICFUNCTIONMATERIAL_H
16 #define GENERICFUNCTIONMATERIAL_H
17 
18 #include "Material.h"
19 
20 // Forward Declarations
22 
23 template <>
25 
35 {
36 public:
38 
39 protected:
40  virtual void initQpStatefulProperties() override;
41  virtual void computeQpProperties() override;
42 
43  std::vector<std::string> _prop_names;
44  std::vector<FunctionName> _prop_values;
45 
46  unsigned int _num_props;
47 
48  std::vector<MaterialProperty<Real> *> _properties;
49  std::vector<MaterialProperty<Real> *> _properties_old;
50  std::vector<MaterialProperty<Real> *> _properties_older;
51  std::vector<Function *> _functions;
52 
53 private:
57  void computeQpFunctions();
58 
61 };
62 
63 #endif // GENERICFUNCTIONMATERIAL_H
std::vector< MaterialProperty< Real > * > _properties_old
void computeQpFunctions()
A helper method for evaluating the functions.
InputParameters validParams< GenericFunctionMaterial >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::vector< FunctionName > _prop_values
std::vector< std::string > _prop_names
This material automatically declares as material properties whatever is passed to it through the para...
std::vector< MaterialProperty< Real > * > _properties
std::vector< Function * > _functions
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.
GenericFunctionMaterial(const InputParameters &parameters)
Materials compute MaterialProperties.
Definition: Material.h:53
bool _enable_stateful
Flag for calling declareProperyOld/Older.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual void computeQpProperties() override
Users must override this method.
std::vector< MaterialProperty< Real > * > _properties_older