Go to the documentation of this file.
63 int main(
int argc,
char *argv[])
67 "Convert an Adventure .msh file to OpenFOAM"
74 "Treat input as containing hex instead of tet cells"
88 Info<<
"Trying to read " << nCells <<
" hexes." <<
nl <<
endl;
92 Info<<
"Trying to read " << nCells <<
" tets." <<
nl <<
endl;
105 for (label celli = 0; celli < nCells; celli++)
107 for (label
cp = 0;
cp < 8;
cp++)
109 mshStream >> hexPoints[
cp];
116 for (label celli = 0; celli < nCells; celli++)
118 for (label
cp = 0;
cp < 4;
cp++)
136 for (label pointi = 0; pointi <
nPoints; pointi++)
140 mshStream >>
x >>
y >> z;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
virtual bool write(const bool valid=true) const
static word defaultRegion
Input from file stream, using an ISstream.
static void addNote(const string ¬e)
Ostream & endl(Ostream &os)
T get(const label index) const
Mesh consisting of general polyhedral cells.
List< word > wordList
A List of words.
static void addArgument(const string &argName, const string &usage="")
Generic templated field type.
void removeFiles(const fileName &instanceDir) const
static const cellModel & ref(const modelType model)
label max(const labelHashSet &set, label maxValue=labelMin)
IOstream & hex(IOstream &io)
Tet storage. Null constructable (unfortunately tetrahedron<point, point> is not)
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
static unsigned int defaultPrecision() noexcept
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Various functions to operate on Lists.
Maps a geometry to a set of cell primitives.
vector point
Point is a vector.
const word & constant() const
Foam::argList args(argc, argv)
bool found(const word &optName) const