www.mooseframework.org
GenericConstantMaterial.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Material.h"
13 
22 template <bool is_ad>
24 {
25 public:
27 
29 
30 protected:
31  virtual void initQpStatefulProperties() override;
32  virtual void computeQpProperties() override;
33 
34  const std::vector<std::string> & _prop_names;
35  const std::vector<Real> & _prop_values;
36 
37  unsigned int _num_props;
38 
39  std::vector<GenericMaterialProperty<Real, is_ad> *> _properties;
40 };
41 
std::vector< GenericMaterialProperty< Real, is_ad > * > _properties
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
GenericConstantMaterialTempl(const InputParameters &parameters)
GenericConstantMaterialTempl< true > ADGenericConstantMaterial
GenericConstantMaterialTempl< false > GenericConstantMaterial
const std::vector< Real > & _prop_values
virtual void computeQpProperties() override
Users must override this method.
const std::vector< std::string > & _prop_names
static InputParameters validParams()
Materials compute MaterialProperties.
Definition: Material.h:34
This material automatically declares as material properties whatever is passed to it through the para...
const InputParameters & parameters() const
Get the parameters of the object.
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.