DPMFoam如何得到粒子的位置
-
const polyMesh& pmesh = this->owner().mesh(); List<DynamicList<typename CloudType::parcelType*>>& cellOccupancy = this->owner().cellOccupancy(); // check all cells containing particles forAll(pmesh.cells(), celli) { if ( cellOccupancy[celli].size() == 0 ) { // do something } else { // do something else } }