FileIO#

class ansys.meshing.prime.FileIO(model)#

Handles reading or writing files from the disk.

Parameters:
modelModel

Server model to create FileIO object.

Methods

FileIO.export_boundary_fitted_spline_kfile(...)

Export the IGA LS-DYNA keyword file for a boundary fitted spline.

FileIO.export_fluent_case(file_name, ...)

Export a Fluent case (CAS) file.

FileIO.export_fluent_meshing_mesh(file_name, ...)

Export a Fluent Meshing mesh (MSH) file.

FileIO.export_lsdyna_iga_keyword_file(...)

Exports IGA LS-DYNA Keyword file for solid, surface splines, or both.

FileIO.export_lsdyna_keyword_file(file_name, ...)

Export FEA LS-DYNA Keyword file for solid, surface mesh, or both.

FileIO.export_mapdl_cdb(file_name, params)

Export an MAPDL CDB file.

FileIO.export_stl(file_name, params)

Export an STL file.

FileIO.get_abaqus_simulation_data(partId)

Gets simulation document generated by Abaqus import for a given part.

FileIO.import_abaqus_inp(file_name, params)

(BETA FEATURE) Import a Abaqus file.

FileIO.import_cad(file_name, params)

Import a CAD file from disk.

FileIO.import_fluent_case(file_name, ...)

Import a Fluent case (CAS) file from disk.

FileIO.import_fluent_meshing_meshes(...)

Import Fluent Meshing's mesh (MS and MSH.GZ) files from disk.

FileIO.import_fluent_meshing_size_field(...)

Import a Fluent Meshing size field (SF and SF.GZ) file from disk.

FileIO.import_mapdl_cdb(file_name, params)

Import an MAPDL CDB file.

FileIO.initialize_cdb_export_params(params, ...)

Initialize specific CDB export parameters based on the given version.

FileIO.read_pmdat(file_name, file_read_params)

Read a PyPrimeMesh data (PMDAT) file.

FileIO.read_size_field(file_name, params)

Read a PyPrimeMesh size field (PSF and PSF.GZ) file from disk.

FileIO.write_pmdat(file_name, file_write_params)

Write a PyPrimeMesh data (PMDAT) file.

FileIO.write_size_field(file_name, params)

Write a PyPrimeMesh size field (PSF) file to a file on disk.

Examples using FileIO#

Mesh a mid-surfaced bracket for a structural analysis

Mesh a mid-surfaced bracket for a structural analysis

Create a contact patch for wrapping between a wheel and ground interface

Create a contact patch for wrapping between a wheel and ground interface

Mesh a set of solder balls (beta)

Mesh a set of solder balls (beta)