Go to the documentation of this file.
68 int main(
int argc,
char *argv[])
72 "information about surface meshes"
83 "geometry scaling factor - default is 1"
88 "display area of each face"
93 "write output in XML format"
117 Info<<
" -scale " << scaling <<
endl;
118 surf.scalePoints(scaling);
121 scalar areaTotal = 0;
125 Info<<
"<?xml version='1.0' encoding='utf-8'?>" <<
nl
126 <<
"<surfaceMeshInfo>" <<
nl
127 <<
"<npoints>" << surf.nPoints() <<
"</npoints>" <<
nl
128 <<
"<nfaces>" << surf.size() <<
"</nfaces>" <<
nl;
132 Info<<
"<areas size='" << surf.size() <<
"'>" <<
nl;
137 Info<<
"nPoints : " << surf.nPoints() <<
nl
138 <<
"nFaces : " << surf.size() <<
nl;
148 const scalar fArea(surf[faceI].
mag(surf.points()));
164 Info<<
"<area>" << areaTotal <<
"</area>" <<
nl
165 <<
"</surfaceMeshInfo>" <<
nl;
169 Info<<
"area : " << areaTotal <<
nl;
static SLList< string > validArgs
A list of valid (mandatory) arguments.
static void noBanner()
Disable emitting the banner information.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling file names.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static void addNote(const string &)
Add extra notes for the usage information.
#define forAll(list, i)
Loop across all elements in list.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< scalar > mag(const dimensioned< Type > &)
const fileName & rootPath() const
Return root path.
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
int main(int argc, char *argv[])
bool optionFound(const word &opt) const
Return true if the named option is found.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.