Package PyFoam :: Package RunDictionary :: Module SampleDirectory :: Class SampleDirectory
[hide private]
[frames] | no frames]

Class SampleDirectory

source code

object --+
         |
        SampleDirectory

A directory of sampled times

Instance Methods [hide private]
 
__init__(self, case, dirName="samples")
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__iter__(self) source code
 
__getitem__(self, time) source code
 
__contains__(self, time) source code
 
sorttimes(self, x, y)
Sort function for the solution files
source code
 
lines(self)
Returns all the found sample lines
source code
 
values(self)
Returns all the found sampled values
source code
 
getData(self, line=None, value=None, time=None)
Get Sample sets
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, case, dirName="samples")
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • case - The case directory
  • dirName - Name of the directory with the samples
Overrides: object.__init__

getData(self, line=None, value=None, time=None)

source code 

Get Sample sets

Parameters:
  • line - name of the line. All if unspecified
  • value - name of the sampled value. All if unspecified
  • time - times for which the samples are to be got. All if unspecified