Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

UPS's linking

Status
Not open for further replies.

meshparts

Mechanical
Feb 17, 2005
490
Hi!

I'm studying error estimate for models consisting of deferent materials. Therefore I've written a Fortran-program for getting the unaveraged nodal stress in Ansys 8.1.

My problem: I couldn't link these procedure to Ansys. Cann anybody please help me? I am using Salford FTN95 for compiling.

In detail: I've taken the file USER02.F and sligthly modified, to see if it's still working. Therefore I've compiled and built it with Fortran and copied the USER02.F and USER02.OBJ to the Ansys-working directory. I've also copied the MAKEFILE and ANSCUST.BAT files to the same directory. After the run of ANSCUST.BAT I couldn't see any difference compared to the old USER02.

Thanks!
 
Replies continue below

Recommended for you

A user subroutine is compiled to form a customised ANSYS executable. If you have access to the fortran subroutine, and have the correct fortran compiler for the Ansys version and platform (see ansys installation manual), the ANSCUSTOM script will build a customised version of ANSYS. You will need to compile the subroutine and link it with the ANSYS libraries to create your own custom executable. The key thing to do is to make sure you have the *exact* compiler specified in your installation guide for the version and OS you are using. Next, make sure you have installed the custom directory for ANSYS: ...v90/ansys/custom, where you will find the ANSCUST.BAT utility that helps you do the compile.

I assume that you've done most of the steps above, with the exception of procuring the EXACT compiler for your version and OS.

Cheers,

-- drej --
 
Hi, Drej!

Thank you for your imediate answear!

From the installation guide for ANSYS 8.1 I am learning, that I need the FORTRAN 6.6A compiler. Do you know, if it exists such a compiler free for download? I couldn't find nothing on the internet.

Thanks in advance!
 
Hi mihaiupb,

For win32 platform and v.8.1 you need COMPAQ VISUAL FORTRAN 6.6a I believe (you can use older versions - 6.0, 6.5, 6.6 BUT install file 66acompat.lib) and also you will need MS VC++ 6.0 (SP 5). For win64 and v.8.1 you need Intel Fortran v7.1 and Intel C++ v7.1. for unix, linux. I don't know of a free compiler, but having carried out a search I couldn't immediately see anything for free.

Cheers,

-- drej --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor