https://mooseframework.inl.gov
GenericFunctorMaterial.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 "FunctorMaterial.h"
13 
19 template <bool is_ad>
21 {
22 public:
24 
26 
27 protected:
29  std::vector<std::string> _prop_names;
30 
32  std::vector<MooseFunctorName> _prop_values;
33 
35  unsigned int _num_props;
36 
38  std::vector<const Moose::Functor<GenericReal<is_ad>> *> _functors;
39 };
40 
std::vector< const Moose::Functor< GenericReal< is_ad > > * > _functors
Vector of the functors.
unsigned int _num_props
Number of properties to define.
std::vector< MooseFunctorName > _prop_values
Names of the functors to evaluate for those properties.
GenericFunctorMaterialTempl< true > ADGenericFunctorMaterial
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
GenericFunctorMaterialTempl(const InputParameters &parameters)
static InputParameters validParams()
FunctorMaterials compute functor material properties.
GenericFunctorMaterialTempl< false > GenericFunctorMaterial
This material automatically declares as functor material properties whatever is passed to it through ...
std::vector< std::string > _prop_names
Names of the functor material properties to define.
const InputParameters & parameters() const
Get the parameters of the object.