PyFoam.RunDictionary.MeshInformation module
Gets information about the mesh of a case. Makes no attempt to manipulate the mesh, because this is better left to the OpenFOAM-utilities
- class PyFoam.RunDictionary.MeshInformation.MeshInformation(case, time='constant', processor=None, region=None)[source]
Bases:
objectReads Information about the mesh on demand
- __dict__ = mappingproxy({'__module__': 'PyFoam.RunDictionary.MeshInformation', '__doc__': 'Reads Information about the mesh on demand', '__init__': <function MeshInformation.__init__>, 'nrOfFaces': <function MeshInformation.nrOfFaces>, 'nrOfPoints': <function MeshInformation.nrOfPoints>, 'nrOfCells': <function MeshInformation.nrOfCells>, '__dict__': <attribute '__dict__' of 'MeshInformation' objects>, '__weakref__': <attribute '__weakref__' of 'MeshInformation' objects>, '__annotations__': {}})
- __init__(case, time='constant', processor=None, region=None)[source]
- Parameters:
case – Path to the case-directory
time – Time for which the mesh should be looked at
processor – Name of the processor directory for decomposed cases
- __module__ = 'PyFoam.RunDictionary.MeshInformation'
- __weakref__
list of weak references to the object (if defined)