CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Pointwise & Gridgen (https://www.cfd-online.com/Forums/pointwise/)
-   -   automate Pointwise (https://www.cfd-online.com/Forums/pointwise/138036-automate-pointwise.html)

v_herw June 27, 2014 04:07

automate Pointwise
 
Hi All,

is it possible to automate the execution of some Pointwise scripts? Did anyone did that before and has some advice for me? :o

i am thinking of a batch file to execute a whole list of scripts (i am creating boundary layers for a lot of different airfoil "sections" consisting of 2 different airfoils)

the scripts are working well, therefore there shouldn't be any default message due to the execution process.

Thanks a lot. :)

Vanessa

jchawner June 29, 2014 18:20

Hi Vanessa:

You should be able to write a "master" script in your favorite scripting language (sh, Perl, Tcl, Python) that runs Pointwise with each of your scripts. You'd do stuff like

pointwise -b script1.glf
pointwise -b script2.glf
pointwise -b script3.glf

etc.

(The -b means run in batch. You'll need to make sure your script output goes to unique files.)

Hope this helps.

v_herw August 15, 2014 06:31

long time ago :eek:

i just tried to make up a batch file with executing my scripts but it won't work and i always get a fatal error:

batch file:

Code:

"C:\Program Files (x86)\Pointwise\PointwiseV17.1R4\win64\bin\Pointwise.exe" -b PW_1_ALL_2D_Mesh.glf
( if i only type in pointwise -b script.glf nothing is happening )

Code:

Fatal:  Usage:
Pointwise.exe
        ?-usage?
        ?-version?
        ?-language spec?
        ?-tbbinit num?
        ?-dirmode current | saved?
        ?startup_script | file?


Do I have to add something in the command line?

Thanks a lot

dgarlisch August 18, 2014 10:53

Vanessa,

The -b option only works on non-windows machines.

For windows, you can launch the script directly in the Pointwise Tcl shell.

tclsh.exe is located in the same ...\bin folder as Pointwise.exe.

To make using tclsh.exe easier you can:
  • Add the PW bin folder to the PATH env variable.
  • Create a tclsh.bat file in your runtime folder that runs the desired exe*.

To run the script:
c:> tclsh script.glf
I hope this helps.




* The bat file should contain something like:
Code:

@ECHO OFF

c:\path\to\your\pw\install\bin\tclsh %*



All times are GMT -4. The time now is 22:10.