Cfx  matlab
Dear members
Is possible use MATLAB together with ANSYSCFX? More specifically, is possible create a user routine ou user function in MATLAB and read this routine or function in ANSYSCFX? I canīt believe that the only way to insert a aditional function in CFX is through FORTRAN! Thx for all!! 
short answer NO you cant
this is because 1 the solver is written in FORTRAN 2 you need the FORTRAN compiler to write your script and create the program in the low level programing language( i think its assembly but might be wrong) 
Thx!! for your objective reply!
I will try to create a user function by FORTRAN. But I am new in this program language. Can you or someone help me to find many examples for study how to implement a new user routine by FORTRAN in CFX. Is very dificult to understood the explanation about user FORTRAN in CFX help. THX!! 
why would you want to create a user function in fortran? what you want to archive :confused:

I study heat exchangers with the towphase flow thermosiphons tecnology!
The heat transfer between evaporator and condenser is modelate by a analitical equation (in MATLAB) that nowadays I change the values manualy every 200 steps. I want to automate through a user routine!! thx!! 
Hi,
CFX has the expression language CEL so most of the time fortran is not required to do functions. Glenn Horrocks 
Thx! but CEL is not sufficient for me!! the work fluid that contais inside of the tubes (heat pipes) have physical characteristics that change whit temperature and pressure that are modelate by a analyticall expression.
Why is so difficult to have access the one book our pdf that explain step by step how to implement a user function in CFX? Thx!! 
:rolleyes: It always amazes me how many times people start a task the difficult way. I'm pretty confident you can model the HE without even touching fortran
you can easily model real fluids in cfx, you just need to setup the appropriate materials. 
I think itīs possible, you can use FORTRAN, C or MATLAB.

Quote:

Quote:

Quote:
will keep that in mind :cool: 
Hi,
Just repeating chleanth's comment  most functions like this can be done using CEL with no need for fortran. Can you explain what in your function cannot be done in CEL? How to implement fortran in CFX is described in the documentation. For simple stuff like just returning a CEL variable it is not too bad (I think you use a junction box for that. But I have never had to use fortran in CFX since I was using CFX4 in 1999. Ever since CFX5 was developed I have managed to do everything in CEL. Glenn Horrocks 
Hi,
I got the same problem. for example. i have to measure velocity in pipe. it is transient simulation, and at different timestep i got different velocity values at the output and i can see that value in CFX post. if i want to integrate that value from 0 to T. do i have to write the function of CEL at the CFXPre or CFX Post?. how to access with different timestep? because as same as camilo_costa i might have to export 200 steps to data matrix end then do all the calculation in Matlab. thanks, hung 
how to couple
hello friends
i am going to optimize rotor 37,for that is there any coupling tools are available I have a MATLAB optimization code and the objective function will require results from ANSYS CFX. The Setup is like this: Ansys Turbogrid  CFX Pre  Solver  Post  Result to MATLAB  MATLAB create new geometry  Start new cycle again starting with turbogrid. The ANSYS Programme will be in Ansys workbench. I dont know how to link it with MATLAB and vice versa thanks in advance 
The look you describe sounds simple to implement as a batch (windows) or shell ([L]unix) script.

All times are GMT 4. The time now is 17:02. 