-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvisual.hpp
More file actions
72 lines (64 loc) · 2.15 KB
/
Copy pathvisual.hpp
File metadata and controls
72 lines (64 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#include "grid.hpp"
#include "datastructures.hpp"
#ifndef __VISUAL_HPP__
#define __VISUAL_HPP__
/**
* Method for writing header information in vtk format.
*
* The name of the file consists of the problem name (szProblem)
* and of the current time step. It gets the suffix .vtk.
*
* @param szProblem File pointer for writing info.
* @param timeStepNumber Number of the current time step to be printed.
* @param xlength Length in x-direction
* @param ylength Length in y-direction
* @param imax Maximum number of entries (?) in x-direction
* @param jmax Maximum number of entries (?) in y-direction
* @param dx Mesh size in x-direction
* @param dy Mesh size in x-direction
* @param U Velocities in x-direction
* @param V Velocities in y-direction
* @param P Pressure data
*
* @author Tobias Neckel
*/
void write_vtkFile(const char *szProblem,
int timeStepNumber,
Config& config,
MatrixXd& U,
MatrixXd& V,
MatrixXd& P,
MatrixXd& T,
matrix<int>& GeoArray);
/**
* Method for writing header information in vtk format.
*
* @param fp File pointer for writing info.
* @param imax Maximum number of entries (minus 2) in x-direction
* @param jmax Maximum number of entries (minus 2) in y-direction
* @param dx mesh size dx
* @param dy mesh size dy
*
* @author Tobias Neckel
*/
void write_vtkHeader( FILE *fp, int imax, int jmax,
double dx, double dy);
/**
* Method for writing grid coordinate information in vtk format.
*
* @param fp File pointer for writing info.
* @param imax Maximum number of entries (minus 2) in x-direction
* @param jmax Maximum number of entries (minus 2) in y-direction
* @param dx mesh size dx
* @param dy mesh size dy
*
* @author Tobias Neckel
*/
void write_vtkPointCoordinates( FILE *fp, int imax, int jmax, int il, int jb,
double dx, double dy);
class VTKHelper {
public:
static void printVTKFile(Grid grid, double dx, double dy,
std::string casename, std::string outputdir, int timestep);
};
#endif