Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
15 Views

Integrating ANSYS with Intel Fortran and Visual Studio

Hello,

I am trying to use User Programmable Features (UPF) in ANSYS 18.0. In order to do that, ANSYS recommends using Intel FORTAN 15.0.2 and Visual Studio 2012. Since Visual Studio 2012 is no more available on Microsoft Website to download, I am using following software -

 MS Visual Studio 2015 Community Edition (Update 3), Intel Parallel Studio XE 17.0.4, ANSYS 18.0.

After installing these as suggested in different tutorials/ forums, I try to compile a simple "Hello World" code from Visual Studio 2015. It worked (as in the screenshot - https://imgur.com/zAVyapX). It seems like Intel Fortran has been integrated properly with Visual Studio.

I have been following this link - https://www.sharcnet.ca/Software/Ansys/17.0/en-us/help/ans_prog/a9yI4r32wfl.html (Process 1.10.3. Using the ANS_ADMIN Utility) to accomplish the task.

To create custom ANSYS.exe, I kept the file to be compiled and linked in following directory - C:\Program Files\ANSYS Inc\v180\ansys\custom\user\winx64 and then set the user environment variable as in the screenshot - https://imgur.com/3hGrzwR.

Then I went on to compile my desired UPF using visual studio 2015 command prompt in administrator mode. First, I changed the directory to C:\Program Files\ANSYS Inc\v180\ansys\custom\user\winx64 and then issued ANSCUST.BAT command. The output is shown in this screenshot - https://imgur.com/CdxIUPu (The system can't find the path specified).

Still, I continued and it showed me the desired Fortran file is being compiled - https://imgur.com/0qhdvuF

After a while, this returned a linking error, LINK: fatal error LNK1104: cannot open file 'libdecimal.lib' - https://imgur.com/bGFPmWT

If the issue is being created from the fact that, ANSYS is not compatible with the versions of other software, then I can update ANSYS version. But I think, this issue is an integration problem. Can you please help me solving the issue? Thanks in advance.

Regards,
Bibek

0 Kudos
1 Reply
Highlighted
Black Belt
15 Views

You may want to get help from

You may want to get help from the ANSYS support folk on using ANSYS. The screenshot of the error from ANSCUST.BAT isn't helpful as it's unknown what the .BAT is doing to trigger that error.

libdecimal.lib is not part of the Intel Fortran product. If this is an ANSYS library, you will need to tell the linker how to find this library.

So far, your issues seem to be much more related to ANSYS than to Intel Fortran.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos