PyFoam.RunDictionary.SolutionFile module¶
Working with solutions
-
class
PyFoam.RunDictionary.SolutionFile.
SolutionFile
(directory, name)[source]¶ Bases:
PyFoam.RunDictionary.FileBasis.FileBasis
Solution data file
Represents a file with the solution data for one OpenFOAM-field at one point of time
Currently this can only handle uniform field values (and never will handle more because the ParsedParameterFile-class does a much better job)
-
__init__
(directory, name)[source]¶ Parameters: directory – name of the directory containing the solutions for a specific time :param name: name of the field.
-
__module__
= 'PyFoam.RunDictionary.SolutionFile'¶
-
getContent
(treatBinaryAsASCII=False, listLengthUnparsed=None, doMacroExpansion=False)[source]¶ Returns the parsed content of the file
-