PyFoam.RunDictionary.TimelineDirectory module

Working with a directory of timelines

Currently not optimal as it reads the files more often than necessary

class PyFoam.RunDictionary.TimelineDirectory.TimelineDirectory(case=None, dirName='probes', writeTime=None)[source]

Bases: object

A directory of sampled times

getData(times, value=None, position=None, vectorMode=None)[source]

Get data that mstches the given times most closely :param times: a list with times :param value: name of the value. All if unspecified :param position: name of the position of the value. All if unspecified :param vectorMode: which component of the vector to use

getDataLocation(value=None, position=None, vectorMode=None)[source]

Get Timeline sets :param value: name of the value. All if unspecified :param position: name of the position of the value. All if unspecified

positions()[source]

Returns all the found positions

timeRange()[source]

Return the range of possible times

class PyFoam.RunDictionary.TimelineDirectory.TimelineValue(sDir, val, time)[source]

Bases: object

A file with one timelined value

getData(times, vectorMode=None)[source]

Get the data values that are nearest to the actual times

isProbe()[source]

Is this a probe-file

timeRange()[source]

Range of times