2022-09-05 18:55:50 +00:00
|
|
|
/*------------------------------- 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.
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------*/
|
2023-03-25 21:10:00 +00:00
|
|
|
/**
|
|
|
|
* \file iterateGeometry.cpp
|
|
|
|
* \brief iterateGeometry solver
|
|
|
|
*
|
|
|
|
* This solver only requires the information for geometry. It is used to test
|
|
|
|
* the settings for wall definition and motion model to check if the walls move
|
|
|
|
* as expected or not.
|
|
|
|
* For more information refer to [tutorials/iterateGeometry/]
|
|
|
|
* (https://github.com/PhasicFlow/phasicFlow/tree/main/tutorials/iterateGeometry)
|
|
|
|
* folder.
|
|
|
|
*/
|
2024-02-06 05:28:30 +00:00
|
|
|
|
|
|
|
#include "vocabs.hpp"
|
2022-12-09 22:02:54 +00:00
|
|
|
#include "systemControl.hpp"
|
2024-02-06 05:28:30 +00:00
|
|
|
#include "geometry.hpp"
|
2022-12-09 22:02:54 +00:00
|
|
|
#include "commandLine.hpp"
|
2024-02-06 05:28:30 +00:00
|
|
|
//#include "readControlDict.hpp"
|
2022-09-05 18:55:50 +00:00
|
|
|
|
|
|
|
int main( int argc, char* argv[] )
|
|
|
|
{
|
|
|
|
|
2024-05-18 15:10:25 +00:00
|
|
|
pFlow::commandLine cmds(
|
2022-12-03 08:42:56 +00:00
|
|
|
"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;
|
|
|
|
|
|
|
|
|
2022-09-05 18:55:50 +00:00
|
|
|
// this should be palced in each main
|
2024-05-18 15:10:25 +00:00
|
|
|
pFlow::processors::initProcessors(argc, argv);
|
|
|
|
pFlow::initialize_pFlowProcessors();
|
2022-12-09 22:02:54 +00:00
|
|
|
#include "initialize_Control.hpp"
|
2022-09-05 18:55:50 +00:00
|
|
|
|
2022-12-09 22:02:54 +00:00
|
|
|
#include "setProperty.hpp"
|
2024-03-24 10:01:08 +00:00
|
|
|
#include "setSurfaceGeometry.hpp"
|
2022-09-05 18:55:50 +00:00
|
|
|
|
2024-03-24 10:01:08 +00:00
|
|
|
|
|
|
|
do
|
2022-09-05 18:55:50 +00:00
|
|
|
{
|
|
|
|
surfGeometry.iterate();
|
|
|
|
|
2024-03-24 10:01:08 +00:00
|
|
|
}while( Control++);
|
2022-09-05 18:55:50 +00:00
|
|
|
|
|
|
|
// this should be palced in each main
|
2022-12-09 22:02:54 +00:00
|
|
|
#include "finalize.hpp"
|
2024-05-18 15:10:25 +00:00
|
|
|
pFlow::processors::finalizeProcessors();
|
2022-09-05 18:55:50 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|