MeshStatistics#

class ansys.turbogrid.core.mesh_statistics.mesh_statistics.MeshStatistics(turbogrid_instance: PyTurboGrid, domain: str = 'ALL')#

Class for mesh statistics analysis based on the current mesh in a running session of TurboGrid.

Methods

MeshStatistics.create_histogram(variable[, ...])

Create a histogram from the mesh statistics using the matplotlib library.

MeshStatistics.get_domain_label(domain)

Get a label for a domain.

MeshStatistics.get_mesh_statistics([variable])

Get the basic mesh statistics.

MeshStatistics.get_table_as_text()

Get a text version of the mesh statistics table.

MeshStatistics.get_table_rows()

Get the mesh statistics table data as a list of rows.

MeshStatistics.update_mesh_statistics([domain])

Re-read the mesh statistics from TurboGrid.

MeshStatistics.write_table_to_csv(file_name)

Write a csv file containing a table of the current mesh statistics values.

Attributes

MeshStatistics.current_domain

The domain that was used for the last update of the mesh statistics.

MeshStatistics.interface

Interface to a running session of TurboGrid.

MeshStatistics.mesh_vars

Cache of the basic mesh statistics obtained by the last call to update_mesh_statistics or from the initialization of the object if update_mesh_statistics has not been called.