https://mooseframework.inl.gov
Loading...
Searching...
No Matches
KokkosFunctionDirichletBC.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
13#include "KokkosFunction.h"
14
18template <bool is_ad>
20{
21public:
23
25
26 KOKKOS_FUNCTION Real computeValue(const unsigned int qp, AssemblyDatum & datum) const
27 {
28 return _func.value(_t, datum.q_point(qp));
29 }
30
31protected:
34
36};
37
KokkosFunctionDirichletBCTempl< true > KokkosADFunctionDirichletBC
KokkosFunctionDirichletBCTempl< false > KokkosFunctionDirichletBC
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Imposes the essential boundary condition u = g(t, x), where g is a Kokkos function.
const Moose::Kokkos::Function _func
The function describing the Dirichlet condition.
static InputParameters validParams()
KOKKOS_FUNCTION Real computeValue(const unsigned int qp, AssemblyDatum &datum) const
KokkosFunctionDirichletBCTempl(const InputParameters &parameters)
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels.
KOKKOS_FUNCTION Real3 q_point(const unsigned int qp)
Get the physical quadrature point coordinate.
The base Kokkos boundary condition of a Dirichlet type.
The abstract class that provides polymorphic interfaces for a function.
KOKKOS_FUNCTION Real value(Real t, Real3 p) const