https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SusceptibilityTimeDerivative.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 "TimeDerivative.h"
13#include "ADTimeDerivative.h"
14#include "JvarMapInterface.h"
16
21template <bool is_ad>
23 typename std::conditional<is_ad, ADTimeDerivative, TimeDerivative>::type;
24
25template <bool is_ad>
28 JvarMapKernelInterface<SusceptibilityTimeDerivativeBase<is_ad>>>
29{
30public:
32
34
35protected:
38};
39
41{
42public:
44 virtual void initialSetup() override;
45
46protected:
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
DualNumber< Real, DNDerivativeType, true > ADReal
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
const GenericMaterialProperty< Real, is_ad > & _Chi
susceptibility
std::vector< const MaterialProperty< Real > * > _dChidarg
susceptibility derivatives w.r.t. coupled variables
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< Real > & _dChidu
susceptibility derivative w.r.t. the kernel variable