www.mooseframework.org
SusceptibilityTimeDerivative.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "TimeDerivative.h"
13 #include "ADTimeDerivative.h"
14 #include "JvarMapInterface.h"
16 
21 template <bool is_ad>
23  typename std::conditional<is_ad, ADTimeDerivative, TimeDerivative>::type;
24 
25 template <bool is_ad>
28  JvarMapKernelInterface<SusceptibilityTimeDerivativeBase<is_ad>>>
29 {
30 public:
32 
34 
35 protected:
38 };
39 
41 {
42 public:
44  virtual void initialSetup() override;
45 
46 protected:
47  virtual Real computeQpResidual() override;
48  virtual Real computeQpJacobian() override;
49  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
50 
53 
55  std::vector<const MaterialProperty<Real> *> _dChidarg;
56 };
57 
59 {
60 public:
62 
63 protected:
64  virtual ADReal precomputeQpResidual() override;
65 };
std::vector< const MaterialProperty< Real > * > _dChidarg
susceptibility derivatives w.r.t. coupled variables
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
typename std::conditional< is_ad, ADTimeDerivative, TimeDerivative >::type SusceptibilityTimeDerivativeBase
This calculates the time derivative for a variable multiplied by a generalized susceptibility.
virtual ADReal precomputeQpResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
SusceptibilityTimeDerivativeTempl(const InputParameters &parameters)
SusceptibilityTimeDerivative(const InputParameters &parameters)
const GenericMaterialProperty< Real, is_ad > & _Chi
susceptibility
const MaterialProperty< Real > & _dChidu
susceptibility derivative w.r.t. the kernel variable