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

User defined subroutine in Ground

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2006, 12:33
Default User defined subroutine in Ground
  #1
Sanjay
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
  Reply With Quote

Old   February 16, 2006, 04:35
Default Re: User defined subroutine in Ground
  #2
Mick
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.
  Reply With Quote

Old   February 23, 2006, 07:40
Default Re: User defined subroutine in Ground
  #3
K Sanjay
Guest
 
Posts: n/a
Thanks Mike! It worked.

Sanjay
  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
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


All times are GMT -4. The time now is 20:02.