| 423 | |
| 424 | |
| 425 | void 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 | |
| 437 | void Foam::particle::locate |
no test coverage detected