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;
163 movement().writeForcesAndMomentsVTP
178 if (forceSeries.
size())
180 forceSeries.
write(
"forces.vtp");
static autoPtr< T > New(Args &&... args)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
bool registerObject() const noexcept
static word timeName(const scalar t, const int precision=precision_)
static void addNote(const string ¬e)
static bool master(const label communicator=worldComm)
Ostream & endl(Ostream &os)
virtual readUpdateState readUpdate()
word outputName("finiteArea-edges.obj")
static void noFunctionObjects(bool addWithOption=false)
label timeIndex() const noexcept
const fileName & local() const noexcept
const word & headerClassName() const noexcept
Provides a means of accumulating and generating VTK file series.
static void write(const fileName &base, const UList< instant > &series, const char sep='_')
List of IOobjects with searching and retrieving facilities.
const word & name() const noexcept
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
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
label size() const noexcept
static void addOptions(const bool constant=true, const bool withZero=false)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void setTime(const Time &t)
const fileName & instance() const noexcept
static word printf(const char *fmt, const PrimitiveType &val)
bool append(const fileNameInstant &inst)
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
const objectRegistry & db() const noexcept