请问大神们,这个函数最后到底指向了哪????this->append(pPtr);
-
scalar Re = rhoAv*Urmag*dChild/muAv; // Add child parcel as copy of parent SprayParcel<ParcelType>* child = new SprayParcel<ParcelType>(*this); child->origId() = this->getNewParticleID(); child->d() = dChild; child->d0() = dChild; const scalar massChild = child->mass(); child->mass0() = massChild; child->nParticle() = parcelMassChild/massChild; const forceSuSp Fcp = forces.calcCoupled(*child, dt, massChild, Re, muAv); const forceSuSp Fncp = forces.calcNonCoupled(*child, dt, massChild, Re, muAv); child->age() = 0.0; child->liquidCore() = 0.0; child->KHindex() = 1.0; child->y() = td.cloud().breakup().y0(); child->yDot() = td.cloud().breakup().yDot0(); child->tc() = 0.0; child->ms() = -GREAT; child->injector() = this->injector(); child->tMom() = massChild/(Fcp.Sp() + Fncp.Sp()); child->user() = 0.0; child->setCellValues(td, dt, celli); td.cloud().addParticle(child);
所以说,最后addParticle会把child这个函数中的数据用来添加粒子。
但是哪里能查到这个addParticle都需要什么参数呢?
比如说我想增加child 的数量,单独设置每个child都有单独的速度呢?