Particle insertion is added with anyList

- collision check is not active yet.
- variable velocity is not active yet.
- events and messages are not active yet.
This commit is contained in:
Hamidreza Norouzi
2024-04-12 22:39:09 -07:00
parent 97f0ddf82e
commit 9c2a9a81b0
71 changed files with 1878 additions and 1534 deletions

View File

@ -57,7 +57,7 @@ bool isCoupling = false;
if(!cmds.parse(argc, argv)) return 0;
// this should be palced in each main
processors::initProcessors(argc, argv);
processors::initProcessors(argc, argv);
initialize_pFlowProcessors();
#include "initialize_Control.hpp"

View File

@ -36,10 +36,9 @@ REPORT(0)<<"\nCreating particle insertion object . . ."<<END_REPORT;
sphParticles.shapes()
);*/
/*auto sphInsertion = sphereInsertion(
Control.caseSetup().path()+insertionFile__,
auto sphInsertion = sphereInsertion(
sphParticles,
sphParticles.shapes());*/
sphParticles.spheres());
REPORT(0)<<"\nCreating interaction model for sphere-sphere contact and sphere-wall contact . . ."<<END_REPORT;
auto interactionPtr = interaction::create(

View File

@ -38,7 +38,7 @@ Licence:
#include "geometry.hpp"
#include "sphereParticles.hpp"
#include "interaction.hpp"
//#include "Insertions.hpp"
#include "Insertions.hpp"
@ -80,14 +80,15 @@ initialize_pFlowProcessors();
do
{
/*if(! sphInsertion.insertParticles(
if(! sphInsertion.insertParticles(
Control.time().currentIter(),
Control.time().currentTime(),
Control.time().dt() ) )
{
fatalError<<
"particle insertion failed in sphereDFlow solver.\n";
return 1;
}*/
}
// set force to zero
surfGeometry.beforeIteration();