×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

USERSUBROUTINEs

USERSUBROUTINEs

USERSUBROUTINEs

(OP)
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

RE: USERSUBROUTINEs

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

RE: USERSUBROUTINEs

(OP)
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  [S]
fortcom: Error: Illegal character in statement label field  [U]
fortcom: Error: Illegal character in statement label field  [B]
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

RE: USERSUBROUTINEs

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

RE: USERSUBROUTINEs

(OP)
no man that manual is unuseful....

thanks

Leo

RE: USERSUBROUTINEs

(OP)
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

RE: USERSUBROUTINEs

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.

RE: USERSUBROUTINEs

(OP)
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

RE: USERSUBROUTINEs

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?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources