https://mooseframework.inl.gov
CoupledVariableValueMaterial.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 
17 template <bool is_ad>
19 {
20 public:
22 
23 protected:
24  virtual void computeQpProperties() override;
25 
27  const MaterialPropertyName & _prop_name;
33 
34 public:
36 };
37 
CoupledVariableValueMaterialTempl< true > ADCoupledVariableValueMaterial
CoupledVariableValueMaterialTempl(const InputParameters &parameters)
Stores values of a variable into material properties.
CoupledVariableValueMaterialTempl< false > CoupledVariableValueMaterial
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
OutputTools< Real >::VariableValue VariableValue
const VariableValue & _value
The coupled variable values.
const InputParameters & parameters() const
GenericMaterialProperty< Real, is_ad > & _prop
Storage for the variable values.
const MaterialPropertyName & _prop_name
The name of the material property where the values will be stored.