| 29 | } |
| 30 | |
| 31 | void BoundaryModel_Akinci2012::reset() |
| 32 | { |
| 33 | BoundaryModel::reset(); |
| 34 | |
| 35 | // Note: |
| 36 | // positions and velocities are already updated by updateBoundaryParticles |
| 37 | if (!m_rigidBody->isDynamic() && !m_rigidBody->isAnimated()) |
| 38 | { |
| 39 | // reset velocities and accelerations |
| 40 | for (int j = 0; j < (int)numberOfParticles(); j++) |
| 41 | { |
| 42 | m_x[j] = m_x0[j]; |
| 43 | m_v[j].setZero(); |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | void BoundaryModel_Akinci2012::computeBoundaryVolume() |
| 49 | { |
nothing calls this directly
no test coverage detected