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

Function scaleField

src/dynamicMesh/motionSmoother/motionSmootherAlgo.C:202–219  ·  view source on GitHub ↗

Scale on all internal points

Source from the content-addressed store, hash-verified

200
201// Scale on all internal points
202void 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)

Callers 1

scaleMeshFunction · 0.85

Calls 6

isInternalPointFunction · 0.85
forAllConstIterFunction · 0.50
NewFunction · 0.50
forAllFunction · 0.50
keyMethod · 0.45
foundMethod · 0.45

Tested by

no test coverage detected