BUG: corrected colliding cloud sub-cycling

This commit is contained in:
andy
2011-03-01 16:17:14 +00:00
parent cefb78fc6d
commit e694ee9ca5
2 changed files with 11 additions and 7 deletions

View File

@ -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());
} }
} }

View File

@ -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);