Go to the documentation of this file.
65 int main(
int argc,
char *argv[])
69 "A block mesh generator for a rectilinear mesh in x-y-z.\n"
70 " The ordering of vertex and face labels within a block as shown "
72 " For the local vertex numbering in the sequence 0 to 7:\n"
73 " Faces 0, 1 == x-min, x-max.\n"
74 " Faces 2, 3 == y-min, y-max.\n"
75 " Faces 4, 5 == z-min, z-max.\n"
84 " \\ | f0 ------ f1\n"
95 "Do not remove polyMesh/ directory or files"
102 "Create without any other region"
107 "Print blockMeshDict equivalent and exit"
112 "Write system/blockMeshDict.PDRblockMesh and exit"
120 "Specify a time to write mesh to (default: constant)"
127 const bool removeOldFiles = !
args.
found(
"no-clean");
130 const bool noOuterRegion =
args.
found(
"no-outer");
133 const word regionPath;
137 bool useTime =
false;
149 useTime = readScalar(meshInstance, timeValue);
153 <<
"Bad input value: " << meshInstance
154 <<
"Should be a scalar or 'constant'"
167 Info<<
"Creating PDRblockMesh from "
175 Info<<
nl <<
"Equivalent blockMeshDict" <<
nl <<
nl;
177 blkMesh.blockMeshDict(
Info,
true);
186 blkMesh.writeBlockMeshDict
190 "blockMeshDict.PDRblockMesh",
206 Info<<
"Writing polyMesh to " << meshInstance <<
nl <<
endl;
216 #include "cleanMeshDirectory.H"
220 Info<<
nl <<
"Creating polyMesh from PDRblockMesh" <<
endl;
223 Info<<
"Outer region disabled, using ijk generation" <<
nl;
238 Info<<
nl <<
"Writing polyMesh with "
245 <<
"Failed writing polyMesh."
249 #include "printMeshSummary.H"
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
virtual bool write(const bool valid=true) const
static word defaultRegion
const word dictName("faMeshDefinition")
static void addNote(const string ¬e)
static void addOptionCompat(const word &optName, std::pair< const char *, int > compat)
Ostream & endl(Ostream &os)
fileName objectRelPath() const
bool readIfPresent(const word &optName, T &val) const
Mesh consisting of general polyhedral cells.
static void noFunctionObjects(bool addWithOption=false)
const cellZoneMesh & cellZones() const noexcept
void removeFiles(const fileName &instanceDir) const
label max(const labelHashSet &set, label maxValue=labelMin)
A single block x-y-z rectilinear mesh addressable as i,j,k with simplified creation....
errorManipArg< error, int > exit(error &err, const int errNo=1)
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
static unsigned int defaultPrecision() noexcept
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const word & system() const
#define FatalErrorInFunction
virtual void setTime(const Time &t)
An instant of time. Contains the time value and name.
const word & constant() const
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
const IOdictionary & meshDict
Foam::autoPtr< Foam::fvMesh > meshPtr(nullptr)
bool found(const word &optName) const