Peka2D_v5
v5.0
|
#include "loadData.h"
Functions | |
EXPORT_DLL int | loadControlParameters (Peka2D_Setup *pksetup, t_parameters *spar, t_mesh *mesh, t_message *msg) |
This function loads control parameters. More... | |
EXPORT_DLL int | readControlDataFile (char *filename, Peka2D_Setup *pksetup, t_message *msg) |
This function reads control parameters from file .DAT. More... | |
EXPORT_DLL int | setControlParameters (Peka2D_Setup *pksetup, t_parameters *spar, t_mesh *mesh, t_message *msg) |
This function passes the simulation execution paramenters from pksetup to spar. More... | |
EXPORT_DLL int | loadMeshData (Peka2D_Setup *pksetup, t_parameters *spar, t_mesh *mesh, t_message *msg) |
This function creates the mesh data structure into variable mesh. More... | |
int | IsMeshAllocated (t_mesh *mesh, t_message *e) |
This function checks if the mesh is properly allocated. More... | |
int | readMeshFile (char *filename, Peka2D_Setup *pksetup, t_mesh *mesh, t_message *e) |
This function reads the mesh data from file and stores it in variable mesh. More... | |
int | setInitialState (Peka2D_Setup *pksetup, t_parameters *spar, t_mesh *mesh, t_message *e) |
This function initializes all the computational variables (water depth, water discharge, etc.) in variable mesh. More... | |
int | loadBoundaryConditions (Peka2D_Setup *pksetup, t_parameters *spar, t_mesh *mesh, t_message *e) |
This function loads the general setting of the boundary conditions. More... | |
int | readOpenBoundaryNodes (char *filename, int nnodes, Peka2D_NodeBoundary *nbc, t_message *e) |
This function reads the number of open boundary nodes. More... | |
int | createOpenBounds (Peka2D_NodeBoundary *nbc, Peka2D_OBCWalls *IOBC, Peka2D_OBCWalls *OOBC, t_parameters *spar, t_mesh *mesh, t_message *e) |
This function creates the inlet/outlet structure of the open boundaries. More... | |
int | readOpenBoundaryFile (char *filename, Peka2D_NodeBoundary *nbc, Peka2D_OBCWalls *IOBC, Peka2D_OBCWalls *OOBC, t_parameters *spar, t_mesh *mesh, t_message *e) |
This function reads the data of the inlet and outlet open boundaries (hydrographs) from external files and stores it in mesh. More... | |
EXPORT_DLL int | loadSoluteData (Peka2D_Setup *pksetup, t_parameters *spar, t_mesh *mesh, t_message *msg) |
int | readSoluteFile (char *filename, Peka2D_SoluteGroup *soluteGroup, t_message *e) |
int | createSoluteStructures (Peka2D_SoluteGroup *soluteGroup, t_parameters *spar, t_mesh *mesh, t_message *e) |
int | setInitialSoluteState (Peka2D_SoluteGroup *soluteGroup, t_parameters *spar, t_mesh *mesh, t_message *e) |
int createOpenBounds | ( | Peka2D_NodeBoundary * | nbc, |
Peka2D_OBCWalls * | IOBC, | ||
Peka2D_OBCWalls * | OOBC, | ||
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
This function creates the inlet/outlet structure of the open boundaries.
nbc | This structure variable contains all the information of the boundary nodes. |
IOBC | This variable contains the information of the inlet open boundary walls. |
OOBC | This variable contains the information of the inlet open boundary walls. |
int createSoluteStructures | ( | Peka2D_SoluteGroup * | soluteGroup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
This function checks if the mesh is properly allocated.
e | This variable notifies if the mesh is not properly allocated. |
int loadBoundaryConditions | ( | Peka2D_Setup * | pksetup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
This function loads the general setting of the boundary conditions.
EXPORT_DLL int loadControlParameters | ( | Peka2D_Setup * | pksetup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | msg | ||
) |
This function loads control parameters.
EXPORT_DLL int loadMeshData | ( | Peka2D_Setup * | pksetup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | msg | ||
) |
This function creates the mesh data structure into variable mesh.
mesh | This variable is created to contain the structure variables of the computational mesh. |
EXPORT_DLL int loadSoluteData | ( | Peka2D_Setup * | pksetup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | msg | ||
) |
EXPORT_DLL int readControlDataFile | ( | char * | filename, |
Peka2D_Setup * | pksetup, | ||
t_message * | msg | ||
) |
This function reads control parameters from file .DAT.
filename | This variable passes the name of the data file to read in this the function. |
pksetup | This variable gets the information file in this function. |
int readMeshFile | ( | char * | filename, |
Peka2D_Setup * | pksetup, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
This function reads the mesh data from file and stores it in variable mesh.
filename | This variable passes the name of the data file to read in this the function. |
mesh | This variable receives the mesh data read from file. |
int readOpenBoundaryFile | ( | char * | filename, |
Peka2D_NodeBoundary * | nbc, | ||
Peka2D_OBCWalls * | IOBC, | ||
Peka2D_OBCWalls * | OOBC, | ||
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
This function reads the data of the inlet and outlet open boundaries (hydrographs) from external files and stores it in mesh.
filename | This variable passes the name of the file from which the open boundary data is read. |
int readOpenBoundaryNodes | ( | char * | filename, |
int | nnodes, | ||
Peka2D_NodeBoundary * | nbc, | ||
t_message * | e | ||
) |
This function reads the number of open boundary nodes.
filename | This variable passes the name of the file to read the open boundary conditions in this the function. |
int readSoluteFile | ( | char * | filename, |
Peka2D_SoluteGroup * | soluteGroup, | ||
t_message * | e | ||
) |
EXPORT_DLL int setControlParameters | ( | Peka2D_Setup * | pksetup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | msg | ||
) |
This function passes the simulation execution paramenters from pksetup to spar.
spar | This variable gets the simulation execution paramenters passed from pksetup in this function. |
int setInitialSoluteState | ( | Peka2D_SoluteGroup * | soluteGroup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
int setInitialState | ( | Peka2D_Setup * | pksetup, |
t_parameters * | spar, | ||
t_mesh * | mesh, | ||
t_message * | e | ||
) |
This function initializes all the computational variables (water depth, water discharge, etc.) in variable mesh.
mesh | In this function, variable mesh receives the initialization of the computational variables. |