Go to the documentation of this file.
84 int main(
int argc,
char *argv[])
88 "Translate OPENFOAM data to CCM format"
102 "Provide alternative base name. Default is <meshExport>."
107 "No backup of existing output files"
113 "Use specified remapping dictionary instead of <constant/remapping>"
118 "Convert results only"
130 const bool optResults =
args.
found(
"results");
131 const bool optOverwrite =
args.
found(
"overwrite");
136 const word ext(exportName.
ext());
138 if (ext ==
"ccm" || ext ==
"ccmg" || ext ==
"ccmp")
140 exportName = exportName.
lessExt();
148 if (optMesh && optResults)
151 <<
"\n-mesh and -results options are mutually exclusive\n"
181 #include "getTimeIndex.H"
187 exportName +
".ccmg",
219 #include "getTimeIndex.H"
233 exportName +
".ccmg",
258 Info<<
"writing solution:";
265 writer.writeSolution(objects);
Reader/writer for handling ccm files.
A class for handling words, derived from Foam::string.
A class for handling file names.
static string defaultMeshName
static void addNote(const string ¬e)
const fileName & globalCaseName() const noexcept
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
bool readIfPresent(const word &optName, T &val) const
label nPoints() const noexcept
static void noFunctionObjects(bool addWithOption=false)
label nCells() const noexcept
Base class for graphics format writing. Entry points are.
void exit(const int errNo=1)
List of IOobjects with searching and retrieving facilities.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
static void addOptions(const bool constant=true, const bool withZero=false)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void setTime(const Time &t)
bool moving() const noexcept
static instantList select0(Time &runTime, const argList &args)
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
Foam::argList args(argc, argv)
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
void printUsage(bool full=true) const
bool found(const word &optName) const
Write OpenFOAM meshes and/or results to CCM format.