https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GenericRayKernel.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 "RayKernel.h"
13#include "ADRayKernel.h"
14
15template <bool is_ad>
22
23template <>
24class GenericRayKernel<true> : public ADRayKernel
25{
26public:
29
30protected:
35 virtual ADReal computeQpJacobian() { return 0; }
36
41 virtual ADReal computeQpOffDiagJacobian(const unsigned int) { return 0; }
42
47 virtual void precalculateJacobian() {}
48
53 virtual void precalculateOffDiagJacobian(const unsigned int) {}
54};
55
56#define usingGenericRayKernelMembers \
57 usingRayKernelBaseMembers; \
58 usingTaggingInterfaceMembers; \
59 using GenericRayKernel<is_ad>::_qp; \
60 using GenericRayKernel<is_ad>::_i; \
61 using GenericRayKernel<is_ad>::_j; \
62 using GenericRayKernel<is_ad>::_u; \
63 using GenericRayKernel<is_ad>::_phi; \
64 using GenericRayKernel<is_ad>::_test; \
65 using GenericRayKernel<is_ad>::_q_point; \
66 using GenericRayKernel<is_ad>::_var; \
67 using GenericRayKernel<is_ad>::getVar; \
68 using Coupleable::coupled; \
69 using Coupleable::coupledComponents; \
70 using Coupleable::coupledGenericValue
DualNumber< Real, DNDerivativeType, true > ADReal
Base class for an AD ray kernel that contributes to the residual and/or Jacobian.
Definition ADRayKernel.h:34
static InputParameters validParams()
Definition ADRayKernel.C:22
virtual void precalculateJacobian()
Dummy virtual that will never be called but is used in derived classes that override precalculateJaco...
static InputParameters validParams()
virtual ADReal computeQpJacobian()
Dummy virtual that will never be called but is used in derived classes that override computeJacobian(...
virtual void precalculateOffDiagJacobian(const unsigned int)
Dummy virtual that will never be called but is used in derived classes that override precalculateOffD...
virtual ADReal computeQpOffDiagJacobian(const unsigned int)
Dummy virtual that will never be called but is used in derived classes that override computeQpOffDiag...
GenericRayKernel(const InputParameters &parameters)
GenericRayKernel(const InputParameters &parameters)
static InputParameters validParams()
const InputParameters & parameters() const
Base class for a ray kernel that contributes to the residual and/or Jacobian.
Definition RayKernel.h:34
static InputParameters validParams()
Definition RayKernel.C:21