Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

run an analysis with a C/C++ user subroutine 1

Status
Not open for further replies.

94710

Structural
May 16, 2007
21
Dear all

I want run an abaqus simulation with a user subroutine written in C/C++.
I have downloaded one from abaqus online support system answer 737.

I modified my extension file from .c to .cpp. I add it to a Win32 empty project in Ms Development Environment 2003.For fixing a link warning , I modified in visco.cpp properties pages, debug information format=disabled.
I compiled it successfully.
In abaqus environment file, for fixing some link warning otherwise occuring during my abaqus execution, I add in link_sl parameter: '/nodefault:libcmtd.lib','/noentry'.

Here what I get trying to run my analysis

C:\Documents and Settings\alorenzom\Documenti\HC3FEM\AbaqusUSrI>abaqus -j visco_
dload -user visco.obj interactive
Old job files exist. Overwrite? (y/n): y
ABAQUS JOB visco_dload
ABAQUS Version 6.6-1
Begin Linking ABAQUS/Standard User Subroutines
5/29/2007 11:32:42 PM
Creating library standardU.lib and object standardU.exp
End Linking ABAQUS/Standard User Subroutines
5/29/2007 11:32:42 PM
Begin Analysis Input File Processor
5/29/2007 11:32:42 PM
Run pre.exe
ABAQUS License Manager checked out the following licenses:
ABAQUS/Standard checked out 5 tokens.
<13 out of 18 licenses remain available>.
5/29/2007 11:32:43 PM
End Analysis Input File Processor
Begin ABAQUS/Standard Analysis
5/29/2007 11:32:43 PM
Run standard.exe
ABAQUS License Manager checked out the following licenses:
ABAQUS/Standard checked out 5 tokens.
<13 out of 18 licenses remain available>.
5/29/2007 11:32:44 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

C:\Documents and Settings\alorenzom\Documenti\HC3FEM\AbaqusUSrI>

and in msg file I find 'error user subroutine dload missing'


If it could be useful:I work on windows/x86-32.I have installed ms platform sdk 2003,Ms Visual Studio .net 2003,intel fortran compiler9.1.I run an abaqus analysis with a fortran user subroutine successfully.

Has any one got any suggestions for me?It would be very usefule for my work.

Thanks a lot in advance for your helpfullness.
 
Replies continue below

Recommended for you

Is any specific reason for which you want to complicate your life and not write the subroutine file in FORTRAN ?
 
Yes he is my chief!

By the way, I just slightly modified my subroutine source code and I run my simulation successfully. I compare successfully some results in odb obtained from my simulation and those corresponding in odb obtained from simulation with fortarn user subroutine (that I downloaded from abaqus online support system answer 737 too).

All's well that ends well.
 
Grazie! ma questo è un forum inglese!!
 
Dear 94710,

I want to ask you if with the fortran subroutine you can run several analysis changing change some parameters. How does it works?

thanks,
Albert
 
Do you want to run with a single execution procedure more than one abaqus analysis jobs that are different only for some parameters, don't you?

Sorry I don't know how you can do this and if you could use fortran subroutine to do this.

I'm performing a study of convergence of a solution through mesh-refinement and I'm using a c++ code to generate all my input files and an ASI (abaqus scripting interface) script to run all related jobs.

Or perhaps you want to define a fortran subroutine with a parameter that you set in your input file?

By the way try to give more details about what you want to do so I or anyone can help you.
 
Hi 94710,

What I am trying to do is simulate the propagation of a crack. I am taking a quarter of a plate and release the node changing the simmetry condition all the time. With fortran I modify the input file changing just the symmetry condition. then I run the simulation again with another symmetry condition and so on.
What I would like to do is to release some node from the symmetry (in order to simulate the crack growing) read the results from the *.dat file and the start again.
I saw your post and I was wondering if there is any fortran subroutine already implemented.

Thanks,
Albert
 
Sorry I'm not able to help you about this.I have no experience about this.I hope someone can help you.Post a message with appropriate title and briefly all of your information.Good Luck!
 
Hello all,
I came across your mails while looking for the possibility of running ABAQUS solver for the parametric studies. And I would like to ask whether we aim the same, or not:
1- After creating a model in ABAQUS user interface, an .inp file is created.
2- This .inp file may be re-written with some variables which could be assigned by some programs such as fortran, MATLAB (my choice).
3- Then calling ABAQUS solver without using user interface and repeating the runs for any time the value of the variable is changed.

Am I wright in my expressions above?

If yes, let's seek the answer together.

Ahmet Anil Dindar

 
1. Yes, if by ABAQUS user interface you are referring to ABAQUS/CAE.

2. The inp. file is a text file describing the FE model using rules and keywords and can be (re-)written by an external program. In fact many people do not use ABAQUS/CAE and prefer to create the .inp file directly.

3. You can submit the .inp to the solver via command prompt, and yes, you can write a program to do that in a loop and to alter the .inp file during each iteration.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor