CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] command line parameters:paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2015, 13:41
Default command line parameters:paraview
  #1
New Member
 
Ian Fraser
Join Date: Jan 2015
Posts: 2
Rep Power: 0
iafxl is on a distinguished road
I am devesetsloping a GUI in Visual Basic to input values to a friends CFD program. His programs process the data from my GUI and produces sets of
Mesh equation which he has been manually importing to Paraview with great results. I would like to automate this last step.
I am able to successfully import one of the two sets as a data file from the DOS command line, but I do not see any way to import the second set except manually from within Paraview.
I am working with windows 7 and use a batch file to accomplish the task.
While I know that I have NOT written any environmental path equations, for the moment, I have all of the necessary files in the paraview 3.12.0/bin directory.
The Dos .bat files looks like this:

cd C:\program files (x86)\paraview 3.12.0\bin
paraview.exe --data="C:\A\Post\SHPout..vtk"

This effectively starts paraview and loads the one set of the desired files.
Any attempt on my part to add the second set of datafiles to the command line meets with failure due to my ignorance of command line options.
The second set of files that I would like to import are:
"C:\A\Post\FEMout..stl"

I am new to Paraview, but I am not the one who will be analysing the data.
I did try to import the 2 sets of files and set some of the pipeline parameters using a macro [quite successfully] from inside paraview;and I also saved the Macro as a .py script file. Unfortunately, I do not YET know how to program or use the python scripting code... I am willing to learn, if that is the only way to accomplish the results.

The question is: How can I get both sets of files (which will consist of sets of 10 to 60 or more files each) into Paraview from the command line?
thank you
Iafxl
iafxl is offline   Reply With Quote

Old   January 24, 2015, 09:57
Default py script from command line
  #2
New Member
 
Ian Fraser
Join Date: Jan 2015
Posts: 2
Rep Power: 0
iafxl is on a distinguished road
I created a .py script from within Paraview to load 2 sets of multiple files and set up some initial conditions. and stored this file the Windows 7 directory where the paraview bin files exist.
When I invoke paraview from the DOS window from the bin directory with the following:
Paraview.exe --script="start2.py" [the name of the script file], paraview loads but gives me this error message:
QFSFileEngine:pen: No file name specified
Error opening ""
What am I doing wrong... the file is right there in the calling directory and the script file appears to be correct.
Any help would be most appreciated
iafxl is offline   Reply With Quote

Reply

Tags
command line parameters


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



All times are GMT -4. The time now is 11:43.