https://mooseframework.inl.gov
GenericConstantVectorMaterial.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
14 template <bool is_ad>
16 {
17 public:
19 
21 
22 protected:
23  virtual void initQpStatefulProperties() override;
24  virtual void computeQpProperties() override;
25 
27  std::vector<std::string> _prop_names;
28 
30  const std::vector<Real> & _prop_values;
31 
33  unsigned int _num_props;
34 
36  std::vector<GenericMaterialProperty<RealVectorValue, is_ad> *> _properties;
37 };
38 
std::vector< GenericMaterialProperty< RealVectorValue, is_ad > * > _properties
A vector of pointer to the material properties.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const std::vector< Real > & _prop_values
The vector values of each vector material property.
GenericConstantVectorMaterialTempl< true > ADGenericConstantVectorMaterial
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.
virtual void computeQpProperties() override
Users must override this method.
Materials compute MaterialProperties.
Definition: Material.h:34
GenericConstantVectorMaterialTempl< false > GenericConstantVectorMaterial
const InputParameters & parameters() const
Get the parameters of the object.
std::vector< std::string > _prop_names
The names of the constant vector material properties.
GenericConstantVectorMaterialTempl(const InputParameters &parameters)
unsigned int _num_props
The number of constant vector material properties defined.