47int main(
int argc,
char *argv[])
51 "A solver utility for moving meshes"
58 "Override deltaT (eg, for accelerated motion)"
65 "Override endTime (eg, for shorter tests)"
73 if (
args.readIfPresent(
"deltaT", timeVal))
78 if (
args.readIfPresent(
"endTime", timeVal))
90 mesh.movePoints(motionPtr->newPoints());
@ saEndTime
Stop when Time reaches prescribed endTime.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)