|
[Sponsors] |
February 13, 2006, 12:33 |
User defined subroutine in Ground
|
#1 |
Guest
Posts: n/a
|
I need to introduce a subroutine in Ground which I would like to call in different groups of ground. Is it possible. If so, the way please.... Sanjay
|
|
February 16, 2006, 04:35 |
Re: User defined subroutine in Ground
|
#2 |
Guest
Posts: n/a
|
Yes you certainly can, write the subroutine at the end of ground.for after the
24 CONTINUE END Then issue calls to the subroutine in ground.for where required. You can use an argument lists or existing common blocks or make your own common blocks to pass data into the subroutine. Its just standard fortran. You then use bldear.bat to compile and link a new executable. Of course you will need a compilable version of PHOENICS, but I guess that is an obvious thing to say. What I usually do is copy the bldear.bat file to the working directory and run it from there, but of course you don't have to. If your PHOENICS is set up properly then bldear.bat will be on your path and you can just invoke it from your working directory So summary : 1/ copy ground.for from \phoenics\d_earth\d_windf to your working directory and edit 2/ bldear.bat lives in \phoenics\d_utils\d_windf, copy this to your working directory and run, or just invoke it from your working directory. 3/ Obviously it is not a good idea to hack the original ground.for in \phoenics\d_earth\d_windf You will find information on ground coding in POLIS, under the encyclopedia entry GROUND amonst other places. Also the PHOENICS journal is full of papers with Q1 and edited ground.for files listed. |
|
February 23, 2006, 07:40 |
Re: User defined subroutine in Ground
|
#3 |
Guest
Posts: n/a
|
Thanks Mike! It worked.
Sanjay |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
User defined bc | anja | OpenFOAM Running, Solving & CFD | 20 | June 6, 2008 13:12 |
User-Defined Fan | Socrate | FLUENT | 0 | March 28, 2007 11:25 |
User Defined GUI | Frederik | FLUENT | 0 | June 23, 2006 17:12 |
How to use user defined Subroutine | Ning Yang | FLUENT | 6 | November 14, 2000 07:32 |
User Defined Subroutine | Denpong Soodphakdee | FLUENT | 0 | April 13, 2000 04:53 |