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