47int main(
int argc,
char *argv[])
51 "Deforms a polyMesh using a displacement field U and a scaling factor"
52 " supplied as an argument"
55 argList::addArgument(
"factor",
"The deformation scaling factor");
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);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void size(const label n)
Older name for setAddressableSize.
T get(const label index) const
Get a value from the argument at index.
Interpolate from cell centres to points (vertices) using inverse distance weighting.
autoPtr< volPointInterpolation > pInterp
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)