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:
@ -68,11 +68,9 @@ bool pFlow::Insertion<ShapeType>::writeInsertionDict
|
||||
}
|
||||
|
||||
template<typename ShapeType>
|
||||
pFlow::Insertion<ShapeType>::Insertion
|
||||
(
|
||||
pFlow::Insertion<ShapeType>::Insertion(
|
||||
particles& prtcl,
|
||||
const ShapeType& shapes
|
||||
)
|
||||
const ShapeType& shapes)
|
||||
:
|
||||
insertion(prtcl),
|
||||
shapes_(shapes)
|
||||
@ -81,6 +79,24 @@ pFlow::Insertion<ShapeType>::Insertion
|
||||
|
||||
}
|
||||
|
||||
template<typename ShapeType>
|
||||
pFlow::Insertion<ShapeType>::Insertion(
|
||||
fileSystem file,
|
||||
particles& prtcl,
|
||||
const ShapeType& shapes)
|
||||
:
|
||||
Insertion(prtcl, shapes)
|
||||
{
|
||||
dictionary inDict(file.fileName(), file);
|
||||
|
||||
if(!readInsertionDict(inDict))
|
||||
{
|
||||
fatalErrorInFunction<< "could not read from file "<<
|
||||
file<<endl;
|
||||
fatalExit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<typename ShapeType>
|
||||
bool pFlow::Insertion<ShapeType>::insertParticles
|
||||
|
@ -54,6 +54,8 @@ public:
|
||||
|
||||
Insertion(particles& prtcl, const ShapeType& shapes);
|
||||
|
||||
Insertion(fileSystem file, particles& prtcl, const ShapeType& shapes);
|
||||
|
||||
|
||||
bool insertParticles(real currentTime, real dt);
|
||||
|
||||
|
@ -71,4 +71,4 @@ pFlow::insertion::insertion
|
||||
)
|
||||
:
|
||||
particles_(prtcl)
|
||||
{}
|
||||
{}
|
||||
|
@ -54,6 +54,7 @@ public:
|
||||
|
||||
insertion(particles& prtcl);
|
||||
|
||||
|
||||
virtual ~insertion() = default;
|
||||
|
||||
bool isActive()const {
|
||||
|
@ -248,7 +248,6 @@ bool pFlow::systemControl::operator ++(int)
|
||||
}
|
||||
else if( time().finalTime() )
|
||||
{
|
||||
output<<"****************************************************************"<<endl;
|
||||
if( !time().write() )
|
||||
{
|
||||
fatalErrorInFunction;
|
||||
|
Reference in New Issue
Block a user