VSP Script

802 views
Skip to first unread message

kreynolds

unread,
Feb 10, 2012, 6:49:05 PM2/10/12
to OpenVSP
Is it possible to access/change geometry parameters through the script
window in VSP? Are any examples available? Thanks.

K

Rob McDonald

unread,
Feb 12, 2012, 12:28:42 AM2/12/12
to ope...@googlegroups.com
Kevin,

I don't think we have any scripting examples, but it should be
possible to do what you want.

Just click 'Script' and then 'Script Window...'. Once the small
script window opens below the main window, click 'Record' and then
play around.

As you change variables or manipulate the model, the corresponding
script command will be written to the screen. You can save and
playback a script as you want.

Scripts can be saved as a plain text file -- and they can be played
back from the command prompt. While it is generally easiest to
parse/modify the *.vsp file directly, some users have found scripting
to be a good way to automate design studies.

Some features (structures modeling I believe) are not supported by the
scripting support. Trying what you want to do with the 'record'
button on is the best way to check what is supported.

Rob

kreynolds

unread,
Feb 13, 2012, 5:38:11 PM2/13/12
to OpenVSP
Rob,

Thanks for the response.

To clarify, Is there away to a manipulate the geometry through either
the command prompt or terminal. The option of script recording and
playback seems not to be very useful for communicating with a command
prompt for design optimization in batch mode, which is what I am
ultimately after. Also, is it possible to export geometry formats
directly from the command prompt or terminal?

Kevin

Rob McDonald

unread,
Feb 13, 2012, 10:54:13 PM2/13/12
to ope...@googlegroups.com
Ok, a rather different question.

Yes, you can run VSP in batch mode from the command prompt.

vsp -help

Will print out some documentation describing the various options for
processing a *.vsp file from the command prompt. Depending on what
you're trying to do, there are many ways to go. Please try it out and
if you can't figure out what you want to do, ask a specific question.

For example...

vsp -batch airplane.vsp -cfdmesh 1.0 -tri

For design studies, you will generally need to parse/modify the *.vsp
file yourself - and then run vsp from the command prompt to generate
the file you want. We don't provide any means to modify the geometry
from the prompt.

Scripting can be useful for automating design studies. Some people
find it easier to parse/modify a plain text script than the *.vsp
file. You can also run a script from the command prompt

vsp -script script.scr

Finally, if you are a ModelCenter user, there is a plugin to use VSP
in ModelCenter directly. Phoenix Integration is in the process of
updating the plugin to OpenVSP 2.0, but I expect them to make a
general release very soon.

Hope this helps,

Rob

Reply all
Reply to author
Forward
0 new messages