Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

USERSUBROUTINEs

Status
Not open for further replies.

leo81

Bioengineer
Dec 6, 2007
43
0
0
BE
Hi guys,

could someone give me a well working umat subroutine? I had some troubles linking abaqus and fortran but i don't have experiences writing subroutines. Do, i'd like to test it. Could someone help me? i have to be sure that the problem in compilation is only in my subroutine (in the code).

Thanks a lot.

Cheers,


Leo
 
Replies continue below

Recommended for you

There are a number of them in the documentation. Just go to the examples section, there may even be one that is close to your actual application.

or

You can have Abaqus check to make sure everything is linked correctly. I think the command is: abaqus verify -user_std -user_exp

This will check both for both standard and explicit

HTH
Dan
 
I tried to simulate a cube encastred on one side (basement) under the effect of gravity.
I uploaded the UMAT example in the manual 1.1.31. But this is the content of a file generated after the simulation. The error says:"problem during compilation".

I am not sure on how to write the .inp file. Nothing in said in the manual.


Abaqus JOB UMATjob
Abaqus Version 6.7-EF1
Begin Compiling Abaqus/Standard User Subroutines
02/02/10 14:59:49
ifort: warning: Microsoft Visual C++ not found in path
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field
fortcom: Error: Illegal character in statement label field [R]
fortcom: Error: Illegal character in statement label field [O]
fortcom: Error: First statement in file must not be continued
UMAT.for(5) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: => = . ( %
4 CELENT,DFGRD0,DFGRD1,NOEL,NPT,LAYER,KSPT,KSTEP,KINC)
-----------------------------------------------------------^
UMAT.for(63) : Error: Unrecognized token 'K1?' skipped
N2 = K1–1
--------------^
UMAT.for(112) : Error: Unrecognized token 'TDE?' skipped
SCD = SCD + TDE – DEE
------------------^
UMAT.for(113) : Error: A RETURN statement is invalid in the main program.
RETURN
------^
UMAT.for(10) : Error: An automatic object is invalid in a main program. [STRESS]
DIMENSION STRESS(NTENS),STATEV(NSTATV),
----------------^
UMAT.for(10) : Error: An automatic object is invalid in a main program. [STATEV]
DIMENSION STRESS(NTENS),STATEV(NSTATV),
------------------------------^
UMAT.for(11) : Error: An automatic object is invalid in a main program. [DDSDDE]
1 DDSDDE(NTENS,NTENS),
-------^
UMAT.for(12) : Error: An automatic object is invalid in a main program. [DDSDDT]
2 DDSDDT(NTENS),DRPLDE(NTENS),
-------^
UMAT.for(12) : Error: An automatic object is invalid in a main program. [DRPLDE]
2 DDSDDT(NTENS),DRPLDE(NTENS),
---------------------^
UMAT.for(13) : Error: An automatic object is invalid in a main program. [STRAN]
3 STRAN(NTENS),DSTRAN(NTENS),TIME(2),PREDEF(1),DPRED(1),
-------^
UMAT.for(13) : Error: An automatic object is invalid in a main program. [DSTRAN]
3 STRAN(NTENS),DSTRAN(NTENS),TIME(2),PREDEF(1),DPRED(1),
--------------------^
UMAT.for(10) : Error: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NTENS]
DIMENSION STRESS(NTENS),STATEV(NSTATV),
-----------------------^
UMAT.for(10) : Error: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NSTATV]
DIMENSION STRESS(NTENS),STATEV(NSTATV),
-------------------------------------^
UMAT.for(14) : Error: An automatic object is invalid in a main program. [PROPS]
4 PROPS(NPROPS),COORDS(3),DROT(3,3),DFGRD0(3,3),DFGRD1(3,3)
-------^
UMAT.for(14) : Error: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NPROPS]
4 PROPS(NPROPS),COORDS(3),DROT(3,3),DFGRD0(3,3),DFGRD1(3,3)
-------------^
compilation aborted for UMAT.for (code 1)
Abaqus Error: Problem during compilation - F:\PhD Research\FEA\Simulations\Champmann prova\abaquswork\Comparazione articoli\UMAT.for
Abaqus/Analysis exited with errors




I am not sure on how to write the .inp file. Nothing in said in the manual.


Thanks a lot.



Leo
 
I can't help you with the errors because I don't use many user defined subroutines but you can find information on how to use them by starting at the keyword reference manual under *USER MATERIAL

Dan
 
I tried with UMATMST3 from the verification manual.

This is the content of the .log file:

Abaqus JOB Prova_umatmst3
Abaqus Version 6.7-EF1
Begin Compiling Abaqus/Standard User Subroutines
02/02/10 22:44:49
ifort: warning: Microsoft Visual C++ not found in path
End Compiling Abaqus/Standard User Subroutines
02/02/10 22:44:50
Begin Linking Abaqus/Standard User Subroutines
02/02/10 22:44:50
ValueError: LINK.exe not found in PATH.

Could someone help me?

Thnaks a lot.

Cheers,

Leo
 
In you post at 2 Feb 10 9:13 it looks like the are errors in you fortran source code format. I think the error is saying that you have characters in the wrong columns (the S in subroutine should be in column 7).

It looks like it can't find LINK.exe, so I guess try to figure out where that is (maybe wherever the compiler is installed?) and add it to your path.
 
Guys I fixed the problem thanks!!!

...writing the envair var!!!

now i can start to work on the code

I will come back soon with other problems! ;)

Thanks

Cheers

Leo
 
great to see you cracked the problem. Maybe you could provide the fixed code as an example for those still fighting with the same issues you had?
 
Status
Not open for further replies.
Back
Top