CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

FORTRAN Routine - variable passing

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2005, 13:23
Default FORTRAN Routine - variable passing
  #1
Malcolm
Guest
 
Posts: n/a
Hi

I am writing a FORTRAN routine (for use in cfx 5.7.1) and am confused about how variables are passed to it. It is similar to the example in the cfx manual "User CEL Example 1: User Defined Momentum Source" but a little more complicated.

From the user function editor I need to pass in: Temperature, y location, and z location. So in the arguments list box I have:

Argument List: [K], [m], [m]

Within the FORTRAN routine, I have it so that the lower level routine is called using:

CALL USER_NAME (NLOC,RET(1,1),ARGS(1,1),ARGS(1,2), ARGS(1,3)))

My confusion is regarding what ARGS(1,1), ARGS(1,2), ARGS(1,3) are. How does the FORTRAN routine know that I wanted ARGS's to be. (i.e. how do I pass the y and z locations rather than the x and y)

Any advice would be appreciated.

  Reply With Quote

Old   August 11, 2005, 18:51
Default Re: FORTRAN Routine - variable passing
  #2
Malcolm
Guest
 
Posts: n/a
Never mind.

I forgot that that the variable is defined where the subroutine is initially called.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31
user defined function cfduser CFX 0 April 29, 2006 10:58
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 18:26.