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-
_PrepareCase__strip(val)¶ Strip extra ” from strings
-
_PrepareCase__writeToStateFile(sol, message)¶ Write a message to a state file
-
__init__(args=None, exactNr=True, interspersed=True, usage='%prog <caseDirectory>', examples=None, nr=1, description=None, **kwargs)[source]¶
-
__module__= 'PyFoam.Applications.PrepareCase'¶
-
cleanExtension(startDir, ext)[source]¶ Go recursivly through directories and remove all files that have a specific extension
-
executeScript(scriptName, workdir, echo)[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
-