47 int 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)
95 + scaleFactor*
pInterp.interpolate(
U)().primitiveField()
98 mesh.polyMesh::movePoints(newPoints);
static void addNote(const string ¬e)
Add extra notes for the usage information.
void size(const label n)
Older name for setAddressableSize.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const pointField & points() const
Return raw points.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
Interpolate from cell centres to points (vertices) using inverse distance weighting.
virtual bool write(const bool writeOnProc=true) const
Write mesh using IO settings from time.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
instantList times() const
Search the case for valid time directories.
T get(const label index) const
Get a value from the argument at index.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::argList args(argc, argv)
Defines the attributes of an object for which implicit objectRegistry management is supported...
autoPtr< volPointInterpolation > pInterp