48int 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 addVerboseOption(const string &usage="", bool advanced=false)
Enable a 'verbose' bool option, with usage information.
static void addDryRunOption(const string &usage, bool advanced=false)
Enable a 'dry-run' bool option, with usage information.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Add an option to validOptions with usage information.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
static autoPtr< lumpedPointIOMovement > New(const objectRegistry &obr, label ownerId=-1)
Create a movement object in the registry by reading system dictionary.
static scalar visLength
The length for visualization triangles.
A class for handling words, derived from Foam::string.
word outputName("finiteArea-edges.obj")
messageStream Info
Information stream (stdout output on master, null elsewhere).
vectorIOField pointIOField
pointIOField is a vectorIOField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, IOobject::NO_REGISTER)))