| 115 | |
| 116 | |
| 117 | inline Foam::Pair<Foam::scalar> Foam::particle::stepFractionSpan() const |
| 118 | { |
| 119 | if (mesh_.time().subCycling()) |
| 120 | { |
| 121 | const TimeState& tsNew = mesh_.time(); |
| 122 | const TimeState& tsOld = mesh_.time().prevTimeState(); |
| 123 | |
| 124 | const scalar tFrac = |
| 125 | ( |
| 126 | (tsNew.value() - tsNew.deltaTValue()) |
| 127 | - (tsOld.value() - tsOld.deltaTValue()) |
| 128 | )/tsOld.deltaTValue(); |
| 129 | |
| 130 | const scalar dtFrac = tsNew.deltaTValue()/tsOld.deltaTValue(); |
| 131 | |
| 132 | return Pair<scalar>(tFrac, dtFrac); |
| 133 | } |
| 134 | else |
| 135 | { |
| 136 | return Pair<scalar>(0, 1); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | |
| 141 | inline Foam::scalar Foam::particle::currentTimeFraction() const |
nothing calls this directly
no test coverage detected