Corrupt ANSYS Mechanical Database? You Might Be Able to Recover

Most of the time ANSYS Mechanical does a great job of keeping track of all our input and output files needed for a particular simulation. Every once in a while though, a glitch can happen which could lead to a corrupt database that gives you errors, say, if you try to reopen the ANSYS Mechanical editor. If you suspect that somehow your project database for a Mechanical model (or any other model that uses the same interface as ANSYS Mechanical) has been corrupted, you just might be able to recover it using these steps:

1. Copy any .mechdb files from the project directory to a different location. Rename them to a .mechdat extension. These will be named SYS.mechdb, SYS-1.mechdb, etc. The easiest way to find these files is to click on View > Files from the Workbench window, then scroll through the list until you find the .mechdb file or files. Then right click on each one and select “Open Containing Folder.” This will open Windows Explorer in the directory in which the file resides. You can then copy the files to a new location and rename them to .mechdat extensions.

image

image

2. Copy any .agdb (DesignModeler) files or other geometry files from the project directory to a different location. These will be named SYS.agdb , SYS-1.agdb, etc. (for DesignModeler) and can be found using View > Files as I described above. No need to rename these.

image

3. Start a new Workbench session.

4. Click File > Import. Set the type of file to import to “Importable Mechanical File”. Browse to the two .mechdat files created in step 1 (by renaming the copied .mechdb files) and import each.

image

5. If needed for geometry files, in the resulting Project Schematic in the Workbench window, right click on the first block’s geometry cell and select Replace Geometry > Browse. Browse to the copied SYS.agdb file or other geometry file from step 2. Repeat any additional analysis block in similar fashion.

image

6. Then save the project with a new name and directory. 

This should allow you to recreate a Workbench project that allows you to continue working. We hope this suggestion is helpful if the need ever arises to use it.

image

(Artwork by Eric… Ted does much nicer smiley faces)

One Reply to “Corrupt ANSYS Mechanical Database? You Might Be Able to Recover”

  1. Good Topic. One suggestion about step 5. If one uses “Replace method” for *.agdb file Workbench might mark analysis with “Refresh required” sign (user have to re-import geometry into analysis). To repair connection with geometry and avoid risk of refreshing it. User cad use “Repair method”, it’s simple:
    01.jpg – You start with disconnected geometry
    02.jpg – In main Wokbench window activate files list by clicking on top bar:
    View Files
    03.jpg – In new window search for file names in RED (red colour marks them as missing). Click RMB (Right Mouse Button) on them and from drop down menu choose “Repair ….. “, next is to search&point correct *.agdb file
    04.jpg – Ta daaa, connection is repaired and Refresh is not required (at least it shouldn’t be). If there is still exclamation mark with Geometry, Save, Close&Open project, now it all should be OK.

    PS. Also you can use Darg&Drop method to input *.mechdat files into WB project schematic. Just drag *.mechdat file (files) from your Explorer window onto white area of WB Project Scheamtic and wait a little (it’s a short version of import ;] )