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

Calling CEL values in FORTRAN

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2007, 14:01
Default Calling CEL values in FORTRAN
  #1
Rob
Guest
 
Posts: n/a
Hi all, does anyone know if there is a data aquision routine in fortan, that i can use to call values stored as CEL expressions? i have tried using 'CALL USER_GETVAR' but with no luck, if anyone can help, possibly with a small example? that would be great!

Thanks everyone!

Rob.
  Reply With Quote

Old   January 16, 2007, 15:17
Default Re: Calling CEL values in FORTRAN
  #2
opaque
Guest
 
Posts: n/a
Dear Rob,

Do you mean constants added to the LIBRARY section? Like in

LIBRARY:

CEL:

EXPRESSIONS:

my_c1 = 1

my_c2 = 2

my_c3 = my_c1 * my_c2

END

END

END

Do you want access to either of the 3 variables?

Sorry, the ANSYS CFX solver does not keep those constants around after the run starts. They are preprocessed and thrown away..

However, if you stored your constants (not expressions) in the USER section, you can use USER_PEEKx (see documentation) to access those.

Opaque.

  Reply With Quote

Old   January 19, 2007, 08:56
Default Re: Calling CEL values in FORTRAN
  #3
Rob
Guest
 
Posts: n/a
Thanks Opaque, i have done as you suggested and it works great. However, i have a few new issues.. i am also trying to call the timestep into the fortran (value in seconds) which i believe is DTSTEP, although the help files dont specify this exactly. I am already using CALL_TRANS_INFO, to call ATSTEP, the current timestep number, but the same call for DTSTEP doesnt work. Also i would liek to call the angular velocity of the component into fortran, but i cant find any information on this. If u can help with any of these i would be very grateful.

Thanks again for your help!

Rob
  Reply With Quote

Old   January 19, 2007, 10:38
Default Re: Calling CEL values in FORTRAN
  #4
opaque
Guest
 
Posts: n/a
Dear Rob,

If you need the time step (delta t), the internal name is DT no DTSTEP.. That may be your problem.

With respect to the angular velocity (you are using rotating frame right?), the memory location is not documented and unfortunately user_get_phys_info does not copy the information to the USER directory.

Could you share why do you want to access the angular velocity, or how do you plan to use it?

Opaque.

  Reply With Quote

Reply


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
Passing Values in Multiple points by 1 CEL Function Araz CFX 0 May 5, 2011 17:06
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 2 October 15, 2007 10:29
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 07:39
CFX arc-modeling, User Fortran, CEL.... Bloshchitsyn Vladimir CFX 0 October 15, 2007 07:17


All times are GMT -4. The time now is 12:28.