CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

User fortran routines, DEBUG AND OUTPUT

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2007, 02:34
Default User fortran routines, DEBUG AND OUTPUT
  #1
Bloshchitsyn Vladimir
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....
  Reply With Quote

Old   October 25, 2007, 02:50
Default Re: User fortran routines, DEBUG AND OUTPUT
  #2
CFDworker
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.
  Reply With Quote

Old   October 25, 2007, 02:55
Default Re: User fortran routines, DEBUG AND OUTPUT
  #3
Bloshchitsyn Vladimir
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!
  Reply With Quote

Old   October 25, 2007, 08:13
Default Re: User fortran routines, DEBUG AND OUTPUT
  #4
Bloshchitsyn Vladimir
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... )?
  Reply With Quote

Old   October 25, 2007, 09:55
Default Re: User fortran routines, DEBUG AND OUTPUT
  #5
CFDworker
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
  Reply With Quote

Old   October 29, 2007, 02:31
Default Re: User fortran routines, DEBUG AND OUTPUT
  #6
Bloshchitsyn Vladimir
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... ) ?

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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