×
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

C++ and Fortran Interface

C++ and Fortran Interface

C++ and Fortran Interface

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

RE: C++ and Fortran Interface

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.

RE: C++ and Fortran Interface

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.



RE: C++ and Fortran Interface

(OP)
Thanks for the replies!  I'll look into your suggestions and I really appreciate the help.

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