![]() |
GPUE
v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
|
Functions | |
| double2 * | readIn (std::string fileR, std::string fileI, int gSize) |
| Reads in the real and imaginary components from text files. More... | |
| void | writeOut (std::string buffer, std::string file, double2 *data, int length, int step) |
| Writes the specified double2 array to a text file. More... | |
| void | writeOutDouble (std::string buffer, std::string file, double *data, int length, int step) |
| Writes the specified double array to a text file. More... | |
| void | writeOutBool (std::string buffer, std::string file, bool *data, int length, int step) |
| Writes the specified double array to a text file. More... | |
| void | writeOutInt (std::string buffer, std::string file, int *data, int length, int step) |
| Writes the specified int array to a text file. More... | |
| void | writeOutInt2 (std::string buffer, std::string file, int2 *data, int length, int step) |
| Writes the specified int2 array to a text file. More... | |
| void | writeOutVortex (std::string buffer, std::string file, std::vector< std::shared_ptr< Vtx::Vortex >> &data, int step) |
| Writes the specified Vtx::Vortex array to a text file. More... | |
| void | writeOutParam (std::string buffer, Grid &par, std::string file) |
| Writes the parameter file. More... | |
| int | readState (std::string name) |
| void | writeOutAdjMat (std::string buffer, std::string file, int *mat, unsigned int *uids, int dim, int step) |
| Write adjacency matrix of ints to a file in Mathematica readable format. More... | |
| void | writeOutAdjMat (std::string buffer, std::string file, double *mat, unsigned int *uids, int dim, int step) |
| Write adjacency matrix of doubles to a file in Mathematica readable format. More... | |
Check source file for further information on functions
| double2* FileIO::readIn | ( | std::string | fileR, |
| std::string | fileI, | ||
| int | gSize | ||
| ) |
Reads in the real and imaginary components from text files.
| *fileR | Name of data file of real components |
| *fileI | Name of data file of imaginary components |
| xDim | Size of x-grid |
| yDim | Size of y-grid |
| int FileIO::readState | ( | std::string | name | ) |
| void FileIO::writeOut | ( | std::string | buffer, |
| std::string | file, | ||
| double2 * | data, | ||
| int | length, | ||
| int | step | ||
| ) |
Writes the specified double2 array to a text file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *data | double2 array to be written out |
| length | Overall length of the file to write out |
| step | Index for the filename. file_step,filei_step |
| void FileIO::writeOutAdjMat | ( | std::string | buffer, |
| std::string | file, | ||
| int * | mat, | ||
| unsigned int * | uids, | ||
| int | dim, | ||
| int | step | ||
| ) |
Write adjacency matrix of ints to a file in Mathematica readable format.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *mat | Int Array holding the parameter values to be written out |
| *uids | UID array |
| dim | Dimension/length of the grid (xDim*yDim) |
| step | Index for the filename. |
| void FileIO::writeOutAdjMat | ( | std::string | buffer, |
| std::string | file, | ||
| double * | mat, | ||
| unsigned int * | uids, | ||
| int | dim, | ||
| int | step | ||
| ) |
Write adjacency matrix of doubles to a file in Mathematica readable format.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *mat | double Array holding the parameter values to be written out |
| *uids | UID array |
| dim | Dimension/length of the grid (xDim*yDim) |
| step | Index for the filename. |
| void FileIO::writeOutBool | ( | std::string | buffer, |
| std::string | file, | ||
| bool * | data, | ||
| int | length, | ||
| int | step | ||
| ) |
Writes the specified double array to a text file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *data | bool array to be written out |
| length | Overall length of the file to write out |
| step | Index for the filename. file_step |
| void FileIO::writeOutDouble | ( | std::string | buffer, |
| std::string | file, | ||
| double * | data, | ||
| int | length, | ||
| int | step | ||
| ) |
Writes the specified double array to a text file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *data | double array to be written out |
| length | Overall length of the file to write out |
| step | Index for the filename. file_step |
| void FileIO::writeOutInt | ( | std::string | buffer, |
| std::string | file, | ||
| int * | data, | ||
| int | length, | ||
| int | step | ||
| ) |
Writes the specified int array to a text file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *data | int array to be written out |
| length | Overall length of the file to write out |
| step | Index for the filename. file_step |
| void FileIO::writeOutInt2 | ( | std::string | buffer, |
| std::string | file, | ||
| int2 * | data, | ||
| int | length, | ||
| int | step | ||
| ) |
Writes the specified int2 array to a text file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *data | int2 array to be written out |
| length | Overall length of the file to write out |
| step | Index for the filename. file_step |
| void FileIO::writeOutParam | ( | std::string | buffer, |
| Grid & | par, | ||
| std::string | file | ||
| ) |
Writes the parameter file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| arr | struct Array holding the parameter values to be written out |
| *file | Name of data file name for saving to |
| void FileIO::writeOutVortex | ( | std::string | buffer, |
| std::string | file, | ||
| std::vector< std::shared_ptr< Vtx::Vortex >> & | data, | ||
| int | step | ||
| ) |
Writes the specified Vtx::Vortex array to a text file.
| *buffer | Char buffer for use by function internals. char[100] usually |
| *file | Name of data file name for saving to |
| *data | Vtx::Vortex array to be written out |
| step | Index for the filename. file_step |