Notifications
Clear all

Running Abaqus from Matlab script

22 Posts
13 Users
0 Likes
2,315 Views
Posts: 38
Topic starter
(@Emanuele)
Eminent Member
Joined: 16 years ago

Im trying to run an abaqus model from within a matlab script in order to do a material parameter optimisation. My model has a user-defined material. I can run it outside of matlab with no problems. However, when running it within matlab, the user-subroutine fails to link:

Begin Linking Single Precision Abaqus/Explicit User Subroutines

2/25/2009 1:24:59 PM

LINK : fatal error LNK1104: cannot open file LIBIFCOREMD.LIB

Abaqus Error: Problem during linking - Single Precision Abaqus/Explicit User Subroutines.

This error may be due to a mismatch in the Abaqus user subroutine arguments.

These arguments sometimes change from release to release, so user subroutines

used with a previous version of Abaqus may need to be adjusted.

Abaqus/Analysis exited with errors

Suspecting something is up with the environment variables, Ive tried running the IFortVars.bat within the matlab script prior to executing abaqus. The batch file runs ok but the subroutine still fails to link.

Any help in this matter would be greatly appreciated.

Regards,

Cormac

21 Replies
Posts: 3981
(@jorgen)
Member
Joined: 4 years ago

I suggest that you create a compiled shared library version of your user subroutine using, for example:

abaqus make library=[fortran-file-name]

That way you dont have to worry about environmental variables.

-Jorgen

21 Replies
Posts: 38
Topic starter
(@Emanuele)
Eminent Member
Joined: 16 years ago

Running Abaqus from Matlab script

Thanks Jorgen. Works a treat.

Cormac

Reply
Posts: 4
(@PaulvdH)
New Member
Joined: 14 years ago

Matlab ABAQUS for optimization

I want to link Matlab and ABAQUS for optimization, I want to creat input and output file for use in matlab az an optimizer.Could you help me.

Reply
Posts: 3981
(@jorgen)
Member
Joined: 4 years ago

You can do that if you perform the post processing using the Abaqus python interface.

-Jorgen

Reply
Posts: 61
(@appetite)
Trusted Member
Joined: 14 years ago

Hi Cormac

I want to do exactly the same. I have linked Matlab with Abaqus and it works but I dont know which Optimization algorithm I must use. Because the function is unknown and I just have a couple of experimental points versus the FEM result points. I have heard that Genetic algorithm is suitable for such conditions but I really have no idea about it.

How do you do that?

Regards,

Bio

Reply
Posts: 59
 lynx
(@lynx)
Trusted Member
Joined: 14 years ago

Questions of a windows user

Hi Jorgen and all,

I have two questions which are listed below:

1) Can we create a compiled shared library version of our user subroutines

in windows. If so how? The subroutines require (v)aba_param includes as knowns.

2) As also clearly seen from other posts VUMAT is compiled twice by ABAQUS,

one with single precision and one with double. Under these circumstances

I am not allowed to use some built in double precision functions like

dabs, dexp, dsqrt. Can I put a control statement which keeps track

of the precision required, or do you have a suggestion for that.

Thank you in advance for your time,

Kumar

Reply
Page 1 / 4
Share: