BasicTools.IO.InpWriter module

Inp file writer (Abaqus mesh files)

BasicTools.IO.InpWriter.CheckIntegrity()[source]
class BasicTools.IO.InpWriter.InpWriter[source]

Bases: WriterBase

Class to writes a inp file on disk

Write(meshObject, useOriginalId=False, PointFieldsNames=None, PointFields=None, CellFieldsNames=None, CellFields=None)[source]

Function to writes a CGNS File on disk

Parameters:
  • mesh (UnstructuredMesh) – the mesh to be exported

  • useOriginalId (bool, optional) – If True, Original Id for the number of nodes and elements are used (the user is responsible of the consistency of this data), by default False

  • PointFieldsNames (None) – Not Used, by default None

  • PointFields (None) – Not Used, by default None

  • CellFieldsNames (None) – Not Used, by default None

  • CellFields (None) – Not Used, by default None

BasicTools.IO.InpWriter.WriteMeshToINP(filename, mesh, useOriginalId=False)[source]
Export Mesh to disk in the inp (Abaqus mesh) format file.

A file is created using the path and name of filename

Parameters:
  • filename (str) – name with path to the file to be created (relative or absolute)

  • mesh (UnstructuredMesh) – the mesh to be exported

  • useOriginalId (bool, optional) – If True, Original Id for the number of nodes and elements are used (the user is responsible of the consistency of this data), by default False