diff --git a/CMake/cmake_config_files/MOLLOK.config.cmake b/CMake/cmake_config_files/MOLLOK.config.cmake index 72470da1bc52a242cb8e3c341e0e7f87bb06ab26..bdaf06f86137f542663bf3a4d603230e92b9260b 100644 --- a/CMake/cmake_config_files/MOLLOK.config.cmake +++ b/CMake/cmake_config_files/MOLLOK.config.cmake @@ -1,7 +1,7 @@ ################################################################################# # VirtualFluids MACHINE FILE # Responsible: Martin Schoenherr -# OS: Windows 10 +# OS: Windows 11 ################################################################################# # cuda compute capability @@ -14,3 +14,4 @@ list(APPEND VF_COMPILER_DEFINITION "PATH_NUMERICAL_TESTS=${PATH_NUMERICAL_TESTS} # add invidual apps here list(APPEND USER_APPS "apps/gpu/LBM/WTG_RUB") list(APPEND USER_APPS "apps/gpu/LBM/TGV_3D_GridRef") +list(APPEND USER_APPS "apps/gpu/LBM/SphereRefined") diff --git a/apps/gpu/LBM/SphereRefined/SphereRefined.cpp b/apps/gpu/LBM/SphereRefined/SphereRefined.cpp index b1ac641ce8e82445be7eb0a5df24f030090170bc..cd68d57d5fb9d4d3a954159f1a8d9e3d775a8522 100644 --- a/apps/gpu/LBM/SphereRefined/SphereRefined.cpp +++ b/apps/gpu/LBM/SphereRefined/SphereRefined.cpp @@ -75,7 +75,8 @@ int main() { try { - vf::logging::Logger::initializeLogger(); + vf::gpu::Communicator &communicator = vf::gpu::MpiCommunicator::getInstance(); + vf::logging::Logger::initializeLogger(); ////////////////////////////////////////////////////////////////////////// // Simulation parameters ////////////////////////////////////////////////////////////////////////// @@ -86,11 +87,11 @@ int main() const real dSphere = 0.2; const real Re = 300.0; const real velocity = 1.0; - const real velocityLB = (real)0.5e-3; // LB units - const uint nx = 64; + const real velocityLB = (real)0.5e-2; // LB units + const uint nx = 50; const uint timeStepOut = 10000; - const uint timeStepEnd = 100000; + const uint timeStepEnd = 10000; ////////////////////////////////////////////////////////////////////////// // setup gridGenerator @@ -114,17 +115,18 @@ int main() ////////////////////////////////////////////////////////////////////////// gridBuilder->addCoarseGrid(-1.0 * L, -0.6 * L, -0.6 * L, - 3.0 * L, 0.6 * L, 0.6 * L, dx); - - // use primitive - // auto sphere = std::make_shared<Sphere>(0.0, 0.0, 0.0, dSphere / 2.0); + 2.0 * L, 0.6 * L, 0.6 * L, dx); // add fine grid - //gridBuilder->addGrid(std::make_shared<Sphere>(0., 0., 0., 0.3), 3); + gridBuilder->addGrid(std::make_shared<Sphere>(0., 0., 0., 0.3), 2); GridScalingFactory scalingFactory = GridScalingFactory(); scalingFactory.setScalingFactory(GridScalingFactory::GridScaling::ScaleCompressible); + // use primitive + // auto sphere = std::make_shared<Sphere>(0.0, 0.0, 0.0, dSphere / 2.0); + + // use stl std::string stlPath = "C:\\Users\\schoen\\Desktop\\git\\VirtualFluids_dev_rz\\apps\\gpu\\LBM\\SphereRefined\\sphere02.stl"; auto sphere = std::make_shared<TriangularMesh>(stlPath); gridBuilder->addGeometry(sphere); @@ -178,7 +180,6 @@ int main() // set copy mesh to simulation ////////////////////////////////////////////////////////////////////////// - vf::gpu::Communicator &communicator = vf::gpu::MpiCommunicator::getInstance(); auto cudaMemoryManager = std::make_shared<CudaMemoryManager>(para); SPtr<GridProvider> gridGenerator =