Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

C++ and Fortran Interface 1

Status
Not open for further replies.

garwai85

Mechanical
Jul 10, 2007
10
Hello,

I have another question. Does anyone know how to run ABAQUS from C++ or Fortran? What commands do I need to enter to do this? Is there a reference that you might have that might be able to help me with this interfacing?

Thanks,
AGY
 
Replies continue below

Recommended for you

From Fortran this is very simple, using the CALL SYSTEM command (or CISSUE using Silverfrost FTN95)

CALL SYSTEM('C:\ABAQUS\6.7-1\exec\abq671.exe job=file')

where file is your model name minus the .inp extension.
 
In C++ you can commonly use system()

int system(
const char *command
);

I am not very familiar with Linux, but under Windows there are additional options for launching processes; you could check the exec(), popen() and spawn() family of commands.



 
Thanks for the replies! I'll look into your suggestions and I really appreciate the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor