70 int main(
int argc,
char *argv[])
77 Info<<
"Reading material properties\n" <<
endl;
91 const fileName currentDir(runTime.path());
92 const fileName materialsDir(currentDir/
"templates"/
"materials");
93 const fileName systemDir(currentDir/
"templates"/
"system");
94 const fileName constantDir(currentDir/
"templates"/
"constant");
95 const fileName timeDir(currentDir/
"templates"/
"0");
108 const dictionary& regionDict = regionIter().dict();
109 const word regionSolver(regionDict.
lookup(
"solver"));
110 const word regionMaterial(regionDict.
lookup(
"material"));
114 <<
" directory" <<
endl;
119 const fileName sourceDir(timeDir/regionSolver);
120 if (
isDir(sourceDir))
127 <<
"Cannot find region type file "
131 const fileName matDir(materialsDir/regionMaterial);
135 <<
" directory with " << regionMaterial
136 <<
" material" <<
endl;
142 <<
" directory" <<
endl;
148 <<
"Cannot find region material folder "
153 Info<<
"\nWriting regionSolvers\n" <<
endl;
155 OFstream regionSolversFile(currentDir/runTime.system()/
"regionSolvers");
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & executable() const
Name of executable without the path.
A keyword and a list of tokens is a 'dictionaryEntry'.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static const dictionary null
Null dictionary.
A class for handling file names.
Class to hold the lists of region meshes and solvers.
A class for handling words, derived from string.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
int main(int argc, char *argv[])
errorManipArg< error, int > exit(error &err, const int errNo=1)
void cpFiles(const fileName &srcDir, const fileName &targetDir)
Copy all the files from the source to the target directory.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & regionName(const solver ®ion)
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a directory in the file system?
Foam::argList args(argc, argv)