|
[Sponsors] |
January 16, 2007, 14:01 |
Calling CEL values in FORTRAN
|
#1 |
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. |
|
January 16, 2007, 15:17 |
Re: Calling CEL values in FORTRAN
|
#2 |
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. |
|
January 19, 2007, 08:56 |
Re: Calling CEL values in FORTRAN
|
#3 |
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 |
|
January 19, 2007, 10:38 |
Re: Calling CEL values in FORTRAN
|
#4 |
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. |
|
|
|
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 |