[Paraview] Connect to Catalyst live feed
Hong Yi
hongyi at renci.org
Tue Apr 9 12:03:28 EDT 2013
Hi Andy,
Many thanks for your very helpful responses. Now I think I have a good understanding on the ParaView in-situ viz process. I have also cleared up the email thread history a bit and changed the subject to reflect my new question below.
I have got an in-situ example running without live feed which is linked to Paraview CoProcessing library. Now I am trying to get the live feed with this in-situ viz example working. I think I am very close now, but got stuck on getting ParaView client connect successfully to the in-situ simulation run. Specifically, from Tools->Connect to Catalyst dialog, I am only allowed to enter the port number to accept connections from Catalyst. Since I am running the in-situ viz on a remote server which I ssh to via ssh port forwarding/tunneling, I thought it would work to connect to this specified port (22222) with localhost as set up in the python pipeline for the in-situ viz. However, on the Paraview client, I see the message "Accepting connection(s): myLocalMachineHostName:22222" rather than "Accepting connection(s): localhost:22222." and no connection is being made from the coprocessing code running on the server to the local Paraview client. If I run pvserver on the same remote server, and then have Paraview client connect to localhost on the port 11111 which is used for ssh tunneling for the remote server, the connection can be established successfully. Could you give me some suggestion/advice on what I did wrong for connecting to Catalyst? Also, I am thinking there should be a way to allow me to specify host name when connecting to Catalyst, but I cannot find it - it currently only allows me to specify a port number from the Connect to Catalyst GUI. Any information and suggestions regarding this is very much appreciated!
Thanks again,
Hong
From: Andy Bauer [mailto:andy.bauer at kitware.com]
Sent: Saturday, April 06, 2013 12:15 PM
To: Hong Yi
Cc: paraview at paraview.org
Subject: Re: [Paraview] Live data source for co-processing in Paraview version 3.14.1
Hi,
I inlined the responses.
Andy
On Fri, Apr 5, 2013 at 3:48 PM, Hong Yi <hongyi at renci.org<mailto:hongyi at renci.org>> wrote:
Hi Andy,
Many thanks for all the information that certainly clears up my confusion although I have a follow-up question to confirm with you on the last part regarding live feed. Let me split the question up into the following two scenarios:
(1) No live feed, but only in-situ viz to write data and rendered image for each time step from the simulation code. In this scenario, I only need to set up the pipeline, add adaptor calls in the simulation code to do co-processing for each time step and output data for desired time steps, and build and run the simulation code that are linked with Paraview coprocessing or Catalyst. In this case, there is no need to run pvserver and paraview client, everything related to in-situ/coprocessing viz is integrated into the simulation code, is it right?
Exactly correct. At this point Catalyst just acts like any other library linked in to your simulation code.
(2) Need live feed and live viz while doing in-situ viz to monitor simulation in progress and possibly can influence simulation by changing some parameters through paraview client. In this case, I need to run paraview client and connect to the live visualization through Tools->Connect to Catalyst GUI menu, where I need to input a port number to connect to the Catalyst. I am not clear on this part. Do I need to run the simulation code linked with Paraview coprocessing/Catalyst, then run pvserver on some port somehow linked to the simulation code, which in turns can be connected back to the client? I cannot find any specific information on the process of doing live feed in an in-situ live viz scenario, so it'd be great help if you can point me to some resources or just briefly provide high-level info on how this works.
You are correct on the client for connecting to the simulation run. You don't need to run pvserver for this. If when exporting the script you specify that you want to connect live, it enables the simulation to connect directly to the ParaView client.
Looking forward to the Catalyst Users Guide coming out soon and thanks again for all the expert information!!!
Best regards,
Hong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130409/0af0860a/attachment.htm>
More information about the ParaView
mailing list