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

How to learn to use subroutine?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2003, 08:50
Default How to learn to use subroutine?
  #1
Miko
Guest
 
Posts: n/a
Hi, All! I am a beginner og CFX. Now I need to use subroutine to meet my need, but I don't know how to use subroutine. Is someone kind enough to tell me how to begin to learn to use it?
  Reply With Quote

Old   May 15, 2003, 15:45
Default Re: How to learn to use subroutine?
  #2
Robin
Guest
 
Posts: n/a
Are you sure you need subroutines? What are you trying to do?

Robin
  Reply With Quote

Old   May 15, 2003, 21:41
Default Re: How to learn to use subroutine?
  #3
Miko
Guest
 
Posts: n/a
Oh, yes! I do need it, for I will add magnetic force as body force to reslove my problem. By the way, I also want to know how to change the properties of the flow. Thank you! Miko
  Reply With Quote

Old   May 16, 2003, 04:46
Default Re: How to learn to use subroutine?
  #4
matej
Guest
 
Posts: n/a
Miko,

First you have to reveal what version of CFX you are using. If it is CFX 4, you will need them, If it is CFX5, you can add a source to any equation (if it is not reading data from file or if it is not a function of any gradient from calculation) without the subroutine.

to give you some hint, for the properties ... in CFX 4, if you look at the end of documentation, you will have the set of commands into *.fc file. It's very usefull reference and you will find there all commands you need to change VISCOSITY ....DENSITY .... whatever you need. In CFX5 you can either modify the material or the mass and heat trasfer properties in the panels in build when you set the physics, or you can do it by editing the *.def file.

Matej
  Reply With Quote

Old   May 16, 2003, 05:10
Default Re: How to learn to use subroutine?
  #5
Holidays
Guest
 
Posts: n/a
Additionally I have seen some MHD work done by CFX Germany in CFX-5 already, so you might benefit from their experience. Speak to your CFX provider or look on the community site for some info as part of the work might already be available.
  Reply With Quote

Old   May 18, 2003, 09:11
Default Re: How to learn to use subroutine?
  #6
Miko
Guest
 
Posts: n/a
Thank you, matej! I really appreciate your help!
  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran Subroutine Error sergiorbrett CFX 12 September 3, 2012 08:40
Errorin subroutine appeared when applying cavitation model pitisrisuk CFX 1 July 2, 2012 04:36
Effect of temp variables in subroutine CF Main CFD Forum 2 April 20, 2008 11:13
User Subroutine Garryx Siemens 1 June 25, 2005 01:13
FIDAP subroutine: USRBDY Shuwen Tzeng FLUENT 0 September 3, 2004 04:40


All times are GMT -4. The time now is 04:46.