48int main(
int argc,
char *argv[])
52 "Create lumpedPointZones.vtp to verify the segmentation of"
53 " pressure integration zones used by lumpedPoint BC."
56 argList::noFunctionObjects();
58 argList::addDryRunOption
60 "Test initial lumped points state without a mesh"
66 "Visualization length for planes (visualized as triangles)"
69 argList::addBoolOption
72 "Suppress calculation/display of point interpolators"
75 argList::addVerboseOption
77 "Additional verbosity"
84 const bool noInterpolate =
args.
found(
"no-interpolate");
92 lumpedPointIOMovement::New(
runTime);
96 Info<<
"No valid movement found" <<
endl;
104 movement().writeStateVTP(movement().state0(),
outputName);
120 Info<<
"No valid movement found" <<
endl;
125 movement().writeStateVTP(
"state.vtp");
132 Info<<
"No point patches with lumped movement found" <<
endl;
136 Info<<
"Lumped point patch controls set on "
144 movement().writeZonesVTP(
"lumpedPointZones.vtp",
mesh,
points0);
151 movement().writeVTP(
"lumpedPointZones.vtp",
mesh,
points0);
155 <<
"wrote 'state.vtp' (reference state)" <<
nl
156 <<
"wrote 'lumpedPointZones.vtp'" <<
nl
157 <<
"\nEnd\n" <<
endl;
A primitive field of type <T> with automated input and output.
int dryRun() const noexcept
Return the dry-run flag.
bool found(const word &optName) const
Return true if the named option is found.
bool readIfPresent(const word &optName, T &val) const
Read a value from the named option if present.
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.
A class for handling words, derived from Foam::string.
word outputName("finiteArea-edges.obj")
messageStream Info
Information stream (stdout output on master, null elsewhere)
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, false)))