solver iterateSphereParticles is added for testing (without particle insertion)
This commit is contained in:
parent
182e156786
commit
5b9b865b08
|
@ -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)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
#add_subdirectory(iterateSphereParticles)
|
||||
add_subdirectory(iterateSphereParticles)
|
||||
|
||||
add_subdirectory(iterateGeometry)
|
||||
#add_subdirectory(iterateGeometry)
|
||||
|
||||
add_subdirectory(sphereGranFlow)
|
||||
#add_subdirectory(sphereGranFlow)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
set(source_files
|
||||
iterateSphereParticles.cpp
|
||||
)
|
||||
set(link_lib Particles)
|
||||
|
||||
pFlow_make_executable_install(iterateSphereParticles source_files link_lib)
|
|
@ -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 . . ."<<END_REPORT;
|
||||
sphereParticles sphParticles(Control, proprties);
|
||||
|
||||
WARNING<<"Particle insertion has not been set yet!"<<END_WARNING;
|
|
@ -0,0 +1,89 @@
|
|||
|
||||
/*------------------------------- 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.
|
||||
|
||||
-----------------------------------------------------------------------------*/
|
||||
/**
|
||||
* \file sphereGranFlow.cpp
|
||||
* \brief sphereGranFlow solver
|
||||
*
|
||||
* This solver simulate granular flow of cohesion-less, spherical particles.
|
||||
* Particle insertion can be activated in the solver to gradually insert
|
||||
* particles into the simulation. Geometry can be defined generally with
|
||||
* built-in features of the code or through ASCII stl files or a combination
|
||||
* of both. For more information refer to [tutorials/sphereGranFlow/]
|
||||
* (https://github.com/PhasicFlow/phasicFlow/tree/main/tutorials/sphereGranFlow) folder.
|
||||
*/
|
||||
|
||||
#include "vocabs.hpp"
|
||||
#include "property.hpp"
|
||||
#include "sphereParticles.hpp"
|
||||
#include "systemControl.hpp"
|
||||
#include "commandLine.hpp"
|
||||
|
||||
using namespace pFlow;
|
||||
|
||||
/**
|
||||
* DEM solver for simulating granular flow of cohesion-less particles.
|
||||
*
|
||||
* In the root case directory just simply enter the following command to
|
||||
* run the simulation. For command line options use flag -h.
|
||||
*/
|
||||
int main( int argc, char* argv[])
|
||||
{
|
||||
|
||||
commandLine cmds(
|
||||
"sphereGranFlow",
|
||||
"DEM solver for non-cohesive spherical particles with particle insertion "
|
||||
"mechanism and moving geometry");
|
||||
|
||||
bool isCoupling = false;
|
||||
|
||||
if(!cmds.parse(argc, argv)) return 0;
|
||||
|
||||
// this should be palced in each main
|
||||
processors::initProcessors(argc, argv);
|
||||
initialize_pFlowProcessors();
|
||||
#include "initialize_Control.hpp"
|
||||
|
||||
#include "setProperty.hpp"
|
||||
|
||||
#include "createDEMComponents.hpp"
|
||||
|
||||
REPORT(0)<<"\nStart of time loop . . .\n"<<END_REPORT;
|
||||
|
||||
do
|
||||
{
|
||||
|
||||
sphParticles.beforeIteration();
|
||||
|
||||
sphParticles.iterate();
|
||||
|
||||
sphParticles.afterIteration();
|
||||
|
||||
}while(Control++);
|
||||
|
||||
REPORT(0)<<"\nEnd of time loop.\n"<<END_REPORT;
|
||||
|
||||
// this should be palced in each main
|
||||
#include "finalize.hpp"
|
||||
processors::finalizeProcessors();
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue