123 setlocale(LC_ALL,
"C");
126 AreaVTK problem(
"InfiniteWall");
127 problem.solve(argc, argv);
129 double A0 = problem.getTotalsurfaceAreaFromFile(problem.getName() +
"Wall_0.vtu");
130 double A1 = problem.getTotalsurfaceAreaFromFile(problem.getName() +
"Wall_1.vtu");
132 double checkedArea = 4.0;
133 helpers::check(A0, A1, 0,
"Surface areas of first object are equal");
134 helpers::check(A0, checkedArea, 1e-3,
"Surface area of first object");
138 AreaVTK problem(
"../SelfTests/Walls/Casing.stl");
139 problem.solve(argc, argv);
141 double A0 = problem.getTotalsurfaceAreaFromFile(problem.getName() +
"Wall_0.vtu");
142 double A1 = problem.getTotalsurfaceAreaFromFile(problem.getName() +
"Wall_1.vtu");
144 double checkedArea = 675075.0;
145 helpers::check(A0, A1, 0,
"Surface areas of second object are equal");
146 helpers::check(A0, checkedArea, 1e-1,
"Surface area of second object");
Definition: WriteWallSurfaceAreaVTKUnitTest.cpp:11
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:37