Simulation parameter handling
[Tools]

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.

Detailed Description

This module contains functions to handle the simulation parameters


Function Documentation

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.

Parameters:
[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
Returns:
Returns True if script has been generated successfully, false else.

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.

Parameters:
[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
Returns:
Returns True if script has been generated successfully, false else.

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

Parameters:
[in] exeName Name of the executable
Returns:
Returns True if script has been generated successfully, false else.

Definition at line 548 of file gpu_tools.cu.

References generateScript().

Referenced by main().

bool setCudaDevice ( int  gpuDevNo  ) 

Set the GPU device.

Parameters:
[in] gpuDevNo id number od the GPU device to use
Returns:
bool

Definition at line 522 of file gpu_tools.cu.

Referenced by main().

 All Files Functions Defines

Generated on Thu Jun 17 14:22:54 2010 for mdgpu - a molecular dynamic simulation program using GPUs by  doxygen 1.6.1