mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
change in particle insertion ctor and addition to DEMSystem
This commit is contained in:
@ -20,13 +20,22 @@ Licence:
|
||||
|
||||
#include "sphereDEMSystem.hpp"
|
||||
|
||||
void pFlow::sphereDEMSystem::loop()
|
||||
bool pFlow::sphereDEMSystem::loop()
|
||||
{
|
||||
|
||||
do
|
||||
{
|
||||
Control().timers().start();
|
||||
|
||||
if(! insertion_().insertParticles(
|
||||
Control().time().currentTime(),
|
||||
Control().time().dt() ) )
|
||||
{
|
||||
fatalError<<
|
||||
"particle insertion failed in sphereDFlow solver.\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
geometry_->beforeIteration();
|
||||
|
||||
interaction_->beforeIteration();
|
||||
@ -70,7 +79,11 @@ pFlow::sphereDEMSystem::sphereDEMSystem(
|
||||
REPORT(0)<<"\nReading sphere particles . . ."<<endREPORT;
|
||||
particles_ = makeUnique<sphereFluidParticles>(Control(), Property());
|
||||
|
||||
|
||||
insertion_ = makeUnique<sphereInsertion>(
|
||||
Control().caseSetup().path()+insertionFile__,
|
||||
particles_(),
|
||||
particles_().shapes());
|
||||
|
||||
REPORT(0)<<"\nCreating interaction model for sphere-sphere contact and sphere-wall contact . . ."<<endREPORT;
|
||||
interaction_ = interaction::create(
|
||||
Control(),
|
||||
|
@ -82,7 +82,7 @@ protected:
|
||||
return interaction_();
|
||||
}
|
||||
|
||||
void loop();
|
||||
bool loop();
|
||||
|
||||
public:
|
||||
|
||||
|
Reference in New Issue
Block a user