|
[Sponsors] |
April 19, 2011, 05:20 |
possible bug in KinematicParcel
|
#1 |
New Member
Guanghao Wu
Join Date: Mar 2009
Location: Tokyo, Japan
Posts: 15
Rep Power: 17 |
Hello,
Suppose a particle is in a cell next to rebound type wall, while the fluid velocity of the cell center is toward to the wall. If the particle hits the wall, U_ = rebound of U_, but dt > ROOTVSMALL then U_ = Uc_; where Uc_ is toward to the wall, so in the next WHILE iteration, dt becomes very small 1E-19 order, but still dt > ROOTVSMALL and the WHILE iteration does not stop... ---------------------------------- In KinematicParcel.C template<class ParcelType> template<class TrackData> bool Foam::KinematicParcel<ParcelType>::move(TrackData& td) { ... while (td.keepParticle && !td.switchProcessor && tEnd > ROOTVSMALL) { .... if (p.active()) { dt *= p.trackToFace(p.position() + dt*U_, td); } tEnd -= dt; p.stepFraction() = 1.0 - tEnd/deltaT; // Avoid problems with extremely small timesteps if (dt > ROOTVSMALL) //=> if (dt > ROOTVSMALL && !p.onBoundary()) { // Update cell based properties p.setCellValues(td, dt, cellI); if (td.cloud().cellValueSourceCorrection()) { p.cellValueSourceCorrection(td, dt, cellI); } p.calc(td, dt, cellI); } if (p.onBoundary() && td.keepParticle) { if (isA<processorPolyPatch>(pbMesh[p.patch(p.face())])) { td.switchProcessor = true; } } .... } ... } Best regards, Guanghao |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Serious bug in LES interface | fs82 | OpenFOAM Bugs | 21 | November 16, 2009 09:15 |
bug in Rcomponents utility | cedric_duprat | OpenFOAM Bugs | 1 | May 7, 2009 03:56 |
Maybe a bug in CFX12.0 BETA? | frank | CFX | 4 | November 26, 2008 19:08 |
Bug reports | Mattijs Janssens (Mattijs) | OpenFOAM | 0 | January 10, 2005 11:05 |
Forum y2k Bug | Jonas Larsson | Main CFD Forum | 1 | January 5, 2000 11:22 |