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

=== Using multiple POSDAT.F - simple trick ===

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2005, 06:09
Default === Using multiple POSDAT.F - simple trick ===
  #1
Murali
Guest
 
Posts: n/a
There may be instances when the simulation may require multiple versions of POSDAT.F to be used. For example, one POSDAT.F may be used to calcualte and another used to print. Everytime copy pasting the code or renaming the files as POSDAT.F may be a little boring / inefficient. In stead the following procedure can be adopted:

Suppose you have posdat1.f and posdat2.f for 2 different purposes. Rename them as POSDAT1.TXT and POSDAT2.TXT and keep them in the ufile folder. In the original 'empty' POSDAT.F generated by STAR, use the follwoing line:

INCLUDE 'POSDAT1.TXT'

if you need to run the first job. this command automatically transfers the control to the POSDAT1.TXT. Mind that though they are named .txt they still need to be in proper fortran format. else, this will result in compilation error. Also they cannot have the extension '.f' because star tries to compile them as separate files and ends up giving an error.

  Reply With Quote

Old   November 29, 2005, 08:15
Default Re: === Using multiple POSDAT.F - simple trick ===
  #2
Mahesh Masurkar
Guest
 
Posts: n/a
Hi murali, this is good. Add this in wiki.
  Reply With Quote

Old   November 29, 2005, 12:33
Default Re: === Using multiple POSDAT.F - simple trick ===
  #3
Ben
Guest
 
Posts: n/a
I may be wrong but I am fairly certain that using include files is a fair bit slower than directly compiled objects
  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
CFL in posdat hamodi Siemens 2 August 6, 2007 03:27
=== Using multiple POSDAT.F - simple trick === Tommy Siemens 2 July 2, 2007 10:46
POSDAT Sheila Siemens 2 February 8, 2006 12:08
Mind Reader-What's the trick? Selina Tracy Main CFD Forum 5 April 24, 2003 13:18
posdat in HPC Won-Geun Lee Siemens 0 May 23, 2001 21:03


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