From 650fa077cd7813ae8e47d05d3d21f37e5fad25f4 Mon Sep 17 00:00:00 2001
From: Thomas Fetzer <thomas.fetzer@iws.uni-stuttgart.de>
Date: Wed, 2 May 2018 14:52:34 +0200
Subject: [PATCH] [ransnc] Rename test problem, it is more a flat plate than a
 channel

---
 test/freeflow/ransnc/CMakeLists.txt           | 38 +++++++++----------
 ...testproblem.hh => flatplatetestproblem.hh} | 38 +++++++++----------
 .../{test_channel.cc => test_flatplate.cc}    |  6 +--
 ...channel2c.input => test_flatplate2c.input} |  2 +-
 ...nel2cni.input => test_flatplate2cni.input} |  2 +-
 ...u => test_flatplate_lowrekepsilon2cni.vtu} |  0
 ...roeq2c.vtu => test_flatplate_zeroeq2c.vtu} |  0
 ...2cni.vtu => test_flatplate_zeroeq2cni.vtu} |  0
 8 files changed, 43 insertions(+), 43 deletions(-)
 rename test/freeflow/ransnc/{channeltestproblem.hh => flatplatetestproblem.hh} (88%)
 rename test/freeflow/ransnc/{test_channel.cc => test_flatplate.cc} (98%)
 rename test/freeflow/ransnc/{test_channel2c.input => test_flatplate2c.input} (87%)
 rename test/freeflow/ransnc/{test_channel2cni.input => test_flatplate2cni.input} (86%)
 rename test/references/{test_channel_lowrekepsilon2cni.vtu => test_flatplate_lowrekepsilon2cni.vtu} (100%)
 rename test/references/{test_channel_zeroeq2c.vtu => test_flatplate_zeroeq2c.vtu} (100%)
 rename test/references/{test_channel_zeroeq2cni.vtu => test_flatplate_zeroeq2cni.vtu} (100%)

diff --git a/test/freeflow/ransnc/CMakeLists.txt b/test/freeflow/ransnc/CMakeLists.txt
index 8cc866b923..f8d603ee4f 100644
--- a/test/freeflow/ransnc/CMakeLists.txt
+++ b/test/freeflow/ransnc/CMakeLists.txt
@@ -1,33 +1,33 @@
 add_input_file_links()
 
-dune_add_test(NAME test_channel_zeroeq2c
-              SOURCES test_channel.cc
+dune_add_test(NAME test_flatplate_zeroeq2c
+              SOURCES test_flatplate.cc
               CMAKE_GUARD HAVE_UMFPACK
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS       --script fuzzy
-                             --files ${CMAKE_SOURCE_DIR}/test/references/test_channel_zeroeq2c.vtu
-                                     ${CMAKE_CURRENT_BINARY_DIR}/test_channel2c-00031.vtu
-                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_zeroeq2c test_channel2c.input")
+                             --files ${CMAKE_SOURCE_DIR}/test/references/test_flatplate_zeroeq2c.vtu
+                                     ${CMAKE_CURRENT_BINARY_DIR}/test_flatplate2c-00031.vtu
+                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_flatplate_zeroeq2c test_flatplate2c.input")
 
-dune_add_test(NAME test_channel_zeroeq2cni
-              SOURCES test_channel.cc
+dune_add_test(NAME test_flatplate_zeroeq2cni
+              SOURCES test_flatplate.cc
               CMAKE_GUARD HAVE_UMFPACK
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS       --script fuzzy
-                             --files ${CMAKE_SOURCE_DIR}/test/references/test_channel_zeroeq2cni.vtu
-                                     ${CMAKE_CURRENT_BINARY_DIR}/test_channel2cni-00034.vtu
-                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_zeroeq2cni test_channel2cni.input")
-target_compile_definitions(test_channel_zeroeq2cni PUBLIC "NONISOTHERMAL=1")
+                             --files ${CMAKE_SOURCE_DIR}/test/references/test_flatplate_zeroeq2cni.vtu
+                                     ${CMAKE_CURRENT_BINARY_DIR}/test_flatplate2cni-00034.vtu
+                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_flatplate_zeroeq2cni test_flatplate2cni.input")
+target_compile_definitions(test_flatplate_zeroeq2cni PUBLIC "NONISOTHERMAL=1")
 
-add_executable(test_channel_lowrekepsilon2c EXCLUDE_FROM_ALL test_channel.cc)
-target_compile_definitions(test_channel_lowrekepsilon2c PUBLIC "LOWREKEPSILON=1")
+add_executable(test_flatplate_lowrekepsilon2c EXCLUDE_FROM_ALL test_flatplate.cc)
+target_compile_definitions(test_flatplate_lowrekepsilon2c PUBLIC "LOWREKEPSILON=1")
 
-dune_add_test(NAME test_channel_lowrekepsilon2cni
-              SOURCES test_channel.cc
+dune_add_test(NAME test_flatplate_lowrekepsilon2cni
+              SOURCES test_flatplate.cc
               CMAKE_GUARD HAVE_UMFPACK
               COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py
               CMD_ARGS       --script fuzzy
-                             --files ${CMAKE_SOURCE_DIR}/test/references/test_channel_lowrekepsilon2cni.vtu
-                                     ${CMAKE_CURRENT_BINARY_DIR}/test_channel2cni-00041.vtu
-                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_channel_lowrekepsilon2cni test_channel2cni.input")
-target_compile_definitions(test_channel_lowrekepsilon2cni PUBLIC "LOWREKEPSILON=1" "NONISOTHERMAL=1")
+                             --files ${CMAKE_SOURCE_DIR}/test/references/test_flatplate_lowrekepsilon2cni.vtu
+                                     ${CMAKE_CURRENT_BINARY_DIR}/test_flatplate2cni-00041.vtu
+                             --command "${CMAKE_CURRENT_BINARY_DIR}/test_flatplate_lowrekepsilon2cni test_flatplate2cni.input")
+target_compile_definitions(test_flatplate_lowrekepsilon2cni PUBLIC "LOWREKEPSILON=1" "NONISOTHERMAL=1")
diff --git a/test/freeflow/ransnc/channeltestproblem.hh b/test/freeflow/ransnc/flatplatetestproblem.hh
similarity index 88%
rename from test/freeflow/ransnc/channeltestproblem.hh
rename to test/freeflow/ransnc/flatplatetestproblem.hh
index ed6ca552c6..1ec575cf50 100644
--- a/test/freeflow/ransnc/channeltestproblem.hh
+++ b/test/freeflow/ransnc/flatplatetestproblem.hh
@@ -19,7 +19,7 @@
 /*!
  * \file
  * \ingroup RANSNCTests
- * \brief Channel flow test for the multi-component staggered grid Reynolds-averaged Navier-Stokes model
+ * \brief Flat plate test for the multi-component staggered grid Reynolds-averaged Navier-Stokes model
  */
 #ifndef DUMUX_RANS_NC_TEST_PROBLEM_HH
 #define DUMUX_RANS_NC_TEST_PROBLEM_HH
@@ -39,68 +39,68 @@
 namespace Dumux
 {
 template <class TypeTag>
-class ChannelNCTestProblem;
+class FlatPlateNCTestProblem;
 
 namespace Properties
 {
 
 #if NONISOTHERMAL
   #if LOWREKEPSILON
-  NEW_TYPE_TAG(ChannelNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, LowReKEpsilonNCNI));
+  NEW_TYPE_TAG(FlatPlateNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, LowReKEpsilonNCNI));
   #else
-  NEW_TYPE_TAG(ChannelNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, ZeroEqNCNI));
+  NEW_TYPE_TAG(FlatPlateNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, ZeroEqNCNI));
   #endif
 #else
   #if LOWREKEPSILON
-  NEW_TYPE_TAG(ChannelNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, LowReKEpsilonNC));
+  NEW_TYPE_TAG(FlatPlateNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, LowReKEpsilonNC));
   #else
-  NEW_TYPE_TAG(ChannelNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, ZeroEqNC));
+  NEW_TYPE_TAG(FlatPlateNCTestTypeTag, INHERITS_FROM(StaggeredFreeFlowModel, ZeroEqNC));
   #endif
 #endif
 
 NEW_PROP_TAG(FluidSystem);
 
 // Select the fluid system
-SET_TYPE_PROP(ChannelNCTestTypeTag, FluidSystem,
+SET_TYPE_PROP(FlatPlateNCTestTypeTag, FluidSystem,
               FluidSystems::H2OAir<typename GET_PROP_TYPE(TypeTag, Scalar)>);
 
-SET_INT_PROP(ChannelNCTestTypeTag, PhaseIdx,
+SET_INT_PROP(FlatPlateNCTestTypeTag, PhaseIdx,
              GET_PROP_TYPE(TypeTag, FluidSystem)::phase1Idx);
 
-SET_INT_PROP(ChannelNCTestTypeTag, ReplaceCompEqIdx, GET_PROP_VALUE(TypeTag, PhaseIdx));
+SET_INT_PROP(FlatPlateNCTestTypeTag, ReplaceCompEqIdx, GET_PROP_VALUE(TypeTag, PhaseIdx));
 
 // Set the grid type
-SET_TYPE_PROP(ChannelNCTestTypeTag, Grid,
+SET_TYPE_PROP(FlatPlateNCTestTypeTag, Grid,
               Dune::YaspGrid<2, Dune::TensorProductCoordinates<typename GET_PROP_TYPE(TypeTag, Scalar), 2> >);
 
 // Set the problem property
-SET_TYPE_PROP(ChannelNCTestTypeTag, Problem, Dumux::ChannelNCTestProblem<TypeTag> );
+SET_TYPE_PROP(FlatPlateNCTestTypeTag, Problem, Dumux::FlatPlateNCTestProblem<TypeTag> );
 
-SET_BOOL_PROP(ChannelNCTestTypeTag, EnableFVGridGeometryCache, true);
+SET_BOOL_PROP(FlatPlateNCTestTypeTag, EnableFVGridGeometryCache, true);
 
-SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridFluxVariablesCache, true);
-SET_BOOL_PROP(ChannelNCTestTypeTag, EnableGridVolumeVariablesCache, true);
+SET_BOOL_PROP(FlatPlateNCTestTypeTag, EnableGridFluxVariablesCache, true);
+SET_BOOL_PROP(FlatPlateNCTestTypeTag, EnableGridVolumeVariablesCache, true);
 
 // Enable gravity
-SET_BOOL_PROP(ChannelNCTestTypeTag, UseMoles, true);
+SET_BOOL_PROP(FlatPlateNCTestTypeTag, UseMoles, true);
 } // end namespace Properties
 
 /*!
  * \ingroup RANSNCTests
  * \brief  Test problem for the one-phase model.
  *
- * Dry air is entering the channel, in 2-D a flat plate, from the left side.
+ * Dry air is entering from the left side and flows above a 1-D a flat plate.
  * In the middle of the inlet, water vapor is injected, which spreads by turbulent diffusion.
  * For the nonisothermal model the bottom has a constant temperature
  * which is \f$ \unit[30]{K} \f$ higher than the initial and inlet temperature.
  */
 template <class TypeTag>
 #if LOWREKEPSILON
-class ChannelNCTestProblem : public LowReKEpsilonProblem<TypeTag>
+class FlatPlateNCTestProblem : public LowReKEpsilonProblem<TypeTag>
 {
     using ParentType = LowReKEpsilonProblem<TypeTag>;
 #else
-class ChannelNCTestProblem : public ZeroEqProblem<TypeTag>
+class FlatPlateNCTestProblem : public ZeroEqProblem<TypeTag>
 {
     using ParentType = ZeroEqProblem<TypeTag>;
 #endif
@@ -123,7 +123,7 @@ class ChannelNCTestProblem : public ZeroEqProblem<TypeTag>
     static const unsigned int phaseIdx = GET_PROP_VALUE(TypeTag, PhaseIdx);
 
 public:
-    ChannelNCTestProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
+    FlatPlateNCTestProblem(std::shared_ptr<const FVGridGeometry> fvGridGeometry)
     : ParentType(fvGridGeometry), eps_(1e-6)
     {
         inletVelocity_ = getParam<Scalar>("Problem.InletVelocity");
diff --git a/test/freeflow/ransnc/test_channel.cc b/test/freeflow/ransnc/test_flatplate.cc
similarity index 98%
rename from test/freeflow/ransnc/test_channel.cc
rename to test/freeflow/ransnc/test_flatplate.cc
index 2d38f3d3cf..b142cf6af8 100644
--- a/test/freeflow/ransnc/test_channel.cc
+++ b/test/freeflow/ransnc/test_flatplate.cc
@@ -19,7 +19,7 @@
 /*!
  * \file
  *
- * \brief Test for the staggered grid multi-component (Navier-)Stokes model
+ * \brief Test for the staggered grid multi-component RANS model
  */
 #include <config.h>
 
@@ -34,7 +34,7 @@
 #include <dune/grid/io/file/vtk.hh>
 #include <dune/istl/io.hh>
 
-#include "channeltestproblem.hh"
+#include "flatplatetestproblem.hh"
 
 #include <dumux/common/properties.hh>
 #include <dumux/common/parameters.hh>
@@ -78,7 +78,7 @@ int main(int argc, char** argv) try
     using namespace Dumux;
 
     // define the type tag for this problem
-    using TypeTag = TTAG(ChannelNCTestTypeTag);
+    using TypeTag = TTAG(FlatPlateNCTestTypeTag);
 
     // initialize MPI, finalize is done automatically on exit
     const auto& mpiHelper = Dune::MPIHelper::instance(argc, argv);
diff --git a/test/freeflow/ransnc/test_channel2c.input b/test/freeflow/ransnc/test_flatplate2c.input
similarity index 87%
rename from test/freeflow/ransnc/test_channel2c.input
rename to test/freeflow/ransnc/test_flatplate2c.input
index c1f9cf4758..0098301d06 100644
--- a/test/freeflow/ransnc/test_channel2c.input
+++ b/test/freeflow/ransnc/test_flatplate2c.input
@@ -11,7 +11,7 @@ Cells1 = 20
 Grading1 = 1.4
 
 [Problem]
-Name = test_channel2c # name passed to the output routines
+Name = test_flatplate2c # name passed to the output routines
 InletVelocity = 0.1 # [m/s]
 EnableGravity = false
 
diff --git a/test/freeflow/ransnc/test_channel2cni.input b/test/freeflow/ransnc/test_flatplate2cni.input
similarity index 86%
rename from test/freeflow/ransnc/test_channel2cni.input
rename to test/freeflow/ransnc/test_flatplate2cni.input
index 949a5c47b5..d3640ff2e2 100644
--- a/test/freeflow/ransnc/test_channel2cni.input
+++ b/test/freeflow/ransnc/test_flatplate2cni.input
@@ -11,7 +11,7 @@ Cells1 = 20
 Grading1 = 1.4
 
 [Problem]
-Name = test_channel2cni # name passed to the output routines
+Name = test_flatplate2cni # name passed to the output routines
 InletVelocity = 0.1 # [m/s]
 EnableGravity = false
 
diff --git a/test/references/test_channel_lowrekepsilon2cni.vtu b/test/references/test_flatplate_lowrekepsilon2cni.vtu
similarity index 100%
rename from test/references/test_channel_lowrekepsilon2cni.vtu
rename to test/references/test_flatplate_lowrekepsilon2cni.vtu
diff --git a/test/references/test_channel_zeroeq2c.vtu b/test/references/test_flatplate_zeroeq2c.vtu
similarity index 100%
rename from test/references/test_channel_zeroeq2c.vtu
rename to test/references/test_flatplate_zeroeq2c.vtu
diff --git a/test/references/test_channel_zeroeq2cni.vtu b/test/references/test_flatplate_zeroeq2cni.vtu
similarity index 100%
rename from test/references/test_channel_zeroeq2cni.vtu
rename to test/references/test_flatplate_zeroeq2cni.vtu
-- 
GitLab