TriangulatedStepSelfTest.cpp File Reference

Classes

class  TriangulatedStepSelfTest
 Tests the implementation of TriangulatedWall. More...
 
class  TriangulatedStepWallSelfTest
 Tests the implementation of TriangulatedWall. More...
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
117 {
118  //input file without wall at the end.
119  helpers::writeToFile("TriangulatedStep.vtk","# vtk DataFile Version 2.0\n"
120  "Step\n"
121  "ASCII\n"
122  "DATASET UNSTRUCTURED_GRID\n"
123  "POINTS 8 double\n"
124  "0 0 1\n"
125  "1 0 1\n"
126  "2 0 0.9\n"
127  "3 0 0.9\n"
128  "0 1 1\n"
129  "1 1 1\n"
130  "2 1 0.9\n"
131  "3 1 0.9\n"
132  "\n"
133  "CELLS 6 24\n"
134  "3 0 1 4\n"
135  "3 4 1 5\n"
136  "3 5 1 2\n"
137  "3 5 2 6\n"
138  "3 6 2 3\n"
139  "3 6 3 7\n"
140  "\n"
141  "CELL_TYPES 6\n"
142  "5\n"
143  "5\n"
144  "5\n"
145  "5\n"
146  "5\n"
147  "5");
148 
149  //input file with a wall at the end
150  helpers::writeToFile("TriangulatedStepWall.vtk","# vtk DataFile Version 2.0\n"
151  "Step\n"
152  "ASCII\n"
153  "DATASET UNSTRUCTURED_GRID\n"
154  "POINTS 10 double\n"
155  "0 0 2\n"
156  "1 0 2\n"
157  "2 0 1\n"
158  "3 0 1\n"
159  "3 0 3\n"
160  "0 1 2\n"
161  "1 1 2\n"
162  "2 1 1\n"
163  "3 1 1\n"
164  "3 1 3\n"
165  "\n"
166  "CELLS 8 32\n"
167  "3 0 1 5\n"
168  "3 5 1 6\n"
169  "3 6 1 2\n"
170  "3 6 2 7\n"
171  "3 7 2 3\n"
172  "3 7 3 8\n"
173  "3 8 3 4\n"
174  "3 8 4 9\n"
175  "\n"
176  "CELL_TYPES 8\n"
177  "5\n"
178  "5\n"
179  "5\n"
180  "5\n"
181  "5\n"
182  "5\n"
183  "5\n"
184  "5");
185 
186 // //input file with a wall at the end
187 // helpers::writeToFile("TriangulatedStepWall.vtk","# vtk DataFile Version 2.0\n"
188 // "Step\n"
189 // "ASCII\n"
190 // "DATASET UNSTRUCTURED_GRID\n"
191 // "POINTS 6 double\n"
192 // "0 0 .5\n"
193 // ".5 0 .5\n"
194 // "10 0 10\n"
195 // "0 1 .5\n"
196 // ".5 1 .5\n"
197 // "10 1 10\n"
198 // "\n"
199 // "CELLS 4 16\n"
200 // "3 0 1 3\n"
201 // "3 3 1 4\n"
202 // "3 4 1 2\n"
203 // "3 4 2 5\n"
204 // "\n"
205 // "CELL_TYPES 4\n"
206 // "5\n"
207 // "5\n"
208 // "5\n"
209 // "5");
210 
211  //plot location of contact point
212  helpers::writeToFile("TriangulatedStepSelfTest.gnu","p 'TriangulatedStepSelfTest.fstat' u 4:6 w lp");
213 
214  //TriangulatedStepSelfTest t;
215  //t.solve();
217  t.solve();
218  return 0;
219 }
Tests the implementation of TriangulatedWall.
Definition: TriangulatedStepSelfTest.cpp:66
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 plotPSD::t, and helpers::writeToFile().