24 std::vector<std::string> &
split(
const std::string &s,
char delim, std::vector<std::string> &elems);
27 std::vector<std::string>
split(
const std::string &s,
char delim);
63 template <
typename Vector>
64 void writeData(std::string &caseFolder,
int n, Vector &q, Vector &lambda,
domain &D);
67 void readData(std::string &caseFolder,
int timeStep,
real *x, std::string name);
Monitors the time spent to achieve a certain task.
void readInputs(int argc, char **argv, parameterDB &DB, domain &D)
Reads data inputs from the command-line and the simulation files.
Definition of custom types required by the code.
void parseFlowFile(std::string &flowFile, parameterDB &DB)
Parses the flow file and stores the parameters in the database.
std::vector< std::string > & split(const std::string &s, char delim, std::vector< std::string > &elems)
Splits a string given a delimiter.
double real
Is a float or a double depending on the machine precision.
void readData(std::string &caseFolder, int timeStep, real *x, std::string name)
Reads numerical data at a given time-step.
Declaration of the class bodies.
void commandLineParse1(int argc, char **argv, parameterDB &DB)
Parses the command-line to get the case folder name and the device number.
void parseSimulationFile(std::string &simFile, parameterDB &DB)
Parses simParams.yaml and stores the simulation parameters.
std::map< std::string, componentParameter > parameterDB
Map from a string to a componentParameter.
void printTimingInfo(Logger &logger)
Prints the time spent to execute tasks.
Contains functions related to I/O tasks.
Stores information about the computational grid.
Declaration of the class property.
void writeGrid(std::string &caseFolder, domain &D)
Writes grid-points coordinates into the file grid.
void initialiseDefaultDB(parameterDB &DB)
Initializes the database with default values.
void parseBodiesFile(std::string &bodiesFile, parameterDB &DB)
Parses the bodies.yaml file and stores information about the immersed bodies.
void printSimulationInfo(parameterDB &DB, domain &D)
Prints the parameters of the simulation.
void printDeviceMemoryUsage(std::string label)
Prints device memory usage.
Definition of the class domain.
void parseDomainFile(std::string &domFile, domain &D)
Parses the domain file and generates the computational grid.
void commandLineParse2(int argc, char **argv, parameterDB &DB)
Overwrites parameters with additional arguments of the command-line.
void writeData(std::string &caseFolder, int n, Vector &q, Vector &lambda, domain &D)