www.cemf.ir
iterateGeometry.cpp
Go to the documentation of this file.
1 /*------------------------------- phasicFlow ---------------------------------
2  O C enter of
3  O O E ngineering and
4  O O M ultiscale modeling of
5  OOOOOOO F luid flow
6 ------------------------------------------------------------------------------
7  Copyright (C): www.cemf.ir
8  email: hamid.r.norouzi AT gmail.com
9 ------------------------------------------------------------------------------
10 Licence:
11  This file is part of phasicFlow code. It is a free software for simulating
12  granular and multiphase flows. You can redistribute it and/or modify it under
13  the terms of GNU General Public License v3 or any other later versions.
14 
15  phasicFlow is distributed to help others in their research in the field of
16  granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
17  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 
19 -----------------------------------------------------------------------------*/
32 #include "vocabs.hpp"
33 #include "systemControl.hpp"
34 #include "geometry.hpp"
35 #include "commandLine.hpp"
36 //#include "readControlDict.hpp"
37 
38 int main( int argc, char* argv[] )
39 {
40 
42  "iterateGeometry",
43  "Performs simulation without particles, only geometry is solved");
44 
45 
46  bool isCoupling = false;
47  cmds.add_flag(
48  "-c,--coupling",
49  isCoupling,
50  "Is this a fluid-particle coupling simulation?");
51 
52  if(!cmds.parse(argc, argv)) return 0;
53 
54 
55 // this should be palced in each main
58 #include "initialize_Control.hpp"
59 
60  #include "setProperty.hpp"
61  #include "setSurfaceGeometry.hpp"
62 
63 
64  do
65  {
66  surfGeometry.iterate();
67 
68  }while( Control++);
69 
70 // this should be palced in each main
71 #include "finalize.hpp"
73 
74 }
75 
initialize_Control.hpp
pFlow::processors::initProcessors
static void initProcessors(int argc, char *argv[])
Initialize MPI processors.
Definition: processors.cpp:42
setProperty.hpp
setSurfaceGeometry.hpp
pFlow::processors::finalizeProcessors
static void finalizeProcessors()
Finalize MPI processors.
Definition: processors.cpp:88
systemControl.hpp
main
int main(int argc, char *argv[])
Definition: iterateGeometry.cpp:38
pFlow::commandLine
Definition: commandLine.hpp:36
surfGeometry
auto & surfGeometry
Definition: setSurfaceGeometry.hpp:26
pFlow::commandLine::parse
bool parse(int argc, char **argv)
Definition: commandLine.cpp:50
geometry.hpp
pFlow::initialize_pFlowProcessors
void initialize_pFlowProcessors()
Definition: pFlowProcessors.cpp:10
vocabs.hpp
commandLine.hpp
Control
auto & Control
Definition: initialize_Control.hpp:47
finalize.hpp