https://mooseframework.inl.gov
KokkosVectorDiffusion.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 "KokkosVectorKernelGrad.h"
13 
19 {
20 public:
22 
24 
25  template <typename Derived>
26  KOKKOS_FUNCTION Moose::Kokkos::Real33 precomputeQpResidual(const unsigned int qp,
27  AssemblyDatum & datum) const;
28  template <typename Derived>
29  KOKKOS_FUNCTION Moose::Kokkos::Real33
30  precomputeQpJacobian(const unsigned int j, const unsigned int qp, AssemblyDatum & datum) const;
31 };
32 
33 template <typename Derived>
34 KOKKOS_FUNCTION Moose::Kokkos::Real33
35 KokkosVectorDiffusion::precomputeQpResidual(const unsigned int qp, AssemblyDatum & datum) const
36 {
37  return _grad_u(datum, qp);
38 }
39 
40 template <typename Derived>
41 KOKKOS_FUNCTION Moose::Kokkos::Real33
43  const unsigned int qp,
44  AssemblyDatum & datum) const
45 {
46  return _grad_phi(datum, j, qp);
47 }
KOKKOS_FUNCTION Moose::Kokkos::Real33 precomputeQpJacobian(const unsigned int j, const unsigned int qp, AssemblyDatum &datum) const
const VectorVariablePhiGradient _grad_phi
Gradient of the current vector shape function.
The base class for Kokkos vector kernels where the residual is of the form.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
KokkosVectorDiffusion(const InputParameters &parameters)
KOKKOS_FUNCTION Moose::Kokkos::Real33 precomputeQpResidual(const unsigned int qp, AssemblyDatum &datum) const
const VectorVariableGradient _grad_u
Gradient of the current vector solution at quadrature points.
This vector kernel implements the Laplacian operator: $ {u} : {}$.
static InputParameters validParams()
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels...
Definition: KokkosDatum.h:559