PyFoam.RunDictionary.SurfaceDirectory module¶
Working with a directory of surface samples
Should be able to generalize this with SampleDirectory, but not right now
-
class
PyFoam.RunDictionary.SurfaceDirectory.
SurfaceDirectory
(case, dirName='surfaces')[source]¶ Bases:
object
A directory of sampled times
-
__dict__
= mappingproxy({'__module__': 'PyFoam.RunDictionary.SurfaceDirectory', '__doc__': 'A directory of sampled times', '__init__': <function SurfaceDirectory.__init__>, '__iter__': <function SurfaceDirectory.__iter__>, '__getitem__': <function SurfaceDirectory.__getitem__>, '__contains__': <function SurfaceDirectory.__contains__>, 'surfaces': <function SurfaceDirectory.surfaces>, 'values': <function SurfaceDirectory.values>, 'getData': <function SurfaceDirectory.getData>, '__dict__': <attribute '__dict__' of 'SurfaceDirectory' objects>, '__weakref__': <attribute '__weakref__' of 'SurfaceDirectory' objects>})¶
-
__init__
(case, dirName='surfaces')[source]¶ - Parameters
case – The case directory
dirName – Name of the directory with the surfaces
-
__module__
= 'PyFoam.RunDictionary.SurfaceDirectory'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
PyFoam.RunDictionary.SurfaceDirectory.
SurfaceTime
(sDir, time)[source]¶ Bases:
object
A directory with one surfaced time
-
__dict__
= mappingproxy({'__module__': 'PyFoam.RunDictionary.SurfaceDirectory', '__doc__': 'A directory with one surfaced time', '__init__': <function SurfaceTime.__init__>, '__getitem__': <function SurfaceTime.__getitem__>, '__dict__': <attribute '__dict__' of 'SurfaceTime' objects>, '__weakref__': <attribute '__weakref__' of 'SurfaceTime' objects>})¶
-
__getitem__
(key)[source]¶ Get the data for a value on a specific line :param key: A tuple with the surface-name and the value-name :returns: a path to the VTK-file
-
__module__
= 'PyFoam.RunDictionary.SurfaceDirectory'¶
-
__weakref__
¶ list of weak references to the object (if defined)
-