https://mooseframework.inl.gov
CoupledValueFunctionMaterial.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 class Function;
15 
19 template <bool is_ad>
21 {
22 public:
24 
26 
27 protected:
28  void computeQpProperties() override;
29 
32 
35 
37  std::vector<unsigned int> _order;
38 
40  std::vector<const GenericVariableValue<is_ad> *> _vals;
41 
43  unsigned int _nvals;
44 };
45 
CoupledValueFunctionMaterialTempl< true > ADCoupledValueFunctionMaterial
void computeQpProperties() override
Users must override this method.
Base class for function objects.
Definition: Function.h:36
std::vector< const GenericVariableValue< is_ad > * > _vals
coupled variables to evaluate the function with
unsigned int _nvals
number of coupled variables
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
GenericMaterialProperty< Real, is_ad > & _prop
output material property
CoupledValueFunctionMaterialTempl(const InputParameters &parameters)
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
Materials compute MaterialProperties.
Definition: Material.h:34
Compute a function value from coupled variables.
std::vector< unsigned int > _order
mapping of variables to function parameters
const Function & _function
input function
const InputParameters & parameters() const
Get the parameters of the object.
CoupledValueFunctionMaterialTempl< false > CoupledValueFunctionMaterial