TriangulatedWallSelfTest.cpp File Reference

Classes

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

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
133 {
134  //write input files
135  helpers::writeToFile("TriangulatedWallSimple.vtk","# vtk DataFile Version 2.0\n"
136  "Defines a domain outside of a tetrahedron\n"
137  "ASCII\n"
138  "DATASET UNSTRUCTURED_GRID\n"
139  "POINTS 4 double\n"
140  "0 0 0\n"
141  "1 0 0\n"
142  "0 1 0\n"
143  "0 0 1\n"
144  "\n"
145  "CELLS 4 16\n"
146  "3 0 1 2\n"
147  "3 0 2 3\n"
148  "3 0 3 1\n"
149  "3 1 3 2\n"
150  "\n"
151  "CELL_TYPES 4\n"
152  "5\n"
153  "5\n"
154  "5\n"
155  "5");
156 
157  helpers::writeToFile("TriangulatedWallInverted.vtk","# vtk DataFile Version 2.0\n"
158  "Defines a domain inside of a tetrahedron\n"
159  "ASCII\n"
160  "DATASET UNSTRUCTURED_GRID\n"
161  "POINTS 4 double\n"
162  "0 0 0\n"
163  "1 0 0\n"
164  "0 1 0\n"
165  "0 0 1\n"
166  "\n"
167  "CELLS 4 16\n"
168  "3 0 2 1\n"
169  "3 0 3 2\n"
170  "3 0 1 3\n"
171  "3 1 2 3\n"
172  "\n"
173  "CELL_TYPES 4\n"
174  "5\n"
175  "5\n"
176  "5\n"
177  "5");
178 
179  helpers::writeToFile("TriangulatedWall.vtk","# vtk DataFile Version 2.0\n"
180  "Cube Normals (cross of first two vec's) into the wall\n"
181  "ASCII\n"
182  "DATASET UNSTRUCTURED_GRID\n"
183  "POINTS 8 double\n"
184  "0 0 0\n"
185  "1 0 0\n"
186  "1 1 0\n"
187  "0 1 0\n"
188  "0 0 1\n"
189  "1 0 1\n"
190  "1 1 1\n"
191  "0 1 1\n"
192  "\n"
193  "CELLS 8 32\n"
194  "3 0 1 2\n"
195  "3 0 7 4\n"
196  "3 2 6 7\n"
197  "3 0 2 7\n"
198  "3 1 0 4\n"
199  "3 1 4 7\n"
200  "3 6 2 1\n"
201  "3 1 7 6\n"
202  "\n"
203  "CELL_TYPES 8\n"
204  "5\n"
205  "5\n"
206  "5\n"
207  "5\n"
208  "5\n"
209  "5\n"
210  "5\n"
211  "5");
212 
213  logger(INFO,"To get VTK output, uncomment the relevant lines in the main function.");
214 
215 
217  //uncomment to get VTK output
218  //t.setParticlesWriteVTK(true);
219  //t.wallHandler.setWriteVTK(FileType::ONE_FILE);
220  t.solve();
221  return 0;
222 }
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Tests the implementation of TriangulatedWall.
Definition: TriangulatedWallSelfTest.cpp:38
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58

References INFO, logger, DPMBase::solve(), and helpers::writeToFile().