CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Wiki > Siemens FAQ

Siemens FAQ

From CFD-Wiki

(Difference between revisions)
Jump to: navigation, search
(Question 1)
Line 3: Line 3:
== STAR-CD ==
== STAR-CD ==
-
=== Question 1 ===
+
=== Using multiple POSDAT.F - simple trick ===
-
Answer 1
+
Answer:
 +
 
 +
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 int he 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.
=== Question 2 ===
=== Question 2 ===

Revision as of 10:05, 29 November 2005

This section is empty. This is just a suggestion on how to structure it. Please feel free to add questions and answers here!

Contents

STAR-CD

Using multiple POSDAT.F - simple trick

Answer:

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 int he 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.

Question 2

Answer 2

STAR-CCM+

STAR-CAD Series

es-tools


My wiki