CUDA implementation of LamellarOrderParameter GPU routines.
More...
Functions |
__global__ void | kernel_calculate_sq_partial (int n_particles, cuComplex *fourier_mode_partial, Scalar4 *postype, int n_wave, Scalar3 *wave_vectors, Scalar *d_modes, Scalar *phases) |
__global__ void | kernel_final_reduce_fourier_modes (cuComplex *fourier_mode_partial, unsigned int nblocks, Scalar2 *fourier_modes, unsigned int n_wave) |
cudaError_t | gpu_calculate_fourier_modes (unsigned int n_wave, Scalar3 *d_wave_vectors, unsigned int n_particles, Scalar4 *d_postype, Scalar *d_mode, Scalar2 *d_fourier_modes, Scalar *d_phases) |
__global__ void | kernel_compute_sq_forces (unsigned int N, Scalar4 *postype, Scalar4 *force, Scalar *virial, unsigned int n_wave, Scalar3 *wave_vectors, Scalar *mode, Scalar V, Scalar bias, Scalar *phases) |
cudaError_t | gpu_compute_sq_forces (unsigned int N, Scalar4 *d_postype, Scalar4 *d_force, Scalar *d_virial, unsigned int n_wave, Scalar3 *d_wave_vectors, Scalar *d_mode, const BoxDim global_box, Scalar bias, Scalar *d_phases) |
Detailed Description
CUDA implementation of LamellarOrderParameter GPU routines.
Function Documentation
cudaError_t gpu_calculate_fourier_modes |
( |
unsigned int |
n_wave, |
|
|
Scalar3 * |
d_wave_vectors, |
|
|
unsigned int |
n_particles, |
|
|
Scalar4 * |
d_postype, |
|
|
Scalar * |
d_mode, |
|
|
Scalar2 * |
d_fourier_modes, |
|
|
Scalar * |
d_phases |
|
) |
| |
Calculates the fourier modes for the collective variable
- Parameters:
-
n_wave | Number of modes |
d_wave_vectors | Device array of wave vectors |
n_particles | Number of particles |
d_postype | Device array of particle positions and types |
d_mode | Device array of per-type mode coefficients |
d_fourier_modes | The fourier modes (Output device array) |
d_phases | Device array of per-mode phase shifts |
- Returns:
- the CUDA status
cudaError_t gpu_compute_sq_forces |
( |
unsigned int |
N, |
|
|
Scalar4 * |
d_postype, |
|
|
Scalar4 * |
d_force, |
|
|
Scalar * |
d_virial, |
|
|
unsigned int |
n_wave, |
|
|
Scalar3 * |
d_wave_vectors, |
|
|
Scalar * |
d_mode, |
|
|
const BoxDim |
global_box, |
|
|
Scalar |
bias, |
|
|
Scalar * |
d_phases |
|
) |
| |
Calculates the negative derivative of the collective variable with respect to particle positions
- Parameters:
-
N | Number of particles |
d_postype | Array of particle positions and types |
d_force | Array of per-particle forces |
d_virial | Array of virial matrix elements per-particle |
n_wave | Number of modes |
d_wave_vectors | Device array of wave vectors |
d_mode | Device array of per-type mode coefficients |
global_box | Dimensions of the global simulation box |
bias | The bias factor to multiply the forces with |
d_phases | Device array of per-mode phase shifts |
- Returns:
- the CUDA status