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;
69 mkDir(runTime.rootPath()/runTime.caseName()/
"fluentInterface");
77 runTime.caseName() + runTime.name() +
".dat"
81 <<
"(0 \"FOAM to Fluent data File\")" <<
endl <<
endl;
92 <<
"(33 (" <<
mesh.
nCells() <<
" " << nFaces <<
" "
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...
label size() const
Return the number of elements in the UPtrList.
static void noParallel()
Remove the parallel options.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
readUpdateState readUpdate(const stitchType stitch=stitchType::geometric)
Update the mesh based on the mesh files saved in time.
const word & name() const
Return reference to name.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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)