TriangulatedWallSelfTest.cpp File Reference

Classes

class  TriangulatedWallSelfTest
 Tests the implementation of TriangulatedWall. More...
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
112 {
113  //write input files
114  helpers::writeToFile("TriangulatedWallSimple.vtk","# vtk DataFile Version 2.0\n"
115  "Defines a domain outside of a tetrahedron\n"
116  "ASCII\n"
117  "DATASET UNSTRUCTURED_GRID\n"
118  "POINTS 4 double\n"
119  "0 0 0\n"
120  "1 0 0\n"
121  "0 1 0\n"
122  "0 0 1\n"
123  "\n"
124  "CELLS 4 16\n"
125  "3 0 1 2\n"
126  "3 0 2 3\n"
127  "3 0 3 1\n"
128  "3 1 3 2\n"
129  "\n"
130  "CELL_TYPES 4\n"
131  "5\n"
132  "5\n"
133  "5\n"
134  "5");
135 
136  helpers::writeToFile("TriangulatedWallInverted.vtk","# vtk DataFile Version 2.0\n"
137  "Defines a domain inside of a tetrahedron\n"
138  "ASCII\n"
139  "DATASET UNSTRUCTURED_GRID\n"
140  "POINTS 4 double\n"
141  "0 0 0\n"
142  "1 0 0\n"
143  "0 1 0\n"
144  "0 0 1\n"
145  "\n"
146  "CELLS 4 16\n"
147  "3 0 2 1\n"
148  "3 0 3 2\n"
149  "3 0 1 3\n"
150  "3 1 2 3\n"
151  "\n"
152  "CELL_TYPES 4\n"
153  "5\n"
154  "5\n"
155  "5\n"
156  "5");
157 
158  helpers::writeToFile("TriangulatedWall.vtk","# vtk DataFile Version 2.0\n"
159  "Cube Normals (cross of first two vec's) into the wall\n"
160  "ASCII\n"
161  "DATASET UNSTRUCTURED_GRID\n"
162  "POINTS 8 double\n"
163  "0 0 0\n"
164  "1 0 0\n"
165  "1 1 0\n"
166  "0 1 0\n"
167  "0 0 1\n"
168  "1 0 1\n"
169  "1 1 1\n"
170  "0 1 1\n"
171  "\n"
172  "CELLS 8 32\n"
173  "3 0 1 2\n"
174  "3 0 7 4\n"
175  "3 2 6 7\n"
176  "3 0 2 7\n"
177  "3 1 0 4\n"
178  "3 1 4 7\n"
179  "3 6 2 1\n"
180  "3 1 7 6\n"
181  "\n"
182  "CELL_TYPES 8\n"
183  "5\n"
184  "5\n"
185  "5\n"
186  "5\n"
187  "5\n"
188  "5\n"
189  "5\n"
190  "5");
191 
192  logger(INFO,"To get VTK output, uncomment the relevant lines in the main function.");
193 
194 
196  //uncomment to get VTK output
197  //t.setParticlesWriteVTK(true);
198  //t.wallHandler.setWriteVTK(FileType::ONE_FILE);
199  t.solve();
200  return 0;
201 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Tests the implementation of TriangulatedWall.
Definition: TriangulatedWallSelfTest.cpp:17
#define INFO(i)
Definition: mumps_solver.h:54
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29
t
Definition: plotPSD.py:36

References INFO, logger, plotPSD::t, and helpers::writeToFile().