PyFoam.RunDictionary.LagrangianPatchData module

Read files written by the Lagrangian function object that writes patch incidents and transforms the data into a NumPy-array

class PyFoam.RunDictionary.LagrangianPatchData.LagrangianPatchData(fName)[source]

Bases: object

Class to read lagrangian patch data and store it as a NumPy-array

__dict__ = mappingproxy({'__weakref__': <attribute '__weakref__' of 'LagrangianPatchData' objects>, '__init__': <function LagrangianPatchData.__init__>, '__doc__': 'Class to read lagrangian patch data and store it as a NumPy-array', 'pandas': <function LagrangianPatchData.pandas>, '__dict__': <attribute '__dict__' of 'LagrangianPatchData' objects>, '__module__': 'PyFoam.RunDictionary.LagrangianPatchData'})
__init__(fName)[source]
__module__ = 'PyFoam.RunDictionary.LagrangianPatchData'
__weakref__

list of weak references to the object (if defined)

pandas()[source]

Return data as a pandas Data-frame

class PyFoam.RunDictionary.LagrangianPatchData.LagrangianPatchDataAll(cloudDirName)[source]

Bases: object

Read the lagrangian patch data for a cloud for a whole cloud (all times)

__dict__ = mappingproxy({'__weakref__': <attribute '__weakref__' of 'LagrangianPatchDataAll' objects>, '__init__': <function LagrangianPatchDataAll.__init__>, '__doc__': 'Read the lagrangian patch data for a cloud for a whole cloud (all times)', 'pandas': <function LagrangianPatchDataAll.pandas>, '__dict__': <attribute '__dict__' of 'LagrangianPatchDataAll' objects>, '__module__': 'PyFoam.RunDictionary.LagrangianPatchData'})
__init__(cloudDirName)[source]
__module__ = 'PyFoam.RunDictionary.LagrangianPatchData'
__weakref__

list of weak references to the object (if defined)

pandas()[source]

Return one huge, ugly pandas table

class PyFoam.RunDictionary.LagrangianPatchData.LagrangianPatchDataTime(timeDirName)[source]

Bases: object

Read the lagrangian patch data from a whole timestep

__dict__ = mappingproxy({'__weakref__': <attribute '__weakref__' of 'LagrangianPatchDataTime' objects>, '__init__': <function LagrangianPatchDataTime.__init__>, '__doc__': 'Read the lagrangian patch data from a whole timestep', 'pandas': <function LagrangianPatchDataTime.pandas>, '__dict__': <attribute '__dict__' of 'LagrangianPatchDataTime' objects>, '__module__': 'PyFoam.RunDictionary.LagrangianPatchData'})
__init__(timeDirName)[source]
__module__ = 'PyFoam.RunDictionary.LagrangianPatchData'
__weakref__

list of weak references to the object (if defined)

pandas()[source]

Return the whole data as one big pandas table

PyFoam.RunDictionary.LagrangianPatchData.globalId(proc, theId)[source]