|
[Sponsors] |
May 15, 2003, 08:50 |
How to learn to use subroutine?
|
#1 |
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?
|
|
May 15, 2003, 15:45 |
Re: How to learn to use subroutine?
|
#2 |
Guest
Posts: n/a
|
Are you sure you need subroutines? What are you trying to do?
Robin |
|
May 15, 2003, 21:41 |
Re: How to learn to use subroutine?
|
#3 |
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
|
|
May 16, 2003, 04:46 |
Re: How to learn to use subroutine?
|
#4 |
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 |
|
May 16, 2003, 05:10 |
Re: How to learn to use subroutine?
|
#5 |
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.
|
|
May 18, 2003, 09:11 |
Re: How to learn to use subroutine?
|
#6 |
Guest
Posts: n/a
|
Thank you, matej! I really appreciate your help!
|
|
|
|
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 |