Skip to content
Snippets Groups Projects
Commit 6e8df8e5 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Larger grid in Sphere app

parent d953ed9b
No related branches found
No related tags found
1 merge request!126Fix bug in slip boundary condition and do some cleanup
...@@ -146,19 +146,19 @@ int main(int argc, char *argv[]) ...@@ -146,19 +146,19 @@ int main(int argc, char *argv[])
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
real dx = L / real(nx); real dx = L / real(nx);
gridBuilder->addCoarseGrid(-1.0 * L, -0.5 * L, -0.5 * L, gridBuilder->addCoarseGrid(-1.0 * L, -0.8 * L, -0.8 * L,
6.0 * L, 0.5 * L, 0.5 * L, dx); 6.0 * L, 0.8 * L, 0.8 * L, dx);
// use primitive // use primitive
// Object *sphere = new Sphere(0.0, 0.0, 0.0, dSphere / 2.0); Object *sphere = new Sphere(0.0, 0.0, 0.0, dSphere / 2.0);
// use stl // use stl
std::string stlPath = "stl/sphere02.stl"; // std::string stlPath = "stl/sphere02.stl";
if (useConfigFile && config.contains("STLPath")) { // if (useConfigFile && config.contains("STLPath")) {
stlPath = config.getValue<std::string>("STLPath"); // stlPath = config.getValue<std::string>("STLPath");
} // }
std::cout << "Reading stl from " << stlPath << "." << std::endl; // std::cout << "Reading stl from " << stlPath << "." << std::endl;
Object *sphere = TriangularMesh::make(stlPath); // Object *sphere = TriangularMesh::make(stlPath);
gridBuilder->addGeometry(sphere); gridBuilder->addGeometry(sphere);
gridBuilder->setPeriodicBoundaryCondition(false, false, false); gridBuilder->setPeriodicBoundaryCondition(false, false, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment