https://mooseframework.inl.gov
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 
15 template <bool is_ad>
17 {
18 public:
21 };
22 
23 template <>
24 class GenericRayKernel<true> : public ADRayKernel
25 {
26 public:
29 
30 protected:
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
static InputParameters validParams()
virtual void precalculateJacobian()
Dummy virtual that will never be called but is used in derived classes that override precalculateJaco...
Base class for an AD ray kernel that contributes to the residual and/or Jacobian. ...
Definition: ADRayKernel.h:21
static InputParameters validParams()
Definition: RayKernel.C:21
static InputParameters validParams()
Definition: ADRayKernel.C:22
GenericRayKernel(const InputParameters &parameters)
virtual ADReal computeQpOffDiagJacobian(const unsigned int)
Dummy virtual that will never be called but is used in derived classes that override computeQpOffDiag...
Base class for a ray kernel that contributes to the residual and/or Jacobian.
Definition: RayKernel.h:21
virtual ADReal computeQpJacobian()
Dummy virtual that will never be called but is used in derived classes that override computeJacobian(...
GenericRayKernel(const InputParameters &parameters)
const InputParameters & parameters() const
virtual void precalculateOffDiagJacobian(const unsigned int)
Dummy virtual that will never be called but is used in derived classes that override precalculateOffD...
static InputParameters validParams()