From 5b9b865b088cc44041f28fa9df607dd8d7e54832 Mon Sep 17 00:00:00 2001 From: Hamidreza Norouzi Date: Mon, 29 Jan 2024 07:58:19 -0800 Subject: [PATCH] solver iterateSphereParticles is added for testing (without particle insertion) --- CMakeLists.txt | 2 +- solvers/CMakeLists.txt | 6 +- solvers/iterateSphereParticles/CMakeLists.txt | 7 ++ .../createDEMComponents.hpp | 25 ++++++ .../iterateSphereParticles.cpp | 89 +++++++++++++++++++ 5 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 solvers/iterateSphereParticles/CMakeLists.txt create mode 100755 solvers/iterateSphereParticles/createDEMComponents.hpp create mode 100755 solvers/iterateSphereParticles/iterateSphereParticles.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cd85bfa..927c1ec2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,7 +71,7 @@ include_directories(src/setHelpers src/demComponent "${PROJECT_BINARY_DIR}") add_subdirectory(src) -#add_subdirectory(solvers) +add_subdirectory(solvers) add_subdirectory(utilities) diff --git a/solvers/CMakeLists.txt b/solvers/CMakeLists.txt index 45bc40aa..4cd77431 100644 --- a/solvers/CMakeLists.txt +++ b/solvers/CMakeLists.txt @@ -1,7 +1,7 @@ -#add_subdirectory(iterateSphereParticles) +add_subdirectory(iterateSphereParticles) -add_subdirectory(iterateGeometry) +#add_subdirectory(iterateGeometry) -add_subdirectory(sphereGranFlow) +#add_subdirectory(sphereGranFlow) diff --git a/solvers/iterateSphereParticles/CMakeLists.txt b/solvers/iterateSphereParticles/CMakeLists.txt new file mode 100644 index 00000000..59700110 --- /dev/null +++ b/solvers/iterateSphereParticles/CMakeLists.txt @@ -0,0 +1,7 @@ + +set(source_files +iterateSphereParticles.cpp +) +set(link_lib Particles) + +pFlow_make_executable_install(iterateSphereParticles source_files link_lib) diff --git a/solvers/iterateSphereParticles/createDEMComponents.hpp b/solvers/iterateSphereParticles/createDEMComponents.hpp new file mode 100755 index 00000000..85cb798a --- /dev/null +++ b/solvers/iterateSphereParticles/createDEMComponents.hpp @@ -0,0 +1,25 @@ +/*------------------------------- phasicFlow --------------------------------- + O C enter of + O O E ngineering and + O O M ultiscale modeling of + OOOOOOO F luid flow +------------------------------------------------------------------------------ + Copyright (C): www.cemf.ir + email: hamid.r.norouzi AT gmail.com +------------------------------------------------------------------------------ +Licence: + This file is part of phasicFlow code. It is a free software for simulating + granular and multiphase flows. You can redistribute it and/or modify it under + the terms of GNU General Public License v3 or any other later versions. + + phasicFlow is distributed to help others in their research in the field of + granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +-----------------------------------------------------------------------------*/ + +// +REPORT(0)<<"\nReading sphere particles . . ."<