Commit 8513ebb5 authored by andy's avatar andy
Browse files

ENH: Added call to particle move on injection

parent 57470a38
......@@ -607,11 +607,16 @@ void Foam::InjectionModel<CloudType>::inject(TrackData& td)
pPtr->rho()
);
// Add the new parcel
td.cloud().addParticle(pPtr);
massAdded += pPtr->nParticle()*pPtr->mass();
parcelsAdded++;
if (pPtr->move(td, dt))
{
td.cloud().addParticle(pPtr);
massAdded += pPtr->nParticle()*pPtr->mass();
parcelsAdded++;
}
else
{
delete pPtr;
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment