CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

automate Pointwise

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2014, 04:07
Post automate Pointwise
  #1
Member
 
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11
v_herw is on a distinguished road
Hi All,

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

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
v_herw is offline   Reply With Quote

Old   June 29, 2014, 18:20
Default
  #2
Senior Member
 
John Chawner
Join Date: Mar 2009
Location: Fort Worth, Texas, USA
Posts: 275
Rep Power: 18
jchawner is on a distinguished road
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.
__________________
John Chawner / jrc@pointwise.com / www.pointwise.com
Blog: http://blog.pointwise.com/
on Twitter: @jchawner
jchawner is offline   Reply With Quote

Old   August 15, 2014, 06:31
Post
  #3
Member
 
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11
v_herw is on a distinguished road
long time ago

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
v_herw is offline   Reply With Quote

Old   August 18, 2014, 10:53
Default
  #4
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
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 %*
dgarlisch is offline   Reply With Quote

Reply

Tags
automation, glyph2, scripting


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
generating OpenFOAM meshes with pointwise robo OpenFOAM Pre-Processing 1 April 29, 2014 13:47
CGNS problematic import in Pointwise S.Kontogiannis Pointwise & Gridgen 8 April 17, 2014 07:28
Pointwise 2D airfoil C-grid azmirul Pointwise & Gridgen 8 July 17, 2012 13:02
[Commercial meshers] Native OpenFOAM interface in Pointwise cnsidero OpenFOAM Meshing & Mesh Conversion 41 May 20, 2012 18:30
Native OpenFOAM interface in Pointwise Chris Sideroff Main CFD Forum 0 January 16, 2009 12:37


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