www.mooseframework.org
GenericConstantMaterial.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 GENERICCONSTANTMATERIAL_H
16 #define GENERICCONSTANTMATERIAL_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<Real> _prop_values;
45 
46  unsigned int _num_props;
47 
48  std::vector<MaterialProperty<Real> *> _properties;
49 };
50 
51 #endif // GENERICCONSTANTMATERIAL_H
InputParameters validParams< GenericConstantMaterial >()
virtual void computeQpProperties() override
Users must override this method.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::vector< Real > _prop_values
This material automatically declares as material properties whatever is passed to it through the para...
std::vector< MaterialProperty< Real > * > _properties
GenericConstantMaterial(const InputParameters &parameters)
std::vector< std::string > _prop_names
Materials compute MaterialProperties.
Definition: Material.h:53
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.