47int main(
int argc,
char *argv[])
51 "Deforms a polyMesh using a displacement field U and a scaling factor"
52 " supplied as an argument"
59 const scalar scaleFactor =
args.get<scalar>(1);
72 for (label timeI = 1; timeI < Times.
size(); ++timeI)
74 runTime.setTime(Times[timeI], timeI);
95 + scaleFactor*
pInterp.interpolate(
U)().primitiveField()
98 mesh.polyMesh::movePoints(newPoints);
@ MUST_READ
Reading required.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void size(const label n)
Older name for setAddressableSize.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Interpolate from cell centres to points (vertices) using inverse distance weighting.
autoPtr< volPointInterpolation > pInterp
GeometricField< vector, fvPatchField, volMesh > volVectorField
messageStream Info
Information stream (stdout output on master, null elsewhere).
List< instant > instantList
List of instants.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
Foam::argList args(argc, argv)