https://mooseframework.inl.gov
MaterialPropertyValue.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 "KernelValue.h"
13 #include "ADKernelValue.h"
14 
15 // switch parent class depending on is_ad value
16 template <bool is_ad>
17 using KernelValueParent = typename std::conditional<is_ad, ADKernelValue, KernelValue>::type;
18 
19 template <bool is_ad>
21 {
22 public:
24 
25  MaterialPropertyValueTempl(const InputParameters & parameters);
26 
27 protected:
29  virtual Real precomputeQpJacobian();
30 
33 
38 };
39 
static InputParameters validParams()
Moose::GenericType< Real, is_ad > GenericReal
Definition: MooseTypes.h:648
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
typename std::conditional< is_ad, ADKernelValue, KernelValue >::type KernelValueParent
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
virtual Real precomputeQpJacobian()
virtual GenericReal< is_ad > precomputeQpResidual()
MaterialPropertyValueTempl(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const GenericMaterialProperty< Real, is_ad > & _prop