CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Pointwise & Gridgen (http://www.cfd-online.com/Forums/pointwise/)
-   -   Pointwise Glyph Commands - Exit? (http://www.cfd-online.com/Forums/pointwise/77530-pointwise-glyph-commands-exit.html)

john1223 June 25, 2010 16:47

Pointwise Glyph Commands - Exit?
 
Hi everyone, I'm new to this forum so I just wanted to say hi. I am running a glyph script through pointwise, and I was wondering if there is a journaling command which closes out the pointwise window? Thanks a lot, I really appreciate anyone's help.

jchawner June 26, 2010 16:42

Hi John.

Interesting Glyph scripting question. If you launch the script using the Execute Script command in Pointwise, terminating or exiting Pointwise itself will kill the Tcl event loop and bye-bye script.

On the other hand, I think if you initiate the script from a wish shell, you can start Pointwise, have it run a script, exit Pointwise, do other stuff, etc. HOWEVER, I have never done this myself. You could give it a shot and if you get stuck contact our Tech Support Team at support@pointwise.com.

Best Regards

Florin April 7, 2014 06:23

Hi everyone! I saw that one can use Glyph to create the grid for a given application; I have some experience in Python and Matlab codes, but I don't get this language easily.
Can someone explain what is the benefit of using scripts for creating the grids? Is it worth the time to learn this language?
Thanks a lot.

jchawner April 7, 2014 08:52

Hello Florin:

You can write a template for the type of grids you generate every day that would virtually automate the process.

If there is a sequence of commands you use repeatedly, you can write a macro and execute it with one button.

With scripting you can add functionality to the software by extending a command or customizing a command.

If you know how to program in Python or any other language learning Tcl is just a matter of syntax.

pdp.aero April 7, 2014 14:36

Quote:

Originally Posted by john1223 (Post 264575)
Hi everyone, I'm new to this forum so I just wanted to say hi. I am running a glyph script through pointwise, and I was wondering if there is a journaling command which closes out the pointwise window? Thanks a lot, I really appreciate anyone's help.

Typically, if you need to exit the program after your script is done you may use this command at the end of your script.

pw::Application exit

However, if you are looking for running your script in the background, my suggestion is execute your script in the terminal in linux OS with specific flag for running a program in background. Although, I didn't try this yet, I guess it will work properly. For example "&" runs program in background in the Ubuntu.

jchawner April 13, 2014 18:27

You can also do "pointwise -b scriptname.glf" and Pointwise will run the script in batch without executing the GUI. (I'm pretty certain that's the syntax - I'm going by memory.)


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