metadynamics
Functions
LamellarOrderParameterGPU.cu File Reference

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_waveNumber of modes
d_wave_vectorsDevice array of wave vectors
n_particlesNumber of particles
d_postypeDevice array of particle positions and types
d_modeDevice array of per-type mode coefficients
d_fourier_modesThe fourier modes (Output device array)
d_phasesDevice 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:
NNumber of particles
d_postypeArray of particle positions and types
d_forceArray of per-particle forces
d_virialArray of virial matrix elements per-particle
n_waveNumber of modes
d_wave_vectorsDevice array of wave vectors
d_modeDevice array of per-type mode coefficients
global_boxDimensions of the global simulation box
biasThe bias factor to multiply the forces with
d_phasesDevice array of per-mode phase shifts
Returns:
the CUDA status