diff --git a/src/mesa_pd/kernel/VBondModel/ViscousDamping.h b/src/mesa_pd/kernel/cnt/ViscousDamping.h similarity index 98% rename from src/mesa_pd/kernel/VBondModel/ViscousDamping.h rename to src/mesa_pd/kernel/cnt/ViscousDamping.h index 9f9fe2c693c35b9093fcbbb5ea9aed12a0684afe..5165c0c8decc4ad05900836b889b0f0685810ff5 100644 --- a/src/mesa_pd/kernel/VBondModel/ViscousDamping.h +++ b/src/mesa_pd/kernel/cnt/ViscousDamping.h @@ -34,7 +34,7 @@ namespace walberla { namespace mesa_pd { namespace kernel { -namespace VBondModel { +namespace cnt { class ViscousDamping { @@ -71,7 +71,7 @@ inline void ViscousDamping::operator()(const size_t p_idx1, } -} //namespace VBondModel +} //namespace cnt } //namespace kernel } //namespace mesa_pd } //namespace walberla \ No newline at end of file diff --git a/src/mesa_pd/kernel/VBondModel/WallContact.h b/src/mesa_pd/kernel/cnt/WallContact.h similarity index 98% rename from src/mesa_pd/kernel/VBondModel/WallContact.h rename to src/mesa_pd/kernel/cnt/WallContact.h index 24d153ca5a6d62e18aeff7cb7f69d702f4ed2e39..5c221025a535399ff243a9995abc8be055cfe09e 100644 --- a/src/mesa_pd/kernel/VBondModel/WallContact.h +++ b/src/mesa_pd/kernel/cnt/WallContact.h @@ -34,7 +34,7 @@ namespace walberla { namespace mesa_pd { namespace kernel { -namespace VBondModel { +namespace cnt { /** * Repulsive wall interaction kernel. @@ -107,7 +107,7 @@ inline void WallContact::operator()(const size_t p_idx, addForceAtomic( p_idx, ac, Vec3(0_r, 0_r, F_) ); } -} //namespace VBondModel +} //namespace cnt } //namespace kernel } //namespace mesa_pd } //namespace walberla \ No newline at end of file diff --git a/tests/mesa_pd/CMakeLists.txt b/tests/mesa_pd/CMakeLists.txt index d84af9fb2bb46c8dafaf37ebeba3b4fcf8f1237c..983cbca6e994be63a8cc4a275d6e8457b501a24a 100644 --- a/tests/mesa_pd/CMakeLists.txt +++ b/tests/mesa_pd/CMakeLists.txt @@ -93,6 +93,12 @@ waLBerla_execute_test( NAME MESA_PD_Kernel_CNT_VBondContact ) waLBerla_compile_test( NAME MESA_PD_Kernel_CNT_VBondContactIntegration FILES kernel/cnt/VBondContactIntegration.test.cpp DEPENDS core ) waLBerla_execute_test( NAME MESA_PD_Kernel_CNT_VBondContactIntegration ) +waLBerla_compile_test( NAME MESA_PD_Kernel_CNT_ViscousDamping FILES kernel/cnt/ViscousDamping.test.cpp DEPENDS core ) +waLBerla_execute_test( NAME MESA_PD_Kernel_CNT_ViscousDamping ) + +waLBerla_compile_test( NAME MESA_PD_Kernel_CNT_WallContact FILES kernel/cnt/WallContact.test.cpp DEPENDS core ) +waLBerla_execute_test( NAME MESA_PD_Kernel_CNT_WallContact ) + waLBerla_compile_test( NAME MESA_PD_Kernel_CoefficientOfRestitutionSD FILES kernel/CoefficientOfRestitutionSD.cpp DEPENDS core ) waLBerla_execute_test( NAME MESA_PD_Kernel_CoefficientOfRestitutionSDEuler COMMAND $<TARGET_FILE:MESA_PD_Kernel_CoefficientOfRestitutionSD> ) waLBerla_execute_test( NAME MESA_PD_Kernel_CoefficientOfRestitutionSDVelocityVerlet COMMAND $<TARGET_FILE:MESA_PD_Kernel_CoefficientOfRestitutionSD> --useVV ) @@ -173,12 +179,6 @@ waLBerla_execute_test( NAME MESA_PD_Kernel_SyncNextNeighborsBlockForest PROCES waLBerla_compile_test( NAME MESA_PD_Kernel_TemperatureIntegration FILES kernel/TemperatureIntegration.cpp DEPENDS core ) waLBerla_execute_test( NAME MESA_PD_Kernel_TemperatureIntegration ) -waLBerla_compile_test( NAME MESA_PD_Kernel_VBondModel_ViscousDamping FILES kernel/VBondModel/ViscousDamping.test.cpp DEPENDS core ) -waLBerla_execute_test( NAME MESA_PD_Kernel_VBondModel_ViscousDamping ) - -waLBerla_compile_test( NAME MESA_PD_Kernel_VBondModel_WallContact FILES kernel/VBondModel/WallContact.test.cpp DEPENDS core ) -waLBerla_execute_test( NAME MESA_PD_Kernel_VBondModel_WallContact ) - waLBerla_compile_test( NAME MESA_PD_Kernel_VelocityVerlet FILES kernel/VelocityVerlet.cpp DEPENDS core ) waLBerla_execute_test( NAME MESA_PD_Kernel_VelocityVerlet ) diff --git a/tests/mesa_pd/kernel/VBondModel/ViscousDamping.test.cpp b/tests/mesa_pd/kernel/cnt/ViscousDamping.test.cpp similarity index 96% rename from tests/mesa_pd/kernel/VBondModel/ViscousDamping.test.cpp rename to tests/mesa_pd/kernel/cnt/ViscousDamping.test.cpp index 8f54645ff22dc2290386b2e43b8f2a7236bb95e0..593ddecacd371e33686d716eea5f0dc402474377 100644 --- a/tests/mesa_pd/kernel/VBondModel/ViscousDamping.test.cpp +++ b/tests/mesa_pd/kernel/cnt/ViscousDamping.test.cpp @@ -23,7 +23,7 @@ #include <mesa_pd/data/ParticleAccessor.h> #include <mesa_pd/data/ParticleStorage.h> -#include <mesa_pd/kernel/VBondModel/ViscousDamping.h> +#include <mesa_pd/kernel/cnt/ViscousDamping.h> #include <core/Environment.h> #include <core/logging/Logging.h> @@ -54,7 +54,7 @@ int main( int argc, char ** argv ) data::ParticleAccessor ac(ps); //init kernels - kernel::VBondModel::ViscousDamping damping(0.2_r,0.5_r); + kernel::cnt::ViscousDamping damping(0.2_r,0.5_r); WALBERLA_CHECK_FLOAT_EQUAL(damping.getForceDampingFactor(), 0.2_r); WALBERLA_CHECK_FLOAT_EQUAL(damping.getTorqueDampingFactor(), diff --git a/tests/mesa_pd/kernel/VBondModel/WallContact.test.cpp b/tests/mesa_pd/kernel/cnt/WallContact.test.cpp similarity index 97% rename from tests/mesa_pd/kernel/VBondModel/WallContact.test.cpp rename to tests/mesa_pd/kernel/cnt/WallContact.test.cpp index f923ee41d8c0271e1057e58f35218f12ec22c3f9..50165fd4fbde9203569ef5c2244690a4d700d47f 100644 --- a/tests/mesa_pd/kernel/VBondModel/WallContact.test.cpp +++ b/tests/mesa_pd/kernel/cnt/WallContact.test.cpp @@ -23,7 +23,7 @@ #include <mesa_pd/data/ParticleAccessor.h> #include <mesa_pd/data/ParticleStorage.h> -#include <mesa_pd/kernel/VBondModel/WallContact.h> +#include <mesa_pd/kernel/cnt/WallContact.h> #include <core/Environment.h> #include <core/logging/Logging.h> @@ -50,7 +50,7 @@ int main( int argc, char ** argv ) p.setPosition(0, Vec3(0,0,0)); //init kernels - kernel::VBondModel::WallContact wallContact(0_r); + kernel::cnt::WallContact wallContact(0_r); auto calcForce = [&](const real_t zPos) {