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

Merge branch 'regressionTests' into testNodeNumberInBCs

parents ef983743 608a771b
No related branches found
No related tags found
1 merge request!223Use the correct number of nodes for boundary conditions in GridGenerator
......@@ -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);
......
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"
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