diff --git a/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp b/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp index ccb7cc6318cc9838efae0063809658005c5564f8..de8dd9d31c658d7d4a670acc7c507fd975b56e99 100644 --- a/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp +++ b/apps/benchmarks/ForcesOnSphereNearPlaneInShearFlow/ForcesOnSphereNearPlaneInShearFlow.cpp @@ -361,7 +361,7 @@ private: }; void initializeCouetteProfile( const shared_ptr< StructuredBlockStorage > & blocks, const BlockDataID & pdfFieldID, const BlockDataID & boundaryHandlingID, - const real_t & substrateHeight, const real_t & domainHeight, const real_t wallVelocity ) + const real_t & domainHeight, const real_t wallVelocity ) { const real_t rho = real_c(1); @@ -377,10 +377,8 @@ void initializeCouetteProfile( const shared_ptr< StructuredBlockStorage > & bloc Vector3< real_t > velocity( real_c(0) ); - if( coord[2] >= substrateHeight ) - { - velocity[0] = wallVelocity * (coord[2] - substrateHeight) / ( domainHeight - substrateHeight); - } + velocity[0] = wallVelocity * coord[2] / domainHeight; + pdfField->setToEquilibrium( x, y, z, velocity, rho ); ) } @@ -632,7 +630,7 @@ int main( int argc, char **argv ) // initialize Couette velocity profile in whole domain - if( !zeroShearTest ) initializeCouetteProfile(blocks, pdfFieldID, boundaryHandlingID, diameter, domainHeight, wallVelocity); + if( !zeroShearTest ) initializeCouetteProfile(blocks, pdfFieldID, boundaryHandlingID, domainHeight, wallVelocity); /////////////// // TIME LOOP // diff --git a/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp b/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp index 80d152379546eb88a70eca1ed23cead805b32466..1a4293fec9670eabbe9b0669f24e37b61d674ee3 100644 --- a/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp +++ b/tests/pe_coupling/discrete_particle_methods/HinderedSettlingDynamicsDPM.cpp @@ -62,7 +62,6 @@ namespace hindered_settling_dynamics_dpm using namespace walberla; using walberla::uint_t; - /////////////// // CONSTANTS // /////////////// diff --git a/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp b/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp index 2cbdd76dc50ff5df1d5ae15dfe98a02fcbeb4c6a..f40e6156de97586ebb7029e269caa4862a62e5b3 100644 --- a/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp +++ b/tests/pe_coupling/discrete_particle_methods/SphereWallCollisionBehaviorDPM.cpp @@ -61,7 +61,6 @@ namespace sphere_wall_collision_behavior_dpm using namespace walberla; using walberla::uint_t; - /////////////// // CONSTANTS // /////////////// diff --git a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp index caa0987ed52d9bb2e03b6ffd6618dbe7063e81d1..2e449157fc7bf338a321fcb794e917d63e227e84 100644 --- a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEM.cpp @@ -73,11 +73,10 @@ namespace drag_force_sphere_mem using namespace walberla; using walberla::uint_t; -using lbm::force_model::SimpleConstant; // PDF field, flag field & body field using ForceModel_T = lbm::force_model::LuoConstant; -typedef lbm::D3Q19< lbm::collision_model::TRT, false, ForceModel_T, 1> LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT, false, ForceModel_T > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp index f940ae03303270c35832b1cd2c4ef16ddc95515f..358d165bae76cd446dc8709fd7059b2eb9f6a0ae 100644 --- a/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/DragForceSphereMEMRefinement.cpp @@ -83,10 +83,9 @@ namespace drag_force_sphere_mem_refinement using namespace walberla; using walberla::uint_t; -using lbm::force_model::SimpleConstant; // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false, lbm::force_model::SimpleConstant, 1> LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT, false, lbm::force_model::SimpleConstant > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; @@ -531,7 +530,8 @@ int main( int argc, char **argv ) //////////////////////// // create the lattice model - LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ), SimpleConstant( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); + LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ), + lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, diff --git a/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp index 2afeebd2d7d60a9653250e6f8bd38c2d4ae57382..b494339bbeaa0c1c8c7af8e0e3185a741d5b70ea 100644 --- a/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/GlobalBodyAsBoundaryMEMStaticRefinement.cpp @@ -79,7 +79,7 @@ using walberla::uint_t; ////////////// // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp b/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp index 0f4dbd3fecab43b90f7a5c12601bdb9beb3f16e0..2ebe21f515c607ccc96698d66d137dc0ce3f2b4e 100644 --- a/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/LubricationCorrectionMEM.cpp @@ -77,8 +77,7 @@ using walberla::uint_t; ////////////// // pdf field & flag field - -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp b/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp index 2ecfd788de6d83a3dc1e9677f7bdba9a437095b9..678aa5822d5525967d045d2065f0e54aff873d2f 100644 --- a/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/PeriodicParticleChannelMEM.cpp @@ -78,14 +78,12 @@ namespace periodic_particle_channel_mem using namespace walberla; using walberla::uint_t; - - ////////////// // TYPEDEFS // ////////////// // pdf field & flag field -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp b/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp index a238ce167bc2e2b17f7ad38d5faf1d4667b8bbdc..ca31d93920e212d15884fc0c77a152f55805fbfb 100644 --- a/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SegreSilberbergMEM.cpp @@ -76,14 +76,13 @@ namespace segre_silberberg_mem using namespace walberla; using walberla::uint_t; -using lbm::force_model::SimpleConstant; ////////////// // TYPEDEFS // ////////////// // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false, SimpleConstant > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT, false, lbm::force_model::SimpleConstant > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; @@ -582,7 +581,8 @@ int main( int argc, char **argv ) //////////////////////// // create the lattice model - LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ), SimpleConstant( Vector3<real_t> ( setup.forcing, real_t(0), real_t(0) ) ) ); + LatticeModel_T latticeModel = LatticeModel_T( lbm::collision_model::TRT::constructWithMagicNumber( omega ), + lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.forcing, real_t(0), real_t(0) ) ) ); // add PDF field BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp index b90dcf0056803b867190b27ccae6dd2e640620ec..482bc1883b9335798770053d4d4e6889d1849779 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEM.cpp @@ -80,7 +80,7 @@ using walberla::uint_t; ////////////// // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp index 885e9ed5f5e9e075800de8ccaabcd9e7a4d96203..558747d90711f0a7e5f01c600e3621c3dadb849e 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMDynamicRefinement.cpp @@ -86,7 +86,7 @@ using walberla::uint_t; ////////////// // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp index 3cf8bf5fd8b8ee09e99f7455045ed437a287a376..f0863496bfc2b1a6c311447e1661de8e37cd1cd2 100644 --- a/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SettlingSphereMEMStaticRefinement.cpp @@ -82,7 +82,7 @@ using walberla::uint_t; ////////////// // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp b/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp index adca4508693a8a5802c3ea3a5fa883ad00bef304..1d3bab503558cede6f0d84773ec7b717869157c2 100644 --- a/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp +++ b/tests/pe_coupling/momentum_exchange_method/SquirmerTest.cpp @@ -80,8 +80,7 @@ using namespace walberla; using walberla::uint_t; // PDF field, flag field & body field -using ForceModel_T = lbm::force_model::None; -typedef lbm::D3Q19<lbm::collision_model::TRT, false, ForceModel_T> LatticeModel_T; +typedef lbm::D3Q19<lbm::collision_model::TRT> LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp b/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp index 0205b4695a0eeff177c2d6a00f5acac3ac8c6315..b654d5dfaacbad39af9e10ebd3e5d803b9c44d33 100644 --- a/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/TaylorCouetteFlowMEM.cpp @@ -69,14 +69,12 @@ namespace taylor_coette_flow_mem using namespace walberla; using walberla::uint_t; - - ////////////// // TYPEDEFS // ////////////// // pdf field & flag field -typedef lbm::D3Q19< lbm::collision_model::TRT, false > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp b/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp index 7f43c9fd26fd49fc1453fcb677542cab9064c5b4..68a74cde6dda8d148e7928429a5ee9b4f8dfe168 100644 --- a/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp +++ b/tests/pe_coupling/momentum_exchange_method/TorqueSphereMEM.cpp @@ -76,7 +76,7 @@ using namespace walberla; using walberla::uint_t; // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::TRT, false, lbm::force_model::None, 1> LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::TRT > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp index fb92b0c68975877bf00a5066acd6ce08735113ba..b5e53a23fc1856a18548a4929634e94c5b320179 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSM.cpp @@ -73,11 +73,10 @@ namespace drag_force_sphere_psm using namespace walberla; using walberla::uint_t; -using lbm::force_model::SimpleConstant; // PDF field, flag field & body field using ForceModel_T = lbm::force_model::LuoConstant; -typedef lbm::D3Q19< lbm::collision_model::SRT, false, ForceModel_T, 1> LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::SRT, false, ForceModel_T> LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; diff --git a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp index 58add3e2404c162f19f653552033e1be81a322ea..b0ca02da90f9b912399af654658655dd8f8219b1 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/DragForceSpherePSMRefinement.cpp @@ -83,10 +83,9 @@ namespace drag_force_sphere_psm_refinement using namespace walberla; using walberla::uint_t; -using lbm::force_model::SimpleConstant; // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::SRT, false, lbm::force_model::SimpleConstant, 1> LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::SRT, false, lbm::force_model::SimpleConstant > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; @@ -536,7 +535,7 @@ int main( int argc, char **argv ) //////////////////////// // create the lattice model - LatticeModel_T latticeModel = LatticeModel_T( omega, SimpleConstant( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); + LatticeModel_T latticeModel = LatticeModel_T( omega, lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.extForce, 0, 0 ) ) ); // add PDF field ( uInit = <0,0,0>, rhoInit = 1 ) BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, diff --git a/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp b/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp index 46f2a10e4fbc83242bd90a2b1510a4425543a090..935a0c1d51ef9dfbc175772cb1a7540e617dcaf1 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/SegreSilberbergPSM.cpp @@ -76,14 +76,13 @@ namespace segre_silberberg_psm using namespace walberla; using walberla::uint_t; -using lbm::force_model::SimpleConstant; ////////////// // TYPEDEFS // ////////////// // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::SRT, false, SimpleConstant > LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::SRT, false, lbm::force_model::SimpleConstant > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>; @@ -532,7 +531,7 @@ int main( int argc, char **argv ) //////////////////////// // create the lattice model - LatticeModel_T latticeModel = LatticeModel_T( omega, SimpleConstant( Vector3<real_t> ( setup.forcing, real_c(0), real_c(0) ) ) ); + LatticeModel_T latticeModel = LatticeModel_T( omega, lbm::force_model::SimpleConstant( Vector3<real_t> ( setup.forcing, real_c(0), real_c(0) ) ) ); // add PDF field BlockDataID pdfFieldID = lbm::addPdfFieldToStorage< LatticeModel_T >( blocks, "pdf field (zyxf)", latticeModel, diff --git a/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp b/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp index 64114c43e0f76a36da85962123e6ca71074fb144..7cd33d47ed694d99b08525e161837bb85b4b8b7a 100644 --- a/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp +++ b/tests/pe_coupling/partially_saturated_cells_method/TorqueSpherePSM.cpp @@ -75,7 +75,7 @@ using namespace walberla; using walberla::uint_t; // PDF field, flag field & body field -typedef lbm::D3Q19< lbm::collision_model::SRT, false, lbm::force_model::None, 1> LatticeModel_T; +typedef lbm::D3Q19< lbm::collision_model::SRT, false > LatticeModel_T; using Stencil_T = LatticeModel_T::Stencil; using PdfField_T = lbm::PdfField<LatticeModel_T>;