Go to the documentation of this file.
48 template<
class GeoFieldType>
57 Info<<
"Reading " << GeoFieldType::typeName
82 int main(
int argc,
char *argv[])
86 "Extract force/moment information from simulation results that"
87 " use the lumped points movement description."
93 "Create visualization files of the forces"
114 Info<<
"No valid movement found" <<
endl;
121 Info<<
"No point patches with lumped movement found" <<
endl;
140 Info<<
" Read new mesh" <<
nl;
151 if (movement().forcesAndMoments(
mesh, forces, moments))
153 Info<<
"forces per zone: " << forces <<
endl;
154 Info<<
"moments per zone: " << moments <<
endl;
158 const word outputName =
163 movement().writeForcesAndMomentsVTP
178 if (forceSeries.
size())
180 forceSeries.
write(
"forces.vtp");
static autoPtr< T > New(Args &&... args)
Construct autoPtr of T with forwarding arguments.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const
Return name.
A class for handling words, derived from Foam::string.
const fileName & instance() const
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
Add extra notes for the usage information.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
const objectRegistry & db() const
Return the local objectRegistry.
virtual readUpdateState readUpdate()
Update the mesh based on the mesh files saved in time.
bool registerObject() const
Should object created with this IOobject be registered?
const fileName & local() const
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
messageStream Info
Information stream (uses stdout - output is on the master only)
Provides a means of accumulating and generating VTK file series.
static void write(const fileName &base, const UList< instant > &series, const char sep='_')
Write file series (JSON format) to disk, for specified instances.
List of IOobjects with searching and retrieving facilities.
const word & headerClassName() const
Return name of the class name read from header.
static bool master(const label communicator=0)
Am I the master process.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
label size() const noexcept
The number of data sets.
static void addOptions(const bool constant=true, const bool withZero=false)
Add timeSelector options to argList::validOptions.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
static word printf(const char *fmt, const PrimitiveType &val)
Use a printf-style formatter for a primitive.
bool append(const fileNameInstant &inst)
Append the specified file instant.
label timeIndex() const
Return current time index.
static instantList select0(Time &runTime, const argList &args)
Foam::argList args(argc, argv)
static autoPtr< lumpedPointIOMovement > New(const objectRegistry &obr, label ownerId=-1)
bool found(const word &optName) const
Return true if the named option is found.