diff --git a/apps/gpu/LBM/SphereGPU/Sphere.cpp b/apps/gpu/LBM/SphereGPU/Sphere.cpp index 707c3ab9cb7de038a94010e69e6f77f9799b4f7f..a20383b8e7eab9ce61fb8d8c21de95d6033f5c5f 100644 --- a/apps/gpu/LBM/SphereGPU/Sphere.cpp +++ b/apps/gpu/LBM/SphereGPU/Sphere.cpp @@ -84,17 +84,17 @@ int main(int argc, char *argv[]) const real L = 1.0; const real dSphere = 0.2; - const real Re = 1000.0; // related to the sphere's diameter + const real Re = 300.0; // related to the sphere's diameter const real velocity = 1.0; const real dt = (real)0.5e-3; - const uint nx = 64; + const uint nx = 50; - const uint timeStepOut = 1000; + const uint timeStepOut = 10000; const uint timeStepEnd = 10000; ////////////////////////////////////////////////////////////////////////// // setup simulation parameters (with or without config file) - ////////////////////////////////////////////////////////////////////////// + ////////////////////////// vf::gpu::Communicator& communicator = vf::gpu::Communicator::getInstance();; SPtr<Parameter> para; @@ -123,7 +123,7 @@ int main(int argc, char *argv[]) real dx = L / real(nx); gridBuilder->addCoarseGrid(-1.0 * L, -0.6 * L, -0.6 * L, - 8.0 * L, 0.6 * L, 0.6 * L, dx); + 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); diff --git a/regression-tests/sphere_in_channel_test.sh b/regression-tests/sphere_in_channel_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..788a5df531e2f5ed3c3df0c5b8a21a0eebe15121 --- /dev/null +++ b/regression-tests/sphere_in_channel_test.sh @@ -0,0 +1,16 @@ +source ./regression-tests/__regression_test_executer.sh + +# 1. set reference data directory (must match the folder structure in https://github.com/irmb/test_data) +REFERENCE_DATA_DIR=regression_tests/gpu/SphereInChannel + +# 2. set cmake flags for the build of VirtualFluids +CMAKE_FLAGS="--preset=make_gpu -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=75" + +# 3. define the application to be executed +APPLICATION=./build/bin/SphereGPU + +# 4. set the path to the produced data +RESULT_DATA_DIR=output/Sphere + + +run_regression_test "$REFERENCE_DATA_DIR" "$CMAKE_FLAGS" "$APPLICATION" "$RESULT_DATA_DIR"