Skip to content

Create solver_translation.rst #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/1103.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Create solver_translation.rst
Binary file added doc/source/images/fe2ansys_abaqus_import.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/images/fe2ansys_cdb_export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions doc/source/user_guide/solver_translation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
.. _ref_index_solver_translation:

******************
Solver translation
******************

Solver translation (commonly known as FE2Ansys) translates Abaqus input deck to Ansys solver decks (MAPDL and LS-DYNA).
The translation ensures that the abaqus model can be used in Ansys without recreating them from scratch.
It helps to save time and efforts 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 input file to MAPDL file format:

1. Import the Abaqus file.

.. code-block:: python

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 abaqus file as mesh, extracts simulation specific information from the abaqus file and
stores the information in Prime as a JSON document. :class:`ImportAbaqusParams <ansys.meshing.prime.ImportAbaqusParams>`
allows you to set the parameters for importing the model. The example uses default parameters for importing the model.

**Output**:

.. figure:: ../images/fe2ansys_abaqus_import.png

2. Export the file in MAPDL format.

.. code-block:: python

mapdl_params = prime.ExportMapdlCdbParams(model=model)
mesh_file_cdb = os.path.join(r"E:\test3\Abaqus_Input_multistep.cdb")
export_cdb_result = file_io.export_mapdl_cdb(
mesh_file_cdb,
params=mapdl_params,
)
print(export_cdb_result)

:class:`ExportMapdlCdbParams <ansys.meshing.prime.ExportMapdlCdbParams>` allows setting parameters to control
the export of MAPDL CDB files.

:class:`ExportMapdlCdbResults <ansys.meshing.prime.ExportMapdlCdbResults>` contains the summary
result of the export process in json format. This writes the .cdb file to the specified location.

.. figure:: ../images/fe2ansys_cdb_export.png
3 changes: 3 additions & 0 deletions doc/styles/config/vocabularies/ANSYS/accept.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
abc
(?i)Abaqus
(?i)Ansys
(?i)Apis
AutoMesh
Expand All @@ -15,11 +16,13 @@ Fluent Meshing's
geodesical
hexahedra
hexcore
_inp
ignore_orientation
ignore_self_proximity
IGA
[Ii]sogeometric
JTOpen
JSON
[Ll]inux
[Ll]ucid
Material Point Manager
Expand Down
Loading