User login

Navigation

You are here

How to link the fortran compiler with Abaqus?

Dear All Abaqus Experts:

I am new Subroutine user and I have Force2.0 installed on my computer with Abaqus 6.10. When I type 'abaqus job=analysis user=analysis', it returns that 'analysis.f or analysis.obj can not be located', I changed the extension of the .f file to .for, which seems pass through but still with error that 'ifort.exe can not be found'. I looked everywhere and got no clue, pls pls help on this and your kind help is mostly appreciated.

Free Tags: 

Dear ton711,

I am not replying back to your post as an Abaqus expert at all, but on the other hand I gave a lot of time and effort  to get Abaqus and Fortran work together! So I can really unerstand your frustration and disappointment. To be honest I have not heard this Fortran Compiler, but you should take into account that Abaqus is really picky about what compiler is used. They recommend Intel Fortran Compiler. My current configuration is Abaqus 6.10-2, Visual Studio 2008 and Visula Fortran Compiler Pro 11.1.054. The order of installation of the above mentioned applications is the following :

1st Visual Studio 2008 

2nd Intel Visual Fortran Compiler Pro 11.1.054

3rd Abaqus 6.10-2

When I want to run an analysis with subroutine support I type the command (abq6102 job= user= ) in the Fortran Compiler;s command prompt.

You can also check if Abaqus has recognized your Fortran compiler by opemimg the compiler's command prompt and type : "abq6102 verify -user_std".

You should also check the support site of Simulia (if you have not already done that) you may find there an answer to your question. Do not hesitate to contact me if I can be of any help.

Good Luck,

Ilias Zilakos

Dear Ilias:

 Thanks so much for your explaination. I would try to install another compiler and see from there. Hope the problem would be solved. I tried a 2-D example provided from Abaqus Verification Manual but still got error. I did not Simulia site but I will. Appreciated!

Best wishes

 Tony

Dear Ilias Zilakos,

I think the order of installation of those softwares is not important. My order is:

1st Abaqus 6.11-1

2nd Visual Studio 2008

3rd Intel Visual Fortran Compiler 11.1.065.

Finally, these softwares are work well with each other.

scdyzjlg

Dear Sir,

I am spending a lot of time in connecting fortran to abaqus but no success.

I installed the order in which you gave but no success. Is there any other changes we have to do in the system. I am new to this and the help available in the forum is not of much use. Please can you help

Dear Ilias,

I have installed ABAQUS, I am wondering how I can actually link Fortran and ABAQUS directly from fortran. I read your post but Fortran gave me errors meaning it didn't get the command whatsoever. I am not so familiar with this command prompt so could you please the exact command I should put there?

 

PS: In the "commands" folder in ABAQUS directory, there the following .bat files:

abaqus

abq6101

abq_cae_open

abq_odb_open

 

PSS: I got no ABAQUS icon in the start menu or on the desktop. I do not know the reason. Any Idea?

 

Thank you.

Dear salingerv,

 

last time i installed abaqus no problem with the the all icon (abaqus CAE, abaqus verification command and others icon). But recently i installed to others laptop, it's face the problem same with you which can't find all the icon....

Do u know how to fix it... Your help highly appreciated it because i need to fix it to change my target properties for link to my subrotine file.

 

Thanks alot.

 

Regards

Ng (thengpin87@yahoo.com

In my experience, the order of installation is important, particularly, if one wants to use the compiler to debug the subroutines. Here's what I have used successfully:

1. Visual Studio 2008 Pro

2. Intel Fortran Compiler 11

3. Abaqus v6.10/6.11

With regard to OS, Abaqus will not be supporting XP any longer.

 

salingerv

Do the following in the order mentioned below. I am assuming you have ABAQUS v6.10 running on a XP-64 bit PC. ifortvars_intel64.bat and vcvarsx86_amd64.bat are the two batch files that the shortcuts need. 

1. Verify your installation

Go to Start -> Programs -> Abaqus -> Right click on Abaqus Verificationà Click on Properties 

Change the Target to the following:

"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat" & "C:\Program Files (x86)\Intel\Compiler\11.0\061\fortran\Bin\intel64\ifortvars_intel64.bat" && C:\Abaqus\Commands\abq6101.bat -verify -all -log

 

Click OK 

Click on Abaqus Verification shortcut to verify your installation. Make sure there are no FAIL messages (except, perhaps, internet browser). 

2. Set up ABAQUS/CAE to run subroutines from within CAE:

Go to Start -> Programs -> Abaqus -> Right click on Abaqus CAE -> Click on Properties

Change the Target to the following:

 "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat" && "C:\Program Files (x86)\Intel\Compiler\11.0\061\fortran\Bin\intel64\ifortvars_intel64.bat" && C:\Abaqus\Commands\abq6101.bat cae || pause

 

Click OK

3. Setting up ABAQUS command prompt:

Go to Start -> Programs -> Abaqus -> Right click on Abaqus Command àClick on Properties

Change the Target to the following:

"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat" & "C:\Program Files (x86)\Intel\Compiler\11.0\061\fortran\Bin\intel64\ifortvars_intel64.bat" && C:\WINDOWS\system32\cmd.exe /k

 

Click OK

 

To enable debugging of subroutines:

 

Open abaqus_v6.env

In "compile_fortran", add ‘/Od’ and ‘/Zi’ parameters to enable Intel Fortran compiler to add debug symbolic information into .obj file as follows:

compile_fortran=['ifort', '/c', '/Gm', '/recursive', '/nologo', '/heap-arrays:1', '/include:%I', '/Od', '/Zi']

In "link_sl", add /DEBUG to let Visual C++ .NET linker to link the files with the symbolic information in .obj file as follows:

link_sl='cmd /c "LINK /DEBUG /nologo /INCREMENTAL:NO /subsystem:console /machine:X86

In "link_exe", add /DEBUG to let Visual C++ .NET linker to debug the files as follows:

link_exe='cmd /c "LINK /DEBUG /nologo /INCREMENTAL:NO /subsystem:console

 

Insert a READ(*,*) VARIABLE in your subroutine source code right after the "DIMENSION" definition; "VARIABLE" is the name of a dummy variable. You may also insert a breakpoint at a function/variable of interest or watch a variable of interest (using Debug -> QuickWatch). You may want to learn how to use debugging options in Visual Studio. Here are the first few lines of code for a typical ABAQUS subroutine ready to be debugged:

 

      INCLUDE 'ABA_PARAM.INC'
C
      CHARACTER*80 CMNAME
C
C
      DIMENSION STRESS(NTENS),STATEV(NSTATV),
     1 DDSDDE(NTENS,NTENS),DDSDDT(NTENS),DRPLDE(NTENS),
     2 STRAN(NTENS),DSTRAN(NTENS),TIME(2),PREDEF(1),DPRED(1),
     3 PROPS(NPROPS),COORDS(3),DROT(3,3),DFGRD0(3,3),DFGRD1(3,3)
C   
C
C
      PARAMETER (M=3,N=3,ID=3,ZERO=0.D0,ONE=1.D0,TWO=2.D0,THREE=3.D0,
     +          SIX=6.D0, NINE=9.D0, TOLER=0.D-6)
C
      DIMENSION DSTRESS(4)     
C     
      DIMENSION VARIABLE(1)
      READ(*,*), VARIABLE

Launch ABAQUS with the command ABAQUS job=JOB_NAME user=SUBROUTINE_NAME interactive

ABAQUS will pause when it scans to READ(*,*).

Watch the command prompt window. As soon as the command prompt says <N tokens out of M licenses remain available> (I guess a couple of times), switch over to Visual Studio

Go to Tools -> Attach to Process. Select standard.exe and click Attach.

In the command prompt window, type in some arbitrary value for READ(*,*).

Visual Studio should show you the source code in another tab after it successfully breaks in the subroutine.

Debugging is enabled! 

 

I followed the Process,which is written above
but when I was trying to run the job in ABAQUS its give following error:

__________________________________________________________
Abaqus JOB umatmst3
Abaqus 6.10-1
Begin Compiling Abaqus/Standard User Subroutines
8/2/2012 2:39:45 PM
End Compiling Abaqus/Standard User Subroutines
8/2/2012 2:39:45 PM
Begin Linking Abaqus/Standard User Subroutines
8/2/2012 2:39:45 PM
   Creating library standardU.lib and object standardU.exp
Microsoft (R) Manifest Tool version 5.2.3790.2075

Copyright (c) Microsoft Corporation 2005.

All rights reserved.

End Linking Abaqus/Standard User Subroutines
8/2/2012 2:39:46 PM
Begin Analysis Input File Processor
8/2/2012 2:39:46 PM
Run pre.exe
Abaqus License Manager checked out the following licenses:
Abaqus/Standard checked out 5 tokens.
8/2/2012 2:39:47 PM
End Analysis Input File Processor
Begin Abaqus/Standard Analysis
8/2/2012 2:39:47 PM
Run standard.exe
Abaqus License Manager checked out the following licenses:
Abaqus/Standard checked out 5 tokens.
forrtl: severe (24): end-of-file during read, unit -4, file CONIN$

Image              PC                Routine            Line        Source            
libifcoremd.dll    00000000100BE430  Unknown               Unknown  Unknown
libifcoremd.dll    00000000100B7F75  Unknown               Unknown  Unknown
libifcoremd.dll    00000000100A4F8B  Unknown               Unknown  Unknown
libifcoremd.dll    0000000010025470  Unknown               Unknown  Unknown
libifcoremd.dll    0000000010024E3D  Unknown               Unknown  Unknown
libifcoremd.dll    000000001005B8E8  Unknown               Unknown  Unknown
standardU.dll      0000000007E611D7  Unknown               Unknown  Unknown
ABQSTD_Core.dll    0000000180BA9643  Unknown               Unknown  Unknown
ABQSTD_Core.dll    0000000180A4970E  Unknown               Unknown  Unknown
ABQSTD_Core.dll    00000001807CB6DB  Unknown               Unknown  Unknown
ABQSTD_Core.dll    00000001804EF322  Unknown               Unknown  Unknown
ABQSTD_Core.dll    00000001802C1A18  Unknown               Unknown  Unknown
ABQSTD_Core.dll    000000018027971A  Unknown               Unknown  Unknown
ABQSTD_Core.dll    0000000180157500  Unknown               Unknown  Unknown
ABQSTD_Core.dll    00000001800989BF  Unknown               Unknown  Unknown
ABQSTD_Core.dll    000000018003A357  Unknown               Unknown  Unknown
ABQSTD_Core.dll    0000000180213871  Unknown               Unknown  Unknown
ABQSTD_Core.dll    00000001801022DC  Unknown               Unknown  Unknown
ABQSTD_Core.dll    000000018006D39E  Unknown               Unknown  Unknown
ABQSTD_Core.dll    0000000180031C7E  Unknown               Unknown  Unknown
ABQSTD_Core.dll    0000000180017220  Unknown               Unknown  Unknown
ABQSTD_Core.dll    000000018000B4C4  Unknown               Unknown  Unknown
standard.exe       0000000140002774  Unknown               Unknown  Unknown
standard.exe       000000014000184F  Unknown               Unknown  Unknown
standard.exe       00000001400011B2  Unknown               Unknown  Unknown
kernel32.dll       000000007786F56D  Unknown               Unknown  Unknown
ntdll.dll          0000000077AA3281  Unknown               Unknown  Unknown
8/2/2012 2:39:48 PM
Abaqus Error: Abaqus/Standard Analysis exited with an error - Please see the
message file for possible error messages if the file exists.
Abaqus/Analysis exited with errors
______________________________________________________________________________________________

Please can any body can tell what is Problem with this.

hello Vikas!

I do as you told,but my subroutine cannot be debugged successfully. i donnot know if that is a mistake in my subroutine or i just cannot debug the subroutine in my system. Sorry for my bad english. i hope my meaning is clear.

 yours

Kenneth Lai

Dear Ice,

Can you tell me in what way debug option will be helpful people who are just starting(like me) to use subroutines?

Deepak

Hi, very old post but it is very useful for me.

When i am running umat, the error is "D:\Program Files\SIMULIA\Abaqus\6.12\exec\standard.exe aborted with system error code 144."

Anyone know how to treat this problem.

Soud Choudhury's picture

This occurs sometime when a parameter is divided by zero and value becomes infinity. Also, sometime, I have heard that it occurs when the solution is not convergent.

Try and look for the errors.

Best of Luck!!! 

 Soud Farhan Choudhury

Hi every body,

 I'm a new user of subroutines in ABAQUS.

I'm using ABAQUS 6.12-3 on a windows 7 (64 bit) system. I've installed
Intel Composer XE nad Visual Studio 2012 pro on my computer.

When I'm running verification test, for Microsoft Visual C++ and Intel Fortran Compiler, it shows a fail message.

I've tried to go with steps mentioned above but some of the fitures have
been changed in ABAQUS 6.12-3 and also in Intel Composer XE (for
example there is no file like C:\Program Files (x86)\Intel\Compiler\11.0\061\fortran\Bin\intel64\ifortvars_intel64.bat and C:\Abaqus\Commands\abq6123.bat cae).

Would you please let me have your help to overcome this problem? It's very important to me to solve it ASAP.

Kind Regards
Ashkan

go to dassults system of ABAQUS 6.12-3 in site web ,and verify the requirements  and if it compatible with FORTAN XE and witch version of visual studio is compatiple with....(sorry for the spelling)

Fouaz,

I did. they are compatible and still I can't find a way to link them.

Kind Regards
Ashkan

Hey Ashkan 

The way of using ifortvars.bat is a little bit different in Fortran XE , you can follow my 4 step guide at  (http://tuoonline.sinaapp.com/?p=131)

my guide is for 6.13 but your 6.12 will work just the same way.

 

The file you need to find is

a) ifort.exe under \bin\intel64 

b)ifortvars,bat under \bin\

c)abaqus.bat under Abaqus\Commands\

 

I am sure you will notice the difference between 6.12 and 6.13 in the abaqus.bat file, the only difference is when edit abaqus.bat in step (3), use

@echo off
@call ifortvars.bat intel64 vs2012

“C:\SIMULIA\Abaqus\Commands\abq6123.bat” %* 

 

instead of what I wrote in my article for 6.13.

 

Good luck

  

 

I have written a UMAT for non-linear viscoelastic material. While calling it in Job Module of Abaqus6.13-1 I am getting error message: "Problem during compilation". As suggested in the earlier discussions on this thread I tried to verify the linking of Microsoft Visual Studio 2005 and Intel visual Fortran compiler with Abaqus by feeding the command 'abaqus6131 verify -user_std' in the command prompt of visual studio. I got the message as:

" Abaqus/Standard with user subroutines

The system cannot find the path specified

        ...INFORMATION

The product is not properly licensed or insufficient tokens are available. This verification process will be skipped."

  I further tried Abaqus Product Install verification and got the message in the log file:

"-----------------------------------------------------------------------------

Abaqus/Standard

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/Standard with user subroutines

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/Explicit (single precision)

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/Explicit (double precision)

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/Explicit with user subroutines (single precision)

 

 

         ...ERROR

 

            Abaqus did not complete successfully.

 

            Please see xpl_user_sp.log for details.

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/Explicit with user subroutines (double precision)

 

 

         ...ERROR

 

            Abaqus did not complete successfully.

 

            Please see xpl_user_dp.log for details.

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/Viewer

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Abaqus/CAE

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Geometry Translator for CATIA V4

 

 

         ...PASS

 

         Continuing...

 

-----------------------------------------------------------------------------

Geometry Translator for CATIA V5

 

 

         ...PASS

 

         Continuing..." etc.

Also it is giving "runtime error!" for R6034.

 

Can somebody suggest waht should my further course of action be?

Frank Richter's picture

try

https://groups.yahoo.com/group/ABAQUS

Dear Frank,

I searched on the internet for what version of MS Visual Studio together with the IVF is required for Abq6134, and it showed that Abq6134+VS2012+IVF2013  or Abq614+VS2013+IVF2013 work well, but what if I use VS2013+IVF2013 for ABQ6134 subroutines, is it still OK? BTW, where can I find the Compatibility information for these 3 software?  It seems the Dassault Official Site dosent provide any information.

Thanks in advance.

CMiculas's picture

Dear all,

In my Microsoft Visual Studio folder, I do not find any "*.bat" files.

I have version 2005 (Microsoft Visual Studio 8).

Any suggestions?

Thnak you

Subscribe to Comments for "How to link the fortran compiler with Abaqus?"

Recent comments

More comments

Syndicate

Subscribe to Syndicate