mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrected colliding cloud sub-cycling
This commit is contained in:
@ -44,13 +44,17 @@ void Foam::CollidingCloud<CloudType>::setModels()
|
|||||||
|
|
||||||
template<class CloudType>
|
template<class CloudType>
|
||||||
template<class TrackData>
|
template<class TrackData>
|
||||||
void Foam::CollidingCloud<CloudType>::moveCollide(TrackData& td)
|
void Foam::CollidingCloud<CloudType>::moveCollide
|
||||||
|
(
|
||||||
|
TrackData& td,
|
||||||
|
const scalar deltaT
|
||||||
|
)
|
||||||
{
|
{
|
||||||
td.part() = TrackData::tpVelocityHalfStep;
|
td.part() = TrackData::tpVelocityHalfStep;
|
||||||
CloudType::move(td, this->solution().deltaT());
|
CloudType::move(td, deltaT);
|
||||||
|
|
||||||
td.part() = TrackData::tpLinearTrack;
|
td.part() = TrackData::tpLinearTrack;
|
||||||
CloudType::move(td, this->solution().deltaT());
|
CloudType::move(td, deltaT);
|
||||||
|
|
||||||
// td.part() = TrackData::tpRotationalTrack;
|
// td.part() = TrackData::tpRotationalTrack;
|
||||||
// CloudType::move(td);
|
// CloudType::move(td);
|
||||||
@ -60,7 +64,7 @@ void Foam::CollidingCloud<CloudType>::moveCollide(TrackData& td)
|
|||||||
this->collision().collide();
|
this->collision().collide();
|
||||||
|
|
||||||
td.part() = TrackData::tpVelocityHalfStep;
|
td.part() = TrackData::tpVelocityHalfStep;
|
||||||
CloudType::move(td, this->solution().deltaT());
|
CloudType::move(td, deltaT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -211,14 +215,14 @@ void Foam::CollidingCloud<CloudType>::motion(TrackData& td)
|
|||||||
|
|
||||||
while(!(++moveCollideSubCycle).end())
|
while(!(++moveCollideSubCycle).end())
|
||||||
{
|
{
|
||||||
moveCollide(td);
|
moveCollide(td, this->db().time().deltaTValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
moveCollideSubCycle.endSubCycle();
|
moveCollideSubCycle.endSubCycle();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
moveCollide(td);
|
moveCollide(td, this->db().time().deltaTValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -108,7 +108,7 @@ protected:
|
|||||||
|
|
||||||
//- Move-collide particles
|
//- Move-collide particles
|
||||||
template<class TrackData>
|
template<class TrackData>
|
||||||
void moveCollide(TrackData& td);
|
void moveCollide(TrackData& td, const scalar deltaT);
|
||||||
|
|
||||||
//- Reset state of cloud
|
//- Reset state of cloud
|
||||||
void cloudReset(CollidingCloud<CloudType>& c);
|
void cloudReset(CollidingCloud<CloudType>& c);
|
||||||
|
|||||||
Reference in New Issue
Block a user