42 KOKKOS_FUNCTION
inline Real 53 KOKKOS_FUNCTION
inline Real 57 Real integral_value = 0.0;
59 for (
unsigned int i = 0; i <
_order; ++i)
77 Real term1 = (x2 - x0) * (y0 + (x2 - x0) * (y1 - y0) / (2.0 * (x1 - x0)));
78 Real term2 = (2.0 * x2 * x2 - x0 * x2 - x0 * x0 + 3.0 * x0 * x1 - 3.0 * x1 * x2) / 6.0;
79 Real term3 = (y2 - y1) / (x2 - x1) - (y1 - y0) / (x1 - x0);
80 integral_value = term1 + term2 * term3;
83 return integral_value;
Moose::Kokkos::Array< Moose::Kokkos::VariableValue > _coupled_vars
const Moose::Kokkos::VariableValue _u_old
The old variable value (zero if order == 3)
The base class for a user to derive their own Kokkos auxiliary kernels.
const InputParameters & parameters() const
Get the parameters of the object.
KokkosVariableTimeIntegrationAux(const InputParameters ¶meters)
const Moose::Kokkos::VariableValue _u_older
The older variable value (zero if order != 3)
KOKKOS_FUNCTION Real computeValue(const unsigned int qp, AssemblyDatum &datum) const
Moose::Kokkos::Array< Real > _integration_coef
const unsigned int _order
An AuxKernel that can be used to integrate a field variable in time using a variety of different inte...
KOKKOS_FUNCTION Real getIntegralValue(const unsigned int qp, AssemblyDatum &datum) const
Scalar< Real > _dt_old
Size of the old time step.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
The Kokkos object that holds thread-private data in the parallel operations of Kokkos kernels...
The Kokkos wrapper classes for MOOSE-like variable value access.
Scalar< Real > _dt
Time step size.
static InputParameters validParams()