www.cemf.ir
iterateSphereParticles.cpp
Go to the documentation of this file.
1 
2 /*------------------------------- phasicFlow ---------------------------------
3  O C enter of
4  O O E ngineering and
5  O O M ultiscale modeling of
6  OOOOOOO F luid flow
7 ------------------------------------------------------------------------------
8  Copyright (C): www.cemf.ir
9  email: hamid.r.norouzi AT gmail.com
10 ------------------------------------------------------------------------------
11 Licence:
12  This file is part of phasicFlow code. It is a free software for simulating
13  granular and multiphase flows. You can redistribute it and/or modify it under
14  the terms of GNU General Public License v3 or any other later versions.
15 
16  phasicFlow is distributed to help others in their research in the field of
17  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
18  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 
20 -----------------------------------------------------------------------------*/
33 #include "vocabs.hpp"
34 #include "property.hpp"
35 #include "sphereParticles.hpp"
36 #include "systemControl.hpp"
37 #include "commandLine.hpp"
38 
39 
40 
47 int main( int argc, char* argv[])
48 {
49 
51  "sphereGranFlow",
52  "DEM solver for non-cohesive spherical particles with particle insertion "
53  "mechanism and moving geometry");
54 
55 bool isCoupling = false;
56 
57 if(!cmds.parse(argc, argv)) return 0;
58 
59 // this should be palced in each main
62 #include "initialize_Control.hpp"
63 
64  #include "setProperty.hpp"
65 
66  #include "createDEMComponents.hpp"
67 
68  REPORT(0)<<"\nStart of time loop . . .\n"<<END_REPORT;
69 
70  do
71  {
72 
74 
76 
78 
79  }while(Control++);
80 
81  REPORT(0)<<"\nEnd of time loop.\n"<<END_REPORT;
82 
83 // this should be palced in each main
84 #include "finalize.hpp"
86 
87 
88 }
89 
initialize_Control.hpp
pFlow::processors::initProcessors
static void initProcessors(int argc, char *argv[])
Initialize MPI processors.
Definition: processors.cpp:42
setProperty.hpp
REPORT
#define REPORT(n)
Definition: streams.hpp:39
pFlow::processors::finalizeProcessors
static void finalizeProcessors()
Finalize MPI processors.
Definition: processors.cpp:88
systemControl.hpp
pFlow::commandLine
Definition: commandLine.hpp:36
main
int main(int argc, char *argv[])
DEM solver for simulating granular flow of cohesion-less particles.
Definition: iterateSphereParticles.cpp:47
pFlow::commandLine::parse
bool parse(int argc, char **argv)
Definition: commandLine.cpp:50
pFlow::particles::afterIteration
bool afterIteration() override
This is called in time loop, after iterate.
Definition: particles.cpp:110
pFlow::sphereParticles::iterate
bool iterate() override
iterate particles
Definition: sphereParticles.cpp:537
pFlow::initialize_pFlowProcessors
void initialize_pFlowProcessors()
Definition: pFlowProcessors.cpp:10
END_REPORT
#define END_REPORT
Definition: streams.hpp:40
pFlow::sphereParticles::beforeIteration
bool beforeIteration() override
before iteration step
Definition: sphereParticles.cpp:515
sphereParticles.hpp
property.hpp
vocabs.hpp
sphParticles
pFlow::sphereParticles sphParticles(Control, proprties)
commandLine.hpp
createDEMComponents.hpp
Control
auto & Control
Definition: initialize_Control.hpp:47
finalize.hpp