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

getData(surface=None, value=None, time=None)[source]

Get Surface sets :param line: name of the line. All if unspecified :param value: name of the surfaced value. All if unspecified :param time: times for which the surfaces are to be got. All if unspecified

surfaces()[source]

Returns all the found surfaces

values()[source]

Returns all the found surface values

class PyFoam.RunDictionary.SurfaceDirectory.SurfaceTime(sDir, time)[source]

Bases: object

A directory with one surfaced time

PyFoam.RunDictionary.SurfaceDirectory.extractSurface(fName)[source]

Extract the name of the line from a filename

PyFoam.RunDictionary.SurfaceDirectory.extractValue(fName)[source]

Extracts the names of the contained Values from a filename