Muscat.IO.CGNSWriter module

CGNS file writer

class CGNSWriter[source]

Bases: WriterBase

Class to writes a CGNS file on disk

Write(mesh, fileName=None, outputPyTree=None, PointFields=None, PointFieldsNames=None, GridFieldsNames=None, GridFields=None, updateZone=False)[source]

Function to write a CGNS File on disk

Parameters:
  • mesh (Mesh) – support of the data to be written

  • fileName (str) – filename of the file to be read

  • outpuPyTree (list) – existing pyTree in which the data structure in mesh will be appended

  • updateZone (bool or str, only with outputPyTree) – if False: data are added to a new CGNS base if True: all zones pre existing in outPyTree base are updated (replace all structured zones with one unstructured zone, or update unique zone) if zoneName: only zone with zoneName is updated (for unstructured multi zones computation)

CheckIntegrity(GUI: bool = False)[source]