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