PyFoam.Applications.PrepareCase module¶
Application-class that implements pyFoamPrepareCase.py
-
class
PyFoam.Applications.PrepareCase.
PrepareCase
(args=None, exactNr=True, interspersed=True, usage='%prog <caseDirectory>', examples=None, nr=1, description=None, **kwargs)[source]¶ Bases:
PyFoam.Applications.PyFoamApplication.PyFoamApplication
,PyFoam.Applications.CommonTemplateBehaviour.CommonTemplateBehaviour
,PyFoam.Applications.CommonTemplateFormat.CommonTemplateFormat
-
cleanExtension
(startDir, ext)[source]¶ Go recursivly through directories and remove all files that have a specific extension
-
copyOriginals
(startDir, extension=None, recursive=True)[source]¶ Go recursivly through directories and copy foo.org to foo
-
executeScript
(scriptName, workdir, echo, allrun=None)[source]¶ Execute a script and write a corresponding logfile
-
getDefaultValues
(cName)[source]¶ Process the file with the default values - if present Returns a dictionary with the values and a dictionary with the meta-data about the parameters
-
listdir
(d, ext)[source]¶ Private copy of listdir. Returns a list of pairs: first element is the real file-name. Second the name with the extensions stripped off or None if the file doesn’t match any extensions
-
parameterOutFile
= 'PyFoamPrepareCaseParameters'¶
-
prepare
(sol, cName=None, overrideParameters=None, numberOfProcessors=None)[source]¶ Do the actual preparing :param numberOfProcessors: If set this overrides the value set in the command line
-