57 int main(
int argc,
char *argv[])
64 "treat input as containing hex instead of tet cells" 78 Info<<
"Trying to read " << nCells <<
" hexes." <<
nl <<
endl;
82 Info<<
"Trying to read " << nCells <<
" tets." <<
nl <<
endl;
95 for (
label celli = 0; celli < nCells; celli++)
99 mshStream >> hexPoints[
cp];
101 cells[celli] =
cellShape(hex, hexPoints);
106 for (
label celli = 0; celli < nCells; celli++)
110 mshStream >> tetPoints[
cp];
112 cells[celli] =
cellShape(tet, tetPoints);
121 Info<<
"Trying to read " << nPoints <<
" points." << endl <<
endl;
130 mshStream >> x >> y >> z;
List< faceList > faceListList
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
An analytical geometric cellShape.
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
virtual bool write(const bool write=true) const
Write mesh using IO settings from time.
Various functions to operate on Lists.
List< word > wordList
A List of words.
vector point
Point is a vector.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
Mesh consisting of general polyhedral cells.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...