69 int main(
int argc,
char *argv[])
83 "'(region1 region2 ... regionN)'"
84 "list of regions to merge"
90 "'(\"casePath1\" \"casePath2\" ... \"casePathN\")'",
91 "list of cases to merge"
97 "'((\"casePath1\" region1) (\"casePath2\" region2)"
98 "... (\"casePathN\" regionN))'",
99 "list of case regions to merge"
140 const word oldInstance = mesh.pointsInstance();
154 Info<<
"Create polyMesh for region " << regions[i] <<
endl;
165 Info<<
"Adding mesh " << meshToAdd.objectPath() <<
endl;
166 mergeMeshes.addMesh(meshToAdd);
172 const fileName& addCase = caseRegions[i].first();
173 const word& addRegion = caseRegions[i].second();
187 Info<<
"Create polyMesh for case " << runTimeToAdd.path() <<
endl;
198 Info<<
"Adding mesh " << meshToAdd.objectPath() <<
endl;
199 mergeMeshes.addMesh(meshToAdd);
207 mesh.setInstance(oldInstance);
210 Info<<
"Writing mesh to " << mesh.facesInstance() <<
endl;
#define forAll(list, i)
Loop across all elements in list.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static const List< word > & null()
Return a null List.
virtual Ostream & write(const char)=0
Write character.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static word controlDictName
The default control dictionary name (normally "controlDict")
A 2-tuple for storing two objects of different types.
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.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
A class for handling file names.
word name() const
Return file name (part beyond last /)
fileName path() const
Return directory path name (part before last /)
Merge meshes into a single mesh without stitching.
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList selectIfPresent(Time &runTime, const argList &args)
If any time option provided return the set of times (as select0)
A class for handling words, derived from string.
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)