From 6e8df8e5f1a889ba10c6e0c740e5c57cb43e6e95 Mon Sep 17 00:00:00 2001 From: Anna Wellmann <a.wellmann@tu-bs.de> Date: Tue, 12 Jul 2022 14:28:13 +0000 Subject: [PATCH] Larger grid in Sphere app --- apps/gpu/LBM/SphereGPU/Sphere.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/gpu/LBM/SphereGPU/Sphere.cpp b/apps/gpu/LBM/SphereGPU/Sphere.cpp index e63166a73..a4a6a56ba 100644 --- a/apps/gpu/LBM/SphereGPU/Sphere.cpp +++ b/apps/gpu/LBM/SphereGPU/Sphere.cpp @@ -146,19 +146,19 @@ int main(int argc, char *argv[]) ////////////////////////////////////////////////////////////////////////// real dx = L / real(nx); - gridBuilder->addCoarseGrid(-1.0 * L, -0.5 * L, -0.5 * L, - 6.0 * L, 0.5 * L, 0.5 * L, dx); + gridBuilder->addCoarseGrid(-1.0 * L, -0.8 * L, -0.8 * L, + 6.0 * L, 0.8 * L, 0.8 * L, dx); // 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 - std::string stlPath = "stl/sphere02.stl"; - if (useConfigFile && config.contains("STLPath")) { - stlPath = config.getValue<std::string>("STLPath"); - } - std::cout << "Reading stl from " << stlPath << "." << std::endl; - Object *sphere = TriangularMesh::make(stlPath); + // std::string stlPath = "stl/sphere02.stl"; + // if (useConfigFile && config.contains("STLPath")) { + // stlPath = config.getValue<std::string>("STLPath"); + // } + // std::cout << "Reading stl from " << stlPath << "." << std::endl; + // Object *sphere = TriangularMesh::make(stlPath); gridBuilder->addGeometry(sphere); gridBuilder->setPeriodicBoundaryCondition(false, false, false); -- GitLab