CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   User fortran routines, DEBUG AND OUTPUT (http://www.cfd-online.com/Forums/cfx/24722-user-fortran-routines-debug-output.html)

Bloshchitsyn Vladimir October 25, 2007 01:34

User fortran routines, DEBUG AND OUTPUT
 
Hello everybody!

I try learn User Fortran in CFX! First of all, I want learn CALL user routines and get ( read) output from user fortran subroutines...

1)How can I call fortran functions ( execpt in BC and Source terms...)? Can I call fortran function in CFX Expressions... Please, write expression syntax for call fortran function.

2) Can I read output of user routines... I try use MESAGE routine, but I have nothing in output file and solution monitor ( console )?

Thanks! 4Rever yours....

CFDworker October 25, 2007 01:50

Re: User fortran routines, DEBUG AND OUTPUT
 
Hello,

I would start by reading the documentation about user fortran in the CFX manual. It tells you which version of fortran to use, how to compile your code from the command line, and how to setup the call to your user fortran routines from within CFX-Pre.

Bloshchitsyn Vladimir October 25, 2007 01:55

Re: User fortran routines, DEBUG AND OUTPUT
 
I read it very intensive... But I not find answers, on my question... Can you tell me pages of manual, answering on my question?

Thanks a lot! I love CFX!

Bloshchitsyn Vladimir October 25, 2007 07:13

Re: User fortran routines, DEBUG AND OUTPUT
 
Question number 2) fixed... Now CFX print "Hello World!" to console very well...

Question #1 is stil actual... Can I call fortran user funcions in context of all programm ( no value for BC or source term... )?

CFDworker October 25, 2007 08:55

Re: User fortran routines, DEBUG AND OUTPUT
 
Could you be a little more specific? Do you mean how to make a source term active via User Fortran?

The way you implement your fortran routines into cfx is by first creating a user routine in CFX-pre that links to your .dll. From this user routine you make a user function that you can use in for instance the individual source components in a sub-domain. I think you can find some more details on that in the user fortran chapter of the ANSYS-CFX manual. I would try one of the examples there to get a feel how it works. That was the way I started to use it...

Good luck

Bloshchitsyn Vladimir October 29, 2007 02:31

Re: User fortran routines, DEBUG AND OUTPUT
 
Thanks for answer!

>Could you be a little more specific? Do you mean how to >make a source term active via User Fortran?

Yes, I want calculate specific source term ( complex term for modelling arc )... This term is function not one point, but function of a lot of point located in section of arc ( Current is given function in my task ) . I need integrating by arc sections...

But, my question, doesn't have direct link with my current task... I just want try and feel user fortran functions...

And main idea of question, can I use user fortran calling it from expression, for exmaple ( without UFR[User Fortran Routines] in BC or source term... ) ?



All times are GMT -4. The time now is 06:09.