Commit e337f16f authored by Ned Coltman's avatar Ned Coltman Committed by Timo Koch
Browse files

[Cleanup][Freeflow] all Navierstokes tests renamed and organized

parent d77f076c
add_input_file_links()
dune_symlink_to_source_files(FILES convergence.sh)
set(CMAKE_BUILD_TYPE Release)
add_executable(test_closedsystem EXCLUDE_FROM_ALL test_closedsystem.cc)
dune_add_test(NAME test_navierstokes_liddrivencavity_re1
TARGET test_closedsystem
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/liddrivencavity-low-re-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_liddrivencavity_re1-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_closedsystem test_liddrivencavity_re1.input")
dune_add_test(NAME test_navierstokes_liddrivencavity_re1000
TARGET test_closedsystem
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/liddrivencavity-high-re-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_liddrivencavity_re1000-00009.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_closedsystem test_liddrivencavity_re1000.input")
dune_add_test(NAME test_navierstokes_hydrostaticpressure
TARGET test_closedsystem
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokeshydrostaticpressure-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_hydrostaticpressure-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_closedsystem test_hydrostaticpressure.input"
--zeroThreshold {"velocity_liq \(m/s\)":1e-16})
add_executable(test_channel EXCLUDE_FROM_ALL test_channel.cc)
dune_add_test(NAME test_stokes_channel
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-stokes.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokes-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel test_channel_stokes.input")
dune_add_test(NAME test_navierstokes_channel
TARGET test_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/channel-navierstokes-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_navierstokes-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel test_channel_navierstokes.input -Vtk.WriteFaceData 1")
add_executable(test_channel_stokesni EXCLUDE_FROM_ALL test_channel.cc)
target_compile_definitions(test_channel_stokesni PUBLIC "NONISOTHERMAL=1")
add_subdirectory(donea)
add_subdirectory(angeli)
add_subdirectory(kovasznay)
add_subdirectory(closedsystem)
add_subdirectory(channel)
dune_add_test(NAME test_channel_stokesni_convection
TARGET test_channel_stokesni
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokesni-convection-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokesni_convection-00006.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokesni test_channel_stokesni_convection.input")
dune_add_test(NAME test_channel_stokesni_conduction
TARGET test_channel_stokesni
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokesni-conduction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokesni_conduction-00004.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_stokesni test_channel_stokesni_conduction.input"
--zeroThreshold {"velocity_liq \(m/s\)":1e-20})
dune_add_test(NAME test_stokes_donea_no_caching
SOURCES test_donea.cc
CMAKE_GUARD HAVE_UMFPACK
COMPILE_DEFINITIONS ENABLECACHING=0
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokes-donea-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_donea-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes_donea_no_caching test_stokes_donea.input")
dune_add_test(NAME test_stokes_donea
SOURCES test_donea.cc
CMAKE_GUARD HAVE_UMFPACK
COMPILE_DEFINITIONS ENABLECACHING=1
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokes-donea-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_donea-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes_donea")
dune_add_test(NAME test_navierstokes_1d
SOURCES test_navierstokes_1d.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_navierstokes_1d.vtp
${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes_1d-00001.vtp
--command "${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes_1d")
dune_add_test(NAME test_navierstokes_kovasznay
SOURCES test_kovasznay.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_kovasznay-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_kovasznay-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes_kovasznay")
dune_add_test(NAME test_navierstokes_angeli
SOURCES test_angeli.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_angeli-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_angeli-00045.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_navierstokes_angeli")
dune_add_test(NAME test_stokes_channel_3d
SOURCES test_stokes_channel_3d.cc
COMPILE_DEFINITIONS DIM_3D=1
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokes_channel_3d-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_stokes_channel_3d-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes_channel_3d"
--zeroThreshold {"velocity_liq \(m/s\)":1e-12})
dune_add_test(NAME test_stokes_channel_pseudo3d
SOURCES test_stokes_channel_3d.cc
COMPILE_DEFINITIONS DIM_3D=0
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/stokes_channel_pseudo3d-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_stokes_channel_pseudo3d-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_stokes_channel_pseudo3d"
--zeroThreshold {"velocity_liq \(m/s\)":1e-12})
dune_symlink_to_source_files(FILES convergence.sh)
dune_add_test(NAME test_ff_navierstokes_angeli
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_navierstokes_angeli-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_navierstokes_angeli-00045.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_navierstokes_angeli params.input
-Problem.Name test_ff_navierstokes_angeli")
dune_symlink_to_source_files(FILES "params.input")
......@@ -33,7 +33,7 @@
#include <dune/istl/io.hh>
#include "angelitestproblem.hh"
#include "problem.hh"
#include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh>
......
......@@ -32,7 +32,7 @@
#include <dumux/freeflow/navierstokes/problem.hh>
#include <dumux/discretization/staggered/freeflow/properties.hh>
#include <dumux/freeflow/navierstokes/model.hh>
#include "l2error.hh"
#include "../l2error.hh"
namespace Dumux
{
......
dune_add_test(NAME test_ff_navierstokes_1d
SOURCES main.cc
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_navierstokes_1d-reference.vtp
${CMAKE_CURRENT_BINARY_DIR}/test_ff_navierstokes_1d-00001.vtp
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_navierstokes_1d params.input
-Problem.Name test_ff_navierstokes_1d")
dune_symlink_to_source_files(FILES params.input)
......@@ -47,7 +47,7 @@
#include <dumux/linear/seqsolverbackend.hh>
#include <dumux/nonlinear/newtonsolver.hh>
#include "navierstokesanalyticproblem.hh"
#include "problem.hh"
/*!
* \brief Provides an interface for customizing error messages associated with
......
......@@ -35,7 +35,7 @@
#include <dumux/discretization/staggered/freeflow/properties.hh>
#include <dumux/freeflow/navierstokes/model.hh>
#include <dumux/freeflow/navierstokes/problem.hh>
#include "l2error.hh"
#include "../../l2error.hh"
namespace Dumux
......
dune_symlink_to_source_files(FILES "params.input" "params_navierstokes.input" "params_convection.input" "params_conduction.input")
add_executable(test_ff_channel EXCLUDE_FROM_ALL main.cc)
dune_add_test(NAME test_ff_stokes_channel
TARGET test_ff_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokes_channel-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_channel-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_channel params.input
-Problem.Name test_ff_stokes_channel")
dune_add_test(NAME test_ff_navierstokes_channel
TARGET test_ff_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_navierstokes_channel-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_navierstokes_channel-00002.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_channel params_navierstokes.input
-Vtk.WriteFaceData 1
-Problem.Name test_ff_navierstokes_channel")
add_executable(test_ff_stokesni_channel EXCLUDE_FROM_ALL main.cc)
target_compile_definitions(test_ff_stokesni_channel PUBLIC "NONISOTHERMAL=1")
dune_add_test(NAME test_ff_stokesni_channel_convection
TARGET test_ff_stokesni_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokesni_channel_convection-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokesni_channel_convection-00006.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokesni_channel params_convection.input
-Problem.Name test_ff_stokesni_channel_convection")
dune_add_test(NAME test_ff_stokesni_channel_conduction
TARGET test_ff_stokesni_channel
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokesni_channel_conduction-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokesni_channel_conduction-00004.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokesni_channel params_conduction.input
-Problem.Name test_ff_stokesni_channel_conduction"
--zeroThreshold {"velocity_liq \(m/s\)":1e-20})
......@@ -32,7 +32,7 @@
#include <dune/grid/io/file/vtk.hh>
#include <dune/istl/io.hh>
#include "channeltestproblem.hh"
#include "problem.hh"
#include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh>
......
dune_add_test(NAME test_ff_stokes_channel_3d
SOURCES main.cc
COMPILE_DEFINITIONS DIM_3D=1
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokes_channel_3d-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_channel_3d-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_channel_3d params.input
-Problem.Name test_ff_stokes_channel_3d"
--zeroThreshold {"velocity_liq \(m/s\)":1e-12})
dune_add_test(NAME test_ff_stokes_channel_pseudo3d
SOURCES main.cc
COMPILE_DEFINITIONS DIM_3D=0
CMAKE_GUARD HAVE_UMFPACK
COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
CMD_ARGS --script fuzzy
--files ${CMAKE_SOURCE_DIR}/test/references/test_ff_stokes_channel_pseudo3d-reference.vtu
${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_channel_pseudo3d-00001.vtu
--command "${CMAKE_CURRENT_BINARY_DIR}/test_ff_stokes_channel_pseudo3d params_pseudo.input
-Problem.Name test_ff_stokes_channel_pseudo3d"
--zeroThreshold {"velocity_liq \(m/s\)":1e-12})
dune_symlink_to_source_files(FILES "params.input" "params_pseudo.input")
......@@ -28,7 +28,7 @@
#include <dune/istl/io.hh>
#include "stokeschannel3dproblem.hh"
#include "problem.hh"
#include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment