Solver translation#

Solver translation (FE2Ansys) translates Abaqus INP files to Ansys CDB and K files (MAPDL and LS-DYNA). The translation ensures that the Abaqus model can be used in Ansys without recreating from scratch. It helps to save time and effort even though minor manual adjustments may be required. The manual adjustments like redefining boundary conditions, loads, and material properties, ensures that the model behaves as expected in Ansys solver deck.

The following example shows the translation of Abaqus INP file to CDB file format:

  1. Import the Abaqus INP file.

file_io = prime.FileIO(model=model)
import_results = file_io.import_abaqus_inp(
    r"E:/test2/Abaqus_Input_multistep.inp",
    prime.ImportAbaqusParams(model),
)
print(import_results)

The import_abaqus_inp imports the INP file as mesh, extracts simulation specific information from the INP file and stores the information internally as a JSON document. ImportAbaqusParams allows you to set the parameters for importing the model. The example uses default parameters for importing the model.

Output:

../_images/fe2ansys_abaqus_import.png

Here, the import summary provides information on the following:

  • Total number of keywords in the imported file.

  • Total number of processed keywords.

  • Total number of skipped or unprocessed keywords.

  • Number of imported nodes.

  • Number of imported elements(solid, shell, beam and more).

  • Number and type of skipped elements.

  • Ids of imported nodes and elements.

  • Number of errors and warnings that occurred while importing the file.

  1. Export the CDB file.

export_cdb_result = file_io.export_mapdl_cdb(
    r"E:\test3\Abaqus_Input_multistep.cdb",
    prime.ExportMapdlCdbParams(model),
)
print(export_cdb_result)

ExportMapdlCdbParams allows setting parameters to control the export of MAPDL CDB files.

ExportMapdlCdbResults contains the summary result of the export process in json format. This writes the CDB file to the specified location.

../_images/fe2ansys_cdb_export.png

CDB Export summary provides information about:

  • Number of error and warnings that occurred while exporting the CDB file.

  • Maximum number of node ids and elements ids that are exported.