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