From ab3f03b7248e05d1f2479551aa3eef62a18089a3 Mon Sep 17 00:00:00 2001 From: Cameron Stewart <cstewart@icp.uni-stuttgart.de> Date: Fri, 23 Nov 2018 15:30:42 +0100 Subject: [PATCH] add test to cmake and import temp prm file --- tests/lbm/CMakeLists.txt | 2 ++ tests/lbm/Su.prm | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tests/lbm/Su.prm diff --git a/tests/lbm/CMakeLists.txt b/tests/lbm/CMakeLists.txt index 6593cbabf..8ed18d2b5 100644 --- a/tests/lbm/CMakeLists.txt +++ b/tests/lbm/CMakeLists.txt @@ -62,6 +62,8 @@ waLBerla_execute_test( NAME PermeabilityTest_TRT_64_8 COMMAND $<TARGET_FILE:Perm waLBerla_compile_test( FILES initializer/PdfFieldInitializerTest.cpp ) waLBerla_execute_test( NAME PdfFieldInitializerTest COMMAND $<TARGET_FILE:PdfFieldInitializerTest> ${CMAKE_CURRENT_SOURCE_DIR}/PdfFieldInitializerTest.prm PROCESSES 4 CONFIGURATIONS Release RelWithDbgInfo ) +waLBerla_compile_test( FILES SuViscoelasticityTest.cpp DEPENDS field blockforest timeloop) +waLBerla_execute_test( NAME SuViscoelasticityTest COMMAND $<TARGET_FILE:SuViscoelasticityTest> ${CMAKE_CURRENT_SOURCE_DIR}/Su.prm ) # Code Generation waLBerla_compile_test( FILES codegen/SrtWithForceFieldModel.gen.py diff --git a/tests/lbm/Su.prm b/tests/lbm/Su.prm new file mode 100644 index 000000000..470b5dea2 --- /dev/null +++ b/tests/lbm/Su.prm @@ -0,0 +1,35 @@ +Parameters +{ + eta_s 0.5; + timesteps 1000; + force 0.00001; + lambda_p 30.0; + eta_p 0.5; + period 1; + baseFolder vtk_out; + writePeriod 1; + + checkpointFrequency 1000; + remainingTimeLoggerFrequency 6.0; // in seconds +} + +DomainSetup +{ + blocks < 3,3,1 >; + cartesianSetup false; + cellsPerBlock < 10,10, 1 >; + periodic < 1, 0, 0 >; +} + +StabilityChecker +{ + checkFrequency 1; + streamOutput false; + vtkOutput true; +} + +Boundaries +{ + Border { direction N,S; walldistance -1; NoSlip {} } +} + -- GitLab