# PhasicFlow: solvers/iterateGeometry/iterateGeometry.cpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

iterateGeometry.cpp
Go to the documentation of this file.
/*------------------------------- 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.
-----------------------------------------------------------------------------*/
#include "vocabs.hpp"
#include "systemControl.hpp"
#include "geometry.hpp"
#include "commandLine.hpp"
//#include "readControlDict.hpp"
int main( int argc, char* argv[] )
{
pFlow::commandLine cmds(
"iterateGeometry",
"Performs simulation without particles, only geometry is solved");
bool isCoupling = false;
cmds.add_flag(
"-c,--coupling",
isCoupling,
"Is this a fluid-particle coupling simulation?");
if(!cmds.parse(argc, argv)) return 0;
// this should be palced in each main
pFlow::processors::initProcessors(argc, argv);
pFlow::initialize_pFlowProcessors();
#include "initialize_Control.hpp"
#include "setProperty.hpp"
#include "setSurfaceGeometry.hpp"
do
{
surfGeometry.iterate();
}while( Control++);
// this should be palced in each main
#include "finalize.hpp"
pFlow::processors::finalizeProcessors();
}
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