48 int main(
int argc,
char *argv[])
52 "Create lumpedPointZones.vtp to verify the segmentation of" 53 " pressure integration zones used by lumpedPoint BC." 60 "Test initial lumped points state without a mesh" 66 "Visualization length for planes (visualized as triangles)" 72 "Suppress calculation/display of point interpolators" 81 const bool noInterpolate =
args.
found(
"no-interpolate");
93 Info<<
"No valid movement found" <<
endl;
101 movement().writeStateVTP(movement().state0(),
outputName);
117 Info<<
"No valid movement found" <<
endl;
122 movement().writeStateVTP(
"state.vtp");
129 Info<<
"No point patches with lumped movement found" <<
endl;
133 Info<<
"Lumped point patch controls set on " 141 movement().writeZonesVTP(
"lumpedPointZones.vtp",
mesh,
points0);
148 movement().writeVTP(
"lumpedPointZones.vtp",
mesh,
points0);
152 <<
"wrote 'state.vtp' (reference state)" <<
nl 153 <<
"wrote 'lumpedPointZones.vtp'" <<
nl 154 <<
"\nEnd\n" <<
endl;
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
static void addNote(const string ¬e)
Add extra notes for the usage information.
static scalar visLength
The length for visualization triangles.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
word outputName("finiteArea-edges.obj")
A class for handling words, derived from Foam::string.
static void addDryRunOption(const string &usage, bool advanced=false)
Enable a 'dry-run' bool option, with usage information.
int dryRun() const noexcept
Return the dry-run flag.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
virtual void setTime(const Time &t)
Reset the time and time-index to those of the given time.
static void addVerboseOption(const string &usage="", bool advanced=false)
Enable a 'verbose' bool option, with usage information.
const word & constant() const noexcept
Return constant name.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name...
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, IOobject::NO_REGISTER)))
static autoPtr< lumpedPointIOMovement > New(const objectRegistry &obr, label ownerId=-1)
Create a movement object in the registry by reading system dictionary.
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)
A primitive field of type <T> with automated input and output.
bool found(const word &optName) const
Return true if the named option is found.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.