Functions | |
bool | generateRestartScript (std::string exeName, std::string basename, int dim, int N, int numNN, float T, float k, float boxSize, float dt, int NOffset, int NSim, int NOut, int NAdjust, int gpuDevNo) |
Generates a startup script to continue the simulation. | |
bool | generateScript (std::string scriptname, std::string exeName, std::string inputfile, std::string basename, int dim, int N, int numNN, float T, float k, float boxSize, float dt, int NOffset, int NSim, int NOut, int NAdjust, int gpuDevNo) |
Generic startup script generator. | |
bool | generateStartScript (std::string exeName) |
Generates a generic startup script. | |
bool | setCudaDevice (int gpuDevNo) |
Set the GPU device. |
This module contains functions to handle the simulation parameters
bool generateRestartScript | ( | std::string | exeName, | |
std::string | basename, | |||
int | dim, | |||
int | N, | |||
int | numNN, | |||
float | T, | |||
float | k, | |||
float | boxSize, | |||
float | dt, | |||
int | NOffset, | |||
int | NSim, | |||
int | NOut, | |||
int | NAdjust, | |||
int | gpuDevNo | |||
) |
Generates a startup script to continue the current simulation.
[in] | exeName | Name of the executable |
[in] | basename | Base output filename of the simulation data |
[in] | dim | System dimenstion |
[in] | N | Number of particle |
[in] | numNN | Maximum number of nearest neighbors |
[in] | T | Temperature |
[in] | k | Spring constant |
[in] | boxSize | Edge length of the cubic simulation box |
[in] | dt | Time increment |
[in] | NOffset | Offset number of simulation steps |
[in] | NSim | Final step count |
[in] | NOut | Interval of data output |
[in] | NAdjust | NVT velocity scaling and drift removal intervall |
[in] | gpuDevNo | Selects the CUDA device |
Definition at line 571 of file gpu_tools.cu.
References generateScript().
bool generateScript | ( | std::string | scriptname, | |
std::string | exeName, | |||
std::string | inputfile, | |||
std::string | basename, | |||
int | dim, | |||
int | N, | |||
int | numNN, | |||
float | T, | |||
float | k, | |||
float | boxSize, | |||
float | dt, | |||
int | NOffset, | |||
int | NSim, | |||
int | NOut, | |||
int | NAdjust, | |||
int | gpuDevNo | |||
) |
Generic startup script generator.
[in] | scriptname | Name of the script |
[in] | exeName | Name of the executable |
[in] | inputfile | Initial data input file name |
[in] | basename | Base output filename of the simulation data |
[in] | dim | System dimenstion |
[in] | N | Number of particle |
[in] | numNN | Maximum number of nearest neighbors |
[in] | T | Temperature |
[in] | k | Spring constant |
[in] | boxSize | Edge length of the cubic simulation box |
[in] | dt | Time increment |
[in] | NOffset | Offset number of simulation steps |
[in] | NSim | Final step count |
[in] | NOut | Interval of data output |
[in] | NAdjust | NVT velocity scaling and drift removal intervall |
[in] | gpuDevNo | Selects the CUDA device |
Definition at line 591 of file gpu_tools.cu.
Referenced by generateRestartScript(), and generateStartScript().
bool generateStartScript | ( | std::string | exeName | ) |
Generates a generic startup script with parameters fitting to the example file located at example\N16_T0.5_g2.0_k0.1_init.dat
[in] | exeName | Name of the executable |
Definition at line 548 of file gpu_tools.cu.
References generateScript().
Referenced by main().
bool setCudaDevice | ( | int | gpuDevNo | ) |
Set the GPU device.
[in] | gpuDevNo | id number od the GPU device to use |
Definition at line 522 of file gpu_tools.cu.
Referenced by main().