2022-09-05 06:01:53 +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.
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
#include "property.H"
|
|
|
|
#include "geometry.H"
|
|
|
|
#include "sphereParticles.H"
|
|
|
|
#include "Insertions.H"
|
|
|
|
#include "systemControl.H"
|
|
|
|
#include "contactSearch.H"
|
|
|
|
#include "sphereInteraction.H"
|
|
|
|
#include "commandLine.H"
|
2022-12-03 08:42:56 +00:00
|
|
|
#include "readControlDict.H"
|
2022-09-05 06:01:53 +00:00
|
|
|
|
|
|
|
using pFlow::output;
|
|
|
|
using pFlow::endl;
|
|
|
|
using pFlow::property;
|
|
|
|
using pFlow::sphereParticles;
|
|
|
|
using pFlow::objectFile;
|
|
|
|
using pFlow::sphereInsertion;
|
|
|
|
using pFlow::insertionFile__;
|
|
|
|
using pFlow::interactionFile__;
|
|
|
|
using pFlow::contactSearch;
|
|
|
|
using pFlow::interaction;
|
|
|
|
using pFlow::commandLine;
|
|
|
|
|
|
|
|
int main( int argc, char* argv[])
|
|
|
|
{
|
|
|
|
|
|
|
|
commandLine cmds(
|
|
|
|
"sphereGranFlow",
|
|
|
|
"DEM solver for non-cohesive spherical particles with particle insertion "
|
|
|
|
"mechanism and moving geometry");
|
|
|
|
|
2022-12-03 08:42:56 +00:00
|
|
|
bool isCoupling = false;
|
|
|
|
|
2022-09-05 06:01:53 +00:00
|
|
|
if(!cmds.parse(argc, argv)) return 0;
|
|
|
|
|
|
|
|
// this should be palced in each main
|
|
|
|
#include "initialize_Control.H"
|
|
|
|
|
|
|
|
#include "setProperty.H"
|
|
|
|
#include "setSurfaceGeometry.H"
|
|
|
|
|
|
|
|
|
|
|
|
#include "createDEMComponents.H"
|
|
|
|
|
|
|
|
Report(0)<<"\nStart of time loop . . .\n"<<endReport;
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
Control.timers().start();
|
|
|
|
|
|
|
|
if(! sphInsertion.insertParticles(
|
|
|
|
Control.time().currentTime(),
|
|
|
|
Control.time().dt() ) )
|
|
|
|
{
|
|
|
|
fatalError<<
|
|
|
|
"particle insertion failed in sphereDFlow solver.\n";
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
surfGeometry.beforeIteration();
|
|
|
|
|
|
|
|
sphInteraction.beforeIteration();
|
|
|
|
|
|
|
|
sphParticles.beforeIteration();
|
|
|
|
|
|
|
|
|
|
|
|
sphInteraction.iterate();
|
|
|
|
|
|
|
|
sphParticles.iterate();
|
|
|
|
|
|
|
|
surfGeometry.iterate();
|
|
|
|
|
|
|
|
sphParticles.afterIteration();
|
|
|
|
|
|
|
|
surfGeometry.afterIteration();
|
|
|
|
|
|
|
|
|
|
|
|
Control.timers().end();
|
|
|
|
|
|
|
|
}while(Control++);
|
|
|
|
|
|
|
|
Report(0)<<"\nEnd of time loop.\n"<<endReport;
|
|
|
|
|
|
|
|
// this should be palced in each main
|
|
|
|
#include "finalize.H"
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|