|
[Sponsors] |
February 24, 2007, 09:57 |
PARAVIEW from C code: system(...)
|
#1 |
Guest
Posts: n/a
|
Hello, I need to tell my code written in C that I want to view the grid I compute by launching Paraview from within the code by using the comman "system(...)".
The question is: What script do I need to use when I call paraview and want it to open directly in the file of interest (analogoue to what "paraFoam" does when I type paraFoam <input> <output>)? ex. system("paraview ...???...") so that paraview opens and directly open the file I want to look at I hope the question is clear since I realize it seems quite tricky for my english! Thank you simone marras |
|
February 26, 2007, 08:57 |
re: PARAVIEW from C code: system(...)
|
#2 |
Guest
Posts: n/a
|
Just type paraview --help to see the available options. I guess that you can do what you want by simply using
paraview --data=<your_data_file> cheers Renato. |
|
February 26, 2007, 09:36 |
re: PARAVIEW from C code: system(...)
|
#3 |
Guest
Posts: n/a
|
Hello Renato, thank you for the hint. I actually type paraview --data (in my case file99.vtk for ex), or also paraview --help but in both cases it just opens paraview without opening any file or any help options in the terminal.
I use the X11 to open it on the Mac osX Thanks a lot simone |
|
February 26, 2007, 11:44 |
re: PARAVIEW from C code: system(...)
|
#4 |
Guest
Posts: n/a
|
>> I use the X11 to open it on the Mac osX
It's not the best way for using PV if you've been using it remotely... anyway, have you tried to write the full path of your data file with the --data option? Without the full path PV will try to look for the data file within the PV root directory (I guess). Regards Renato. ps.: I tried here in a Windows machine and the --data option worked perfectly. |
|
February 26, 2007, 12:00 |
re: PARAVIEW from C code: system(...)
|
#5 |
Guest
Posts: n/a
|
Hello Renato, this is what I actually put in X11:
> paraview /MYPATH/file.vtk or even > paraview --/MYPATH/file.vtk but it still oopens PV without opening the file.vtk Anyway, maybe it's because of my installation on my machine or it might be a Mac characteristc when running PV. Thanks anyway. I let u know if I solve it in any other way Regards, Simone |
|
February 26, 2007, 12:48 |
re: PARAVIEW from C code: system(...)
|
#6 |
Guest
Posts: n/a
|
try it:
paraview --data=/MYPATH/file.vtk |
|
February 26, 2007, 13:30 |
re: PARAVIEW from C code: system(...)
|
#7 |
Guest
Posts: n/a
|
Negative also this one. Im beginning to think it depends on the installation and architecture since you can get it to work on windows.
Thank you very much for trying to help; are you italian for any chance? Best regards, simone |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Equivalent C++ code for applied filters in Paraview | Sandbad | ParaView | 0 | January 12, 2018 21:14 |
[General] Post-Process StarCCM+ in ParaView | bias | ParaView | 0 | December 15, 2017 05:38 |
The FOAM Documentation Project - SHUT-DOWN | holger_marschall | OpenFOAM | 242 | March 7, 2013 13:30 |
code for solving block tridiagonal system | cfd | Main CFD Forum | 22 | December 24, 2010 18:15 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |