how to call variables of CFX by FORTRAN
hello,everybody,i want to implant a transport equation to CFX, and i add a additional variable to CFX,and the source terms of the transport equation are related to variables of CFX,such as velocity,volume fraction,density.etc. so i write the sources by Fortran language,but i did not know how to calling the variables(such as velocity,volume fraction,density),anybody can give me some help? thanks a lot! I've been puzzled by this question for a long time. i sincerely hope you can give me some helps!
|
Have you done the user Fortran tutorial for sources?
Please search the ANSYS CFX documentation for USER_GETVAR utility, which give you access to variables using the same syntax as used in the expression language, i.e. CEL. For example, if you need velocity, you use something along CALL USER_GETVAR( 'Velocity', ...) |
than you for your reply
Quote:
CALL USER_GETVAR( 'water.Velocity', ...pVelo_water,..) ,in source term,when i want to use water.Velocity,i just need to use "Velo_water",is this right? do ILOC=1,NLOC source(ILOC)=2.0/3.0*Velo_water(ILOC) END do sorry ,the picture can not be inserted. |
All times are GMT -4. The time now is 22:36. |