This utility code reads in the *.top file information and generates the initial particle solution by finding the injecting surfaces. More...
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
Go to the source code of this file.
Functions | |
void | showUsage () |
Displays usage information for this utility. More... | |
bool | parseCmdParameters (int argc, char **argv) |
Parses the user-supplied parameters for this utility. More... | |
void | searchTopFile () |
Searches the prjname.top file for injecting boundary conditions. More... | |
int | main (int argc, char **argv) |
Program main. More... | |
Variables | |
std::string | prjname |
< More... | |
std::string | outputfile |
The number of blocks, read from the *.top file. More... | |
int | numberOfBlocks |
int | bndrycondition |
The boundary condition corresponding to an injecting surface. More... | |
This utility code reads in the *.top file information and generates the initial particle solution by finding the injecting surfaces.
The injecting surface are identified by a user-supplied boundary condition that corresponds to the boundary condition used to indicate an injecting surface in the *.top file.
Definition in file plagprep.C.
int main | ( | int | argc, |
char ** | argv | ||
) |
Program main.
argc | the argument counter. |
argv | the argument vector. |
Definition at line 76 of file plagprep.C.
References bndrycondition, outputfile, parseCmdParameters(), prjname, searchTopFile(), and showUsage().
bool parseCmdParameters | ( | int | argc, |
char ** | argv | ||
) |
Parses the user-supplied parameters for this utility.
argc | the argument counter. |
argv | the argument vector. |
Definition at line 183 of file plagprep.C.
References bndrycondition, i, numberOfBlocks, outputfile, prjname, and showUsage().
Referenced by main().
void searchTopFile | ( | ) |
Searches the prjname.top file for injecting boundary conditions.
Definition at line 113 of file plagprep.C.
References bndrycondition, i, j, numberOfBlocks, outputfile, and prjname.
Referenced by main().
void showUsage | ( | ) |
Displays usage information for this utility.
int bndrycondition |
The boundary condition corresponding to an injecting surface.
Supplied by the user and represents the boundary condition that will be searched in the prjname.top file.
Definition at line 42 of file plagprep.C.
Referenced by main(), parseCmdParameters(), and searchTopFile().
int numberOfBlocks |
Definition at line 35 of file plagprep.C.
Referenced by parseCmdParameters(), and searchTopFile().
std::string outputfile |
The number of blocks, read from the *.top file.
Definition at line 32 of file plagprep.C.
std::string prjname |
<
The project name, supplied by the user. The output file, computed based on prjname.
Definition at line 29 of file plagprep.C.
Referenced by main(), parseCmdParameters(), and searchTopFile().