From b6b9f8821542cf2a3deb62741ba7cd7aa89f6727 Mon Sep 17 00:00:00 2001 From: "TESLA03\\Master" <a.wellmann@tu-bs.de> Date: Wed, 30 Jun 2021 17:12:18 +0200 Subject: [PATCH] Fix bug where only one grid level is generated and change GridPath in config Squashed commits: [cf01eebc] Change GridPath in config --- apps/gpu/LBM/MusselOyster/MusselOyster.cpp | 6 +++--- apps/gpu/LBM/MusselOyster/configMusselOyster.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/gpu/LBM/MusselOyster/MusselOyster.cpp b/apps/gpu/LBM/MusselOyster/MusselOyster.cpp index 5c7613b92..b59743c62 100644 --- a/apps/gpu/LBM/MusselOyster/MusselOyster.cpp +++ b/apps/gpu/LBM/MusselOyster/MusselOyster.cpp @@ -69,7 +69,7 @@ std::string path("E:/temp/MusselOyster"); std::string gridPathParent = "E:/temp/GridMussel/"; -std::string simulationName("MusselOyster"); +std::string simulationName("MusselOysterTestNewBC"); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -112,7 +112,7 @@ void multipleLevel(const std::string& configPath) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// std::string bivalveType = "MUSSEL"; // "MUSSEL" "OYSTER" - std::string gridPath(gridPathParent + "/" + bivalveType + "/"); + std::string gridPath(gridPathParent + "/" + bivalveType + "/"); // only for GridGenerator, for GridReader the gridPath needs to be set in the config file real dxGrid = (real)1.0; real vxLB = (real)0.051; // LB units @@ -181,13 +181,13 @@ void multipleLevel(const std::string& configPath) const real zGridMin = bbzm - 30.0; const real zGridMax = bbzp + 30.0; + gridBuilder->addCoarseGrid(xGridMin, yGridMin, zGridMin, xGridMax, yGridMax, zGridMax, dxGrid); gridBuilder->setNumberOfLayers(6, 8); gridBuilder->addGrid(bivalveRef_1_STL, 1); gridBuilder->addGeometry(bivalveSTL); gridBuilder->setPeriodicBoundaryCondition(false, false, true); - gridBuilder->addCoarseGrid(xGridMin, yGridMin, zGridMin, xGridMax, yGridMax, zGridMax, dxGrid); gridBuilder->buildGrids(LBM, true); // buildGrids() has to be called before setting the BCs!!!! ////////////////////////////////////////////////////////////////////////// diff --git a/apps/gpu/LBM/MusselOyster/configMusselOyster.txt b/apps/gpu/LBM/MusselOyster/configMusselOyster.txt index 52ee1fe70..cbef5687a 100644 --- a/apps/gpu/LBM/MusselOyster/configMusselOyster.txt +++ b/apps/gpu/LBM/MusselOyster/configMusselOyster.txt @@ -14,7 +14,7 @@ ################################################## #informations for reading ################################################## -GridPath="E:/temp/GridMussel" +GridPath="E:/temp/GridMussel/MUSSEL" #GridPath="C:" ################################################## -- GitLab