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

[General] PARAVIEW from C code: system(...)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2007, 09:57
Default PARAVIEW from C code: system(...)
  #1
simone Marras
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
  Reply With Quote

Old   February 26, 2007, 08:57
Default re: PARAVIEW from C code: system(...)
  #2
Renato.
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.

  Reply With Quote

Old   February 26, 2007, 09:36
Default re: PARAVIEW from C code: system(...)
  #3
simone Marras
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
  Reply With Quote

Old   February 26, 2007, 11:44
Default re: PARAVIEW from C code: system(...)
  #4
Renato.
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.
  Reply With Quote

Old   February 26, 2007, 12:00
Default re: PARAVIEW from C code: system(...)
  #5
simone Marras
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
  Reply With Quote

Old   February 26, 2007, 12:48
Default re: PARAVIEW from C code: system(...)
  #6
Renato.
Guest
 
Posts: n/a
try it:

paraview --data=/MYPATH/file.vtk
  Reply With Quote

Old   February 26, 2007, 13:30
Default re: PARAVIEW from C code: system(...)
  #7
simone Marras
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
  Reply With Quote

Reply


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
[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


All times are GMT -4. The time now is 00:30.