45 template <
typename Derived>
51 template <
typename Derived>
57 "Default computeQpOffDiagJacobian() should never be called. Make sure you properly "
58 "redefined this method in your class without typos.");
69 template <
typename Derived>
72 return &VectorNodalBC::computeQpJacobian<Derived>;
74 template <
typename Derived>
77 return &VectorNodalBC::computeQpOffDiagJacobian<Derived>;
85 template <
typename Derived>
86 KOKKOS_FUNCTION
void operator()(ResidualLoop,
const ThreadID tid,
const Derived & bc)
const;
87 template <
typename Derived>
88 KOKKOS_FUNCTION
void operator()(JacobianLoop,
const ThreadID tid,
const Derived & bc)
const;
89 template <
typename Derived>
101template <
typename Derived>
113 Real3 local_re = bc.template computeQpResidual<Derived>(0, datum);
115 for (
unsigned int comp = 0; comp <
_dimension; ++comp)
119template <
typename Derived>
131 Real3 local_ke = bc.template computeQpJacobian<Derived>(0, datum);
133 for (
unsigned int comp = 0; comp <
_dimension; ++comp)
137template <
typename Derived>
150 Real3 local_ke = bc.template computeQpOffDiagJacobian<Derived>(jvar, 0, datum);
152 for (
unsigned int comp = 0; comp <
_dimension; ++comp)
KOKKOS_FUNCTION ContiguousNodeID kokkosBoundaryNodeID(Moose::Kokkos::ThreadID tid) const
Get the contiguous node ID this Kokkos thread is operating on.
const InputParameters & parameters() const
Get the parameters of the object.
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels.
KOKKOS_FUNCTION const Assembly & kokkosAssembly() const
Get the const reference of the Kokkos assembly.
The base class for Kokkos nodal boundary conditions.
KOKKOS_FUNCTION void accumulateTaggedVectorNodalMatrix(const bool add, const Real local_ke, const ContiguousNodeID node, const unsigned int i, const unsigned int j, const unsigned int jvar) const
Accumulate or set local nodal Jacobian contribution to tagged matrices for vector FE variables.
Variable _kokkos_var
Kokkos variable.
Thread _thread
Kokkos thread object.
const unsigned int _dimension
Mesh dimension.
KOKKOS_FUNCTION void accumulateTaggedVectorNodalResidual(const bool add, const Real local_re, const ContiguousNodeID node, const unsigned int i) const
Accumulate or set local nodal residual contribution to tagged vectors for vector FE variables.
KOKKOS_FUNCTION unsigned int var(unsigned int comp=0) const
Get the variable number of a component.
KOKKOS_FUNCTION unsigned int sys(unsigned int comp=0) const
Get the system number of a component.
The base class for a user to derive their own Kokkos nodal boundary conditions on vector variables.
static auto defaultJacobian()
Functions used to check if users have overriden the hook methods, whose calculations can be skipped w...
KOKKOS_FUNCTION void operator()(ResidualLoop, const ThreadID tid, const Derived &bc) const
The parallel computation entry functions called by Kokkos.
KOKKOS_FUNCTION Real computeQpOffDiagJacobian(const unsigned int, const unsigned int, AssemblyDatum &) const
VectorNodalBC(const InputParameters ¶meters)
Constructor.
const VectorVariableValue _u
Current vector solution at nodes.
virtual void computeResidual() override
Dispatch residual calculation.
static InputParameters validParams()
static auto defaultOffDiagJacobian()
virtual void computeJacobian() override
Dispatch diagonal and off-diagonal Jacobian calculation.
KOKKOS_FUNCTION Real3 computeQpJacobian(const unsigned int, AssemblyDatum &) const
Default methods to prevent compile errors even when these methods were not defined in the derived cla...
MOOSE_KOKKOS_INDEX_TYPE ThreadID