|
[Sponsors] |
October 25, 2007, 01:34 |
User fortran routines, DEBUG AND OUTPUT
|
#1 |
Guest
Posts: n/a
|
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.... |
|
October 25, 2007, 01:50 |
Re: User fortran routines, DEBUG AND OUTPUT
|
#2 |
Guest
Posts: n/a
|
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. |
|
October 25, 2007, 01:55 |
Re: User fortran routines, DEBUG AND OUTPUT
|
#3 |
Guest
Posts: n/a
|
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! |
|
October 25, 2007, 07:13 |
Re: User fortran routines, DEBUG AND OUTPUT
|
#4 |
Guest
Posts: n/a
|
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... )? |
|
October 25, 2007, 08:55 |
Re: User fortran routines, DEBUG AND OUTPUT
|
#5 |
Guest
Posts: n/a
|
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 |
|
October 29, 2007, 01:31 |
Re: User fortran routines, DEBUG AND OUTPUT
|
#6 |
Guest
Posts: n/a
|
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... ) ? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|