Scale on all internal points
| 200 | |
| 201 | // Scale on all internal points |
| 202 | void Foam::motionSmootherAlgo::scaleField |
| 203 | ( |
| 204 | const labelHashSet& pointLabels, |
| 205 | const scalar scale, |
| 206 | pointScalarField& fld |
| 207 | ) const |
| 208 | { |
| 209 | forAllConstIter(labelHashSet, pointLabels, iter) |
| 210 | { |
| 211 | if (isInternalPoint(iter.key())) |
| 212 | { |
| 213 | fld[iter.key()] *= scale; |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | // Single and multi-patch constraints |
| 218 | pointConstraints::New(pMesh()).constrain(fld, false); |
| 219 | } |
| 220 | |
| 221 | |
| 222 | // Scale on selected points (usually patch points) |
no test coverage detected