Go to the documentation of this file.
48 int main(
int argc,
char *argv[])
52 "Create lumpedPointZones.vtp to verify the segmentation of"
53 " pressure integration zones used by lumpedPoint BC."
61 "Test initial lumped points state without a mesh"
67 "Visualization length for planes (visualized as triangles)"
73 "Suppress calculation/display of point interpolators"
79 "Additional verbosity"
86 const bool noInterpolate =
args.
found(
"no-interpolate");
88 const bool dryrun =
args.
found(
"dry-run");
102 if (!movement.
valid())
104 Info<<
"No valid movement found" <<
endl;
108 const word outputName(
"state.vtp");
110 Info<<
"dry-run: writing " << outputName <<
nl;
112 movement().writeStateVTP(movement().state0(), outputName);
126 if (!movement.
valid())
128 Info<<
"No valid movement found" <<
endl;
133 movement().writeStateVTP(
"state.vtp");
140 Info<<
"No point patches with lumped movement found" <<
endl;
144 Info<<
"Lumped point patch controls set on "
152 movement().writeZonesVTP(
"lumpedPointZones.vtp",
mesh,
points0);
159 movement().writeVTP(
"lumpedPointZones.vtp",
mesh,
points0);
163 <<
"wrote 'state.vtp' (reference state)" <<
nl
164 <<
"wrote 'lumpedPointZones.vtp'" <<
nl
165 <<
"\nEnd\n" <<
endl;
A class for handling words, derived from Foam::string.
A primitive field of type <T> with automated input and output.
static void addNote(const string ¬e)
Add extra notes for the usage information.
bool valid() const noexcept
True if the managed pointer is non-null.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
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)
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.
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, false)))
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
An instant of time. Contains the time value and name.
const word & constant() const
Return constant name.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
Foam::argList args(argc, argv)
static scalar visLength
The length for visualization triangles.
static autoPtr< lumpedPointIOMovement > New(const objectRegistry &obr, label ownerId=-1)
bool found(const word &optName) const
Return true if the named option is found.