accelerInt
v0.1
|
Classes | |
struct | solver_memory |
Memory required for Radau-IIa GPU solver. More... | |
Functions | |
__device__ Real | rkc_spec_rad (const Real t, const Real pr, const Real hmax, const Real *y, const Real *F, Real *v, Real *Fv, mechanism_memory const *const __restrict__ mech) |
__device__ void | rkc_step (const Real t, const Real pr, const Real h, const Real *y_0, const Real *F_0, const int s, Real *y_j, Real *y_jm1, Real *y_jm2, mechanism_memory const *const __restrict__ mech) |
__device__ void | integrate (const Real tstart, const Real tEnd, const Real pr, Real *y, mechanism_memory const *const __restrict__ mech, solver_memory const *const __restrict__ solver) |
__device__ void rkc_cu::integrate | ( | const Real | tstart, |
const Real | tEnd, | ||
const Real | pr, | ||
Real * | y, | ||
mechanism_memory const *const __restrict__ | mech, | ||
solver_memory const *const __restrict__ | solver | ||
) |
Driver function for RKC integrator.
t | the starting time. |
tEnd | the desired end time. |
pr | A parameter used for pressure or density to pass to the derivative function. |
y | Dependent variable array, integrated values replace initial conditions. |
mech | The mechanism_memory struct that contains the pre-allocated memory for the RHS \ Jacobian evaluation |
solver | The solver_memory struct that contains the pre-allocated memory for the solver |
__device__ void rkc_cu::rkc_step | ( | const Real | t, |
const Real | pr, | ||
const Real | h, | ||
const Real * | y_0, | ||
const Real * | F_0, | ||
const int | s, | ||
Real * | y_j, | ||
Real * | y_jm1, | ||
Real * | y_jm2, | ||
mechanism_memory const *const __restrict__ | mech | ||
) |
Function to take a single RKC integration step
t | the starting time. |
pr | A parameter used for pressure or density to pass to the derivative function. |
h | Time-step size. |
y_0 | Initial conditions. |
F_0 | Derivative function at initial conditions. |
s | number of steps. |
y_j | Integrated variables. |