MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / changeCell

Function changeCell

src/lagrangian/basic/particle/particle.C:425–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425void Foam::particle::changeCell()
426{
427 // Set the cell to be the one on the other side of the face
428 const label ownerCellI = mesh_.faceOwner()[tetFacei_];
429 const bool isOwner = celli_ == ownerCellI;
430 celli_ = isOwner ? mesh_.faceNeighbour()[tetFacei_] : ownerCellI;
431
432 // Reflect to account for the change of triangle orientation in the new cell
433 reflect();
434}
435
436
437void Foam::particle::locate

Callers 2

particle.CFile · 0.85

Calls 1

reflectFunction · 0.85

Tested by

no test coverage detected