47 int 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)" static void addNote(const string ¬e)
Add extra notes for the usage information.
virtual tmp< pointField > newPoints()
Provide new points for motion. Solves for motion.
virtual stopAtControls stopAt() const
Return the stop control information.
virtual void setEndTime(const dimensionedScalar &endTime)
Reset end time.
virtual bool loop()
Return true if run should continue and if so increment time.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
virtual bool write(const bool writeOnProc=true) const
Write using setting from DB.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
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.
Ostream & printExecutionTime(OSstream &os) const
Print the elapsed ExecutionTime (cpu-time), ClockTime.
virtual void setDeltaT(const dimensionedScalar &deltaT, const bool adjust=true)
Reset time step, normally also calling adjustDeltaT()
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
Foam::argList args(argc, argv)