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__
= dict_proxy({'surfaces': <function surfaces>, '__module__': 'PyFoam.RunDictionary.SurfaceDirectory', '__getitem__': <function __getitem__>, '__contains__': <function __contains__>, '__iter__': <function __iter__>, 'values': <function values>, '__dict__': <attribute '__dict__' of 'SurfaceDirectory' objects>, 'getData': <function getData>, '__weakref__': <attribute '__weakref__' of 'SurfaceDirectory' objects>, '__doc__': 'A directory of sampled times', '__init__': <function __init__>})¶
-
__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__
= dict_proxy({'__module__': 'PyFoam.RunDictionary.SurfaceDirectory', '__getitem__': <function __getitem__>, '__dict__': <attribute '__dict__' of 'SurfaceTime' objects>, '__weakref__': <attribute '__weakref__' of 'SurfaceTime' objects>, '__doc__': 'A directory with one surfaced time', '__init__': <function __init__>})¶
-
__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)
-