42 int main(
int argc,
char *argv[])
55 mkDir(runTime.rootPath()/runTime.caseName()/
"fluentInterface");
59 runTime.setTime(
timeDirs[timeI], timeI);
61 Info<<
"Time = " << runTime.userTimeName() <<
endl;
63 if (mesh.readUpdate())
69 mkDir(runTime.rootPath()/runTime.caseName()/
"fluentInterface");
77 runTime.caseName() + runTime.name() +
".dat"
81 <<
"(0 \"FOAM to Fluent data File\")" <<
endl <<
endl;
84 label nFaces = mesh.nFaces();
88 nFaces += mesh.boundary()[
patchi].size();
92 <<
"(33 (" << mesh.nCells() <<
" " << nFaces <<
" "
93 << mesh.nPoints() <<
"))" <<
endl;
99 "foamDataToFluentDict",
124 const label unitNumber =
125 foamDataToFluentDict.lookupOrDefault<
label>(field.name(), 0);
128 Info<<
" Converting field " << field.name() <<
endl;
146 const label unitNumber =
147 foamDataToFluentDict.lookupOrDefault<
label>(field.name(), 0);
150 Info<<
" Converting field " << field.name() <<
endl;
#define forAll(list, i)
Loop across all elements in list.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Generic GeometricField class.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
List of IOobjects with searching and retrieving facilities.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static void noParallel()
Remove the parallel options.
static void addOptions(const bool constant=true, const bool withZero=false)
Add the options handled by timeSelector to argList::validOptions.
static instantList select0(Time &runTime, const argList &args)
Return the set of times selected based on the argList options.
int main(int argc, char *argv[])
static instantList timeDirs
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void writeFluentField(const volScalarField &phi, const label fluentFieldIdentifier, Ostream &stream)
Foam::argList args(argc, argv)