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

[OpenFOAM] connection to external server

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2010, 11:09
Default connection to external server
  #1
Member
 
Sandeep
Join Date: Jul 2010
Posts: 48
Rep Power: 15
gandesk is on a distinguished road
Hello all,

I run my simulation using openfoam at a supercomputer server. Now that I want to connect to that server through my paraview installed on my pc. Is that possible to do with the file>connect option in paraview?? If I can do that, I would be able to save lot of time...

Please help me how to connect to that remote server??
gandesk is offline   Reply With Quote

Old   January 11, 2011, 10:28
Default
  #2
New Member
 
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 16
s_braendli is on a distinguished road
I followed the instructions given here:

http://ait.web.psi.ch/services/visua...ver_howto.html

On the server-side I only used step 3. On my desktop-computer I just started ParaFOAM and added the server as described. Unfortunately I was only able to display VTK-files, not the whole OpenFOAM-case, as I usually do with PF. I would be happy for any hint about this.

best regards
Silvan
s_braendli is offline   Reply With Quote

Old   January 12, 2011, 22:04
Default not working
  #3
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Hi
I did that, then the server says:
Listen on port: 11111
but when I try to connect trough the client, that's not working and I recieve this error:
p, li { white-space: pre-wrap; } Warning: In /home/kitware/ParaView-3-8/ParaView-3.8.1/src/Servers/Common/vtkProcessModuleConnectionManager.cxx, line 292
vtkProcessModuleConnectionManager (0x8d3bff8): Connect failed. Retrying for 1.79072 more seconds
what do you think that is for? what should I do? Is that because of firewall settings or something else?
__________________
SAHM
sahm is offline   Reply With Quote

Old   January 13, 2011, 18:18
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@sahm: when you are trying to connect to a computer inside another network, you better use ssh tunneling. For example, run something like this:
Code:
ssh my_user_name@target_host -L 11150:the_name_or_IP_of_host_where_pvserver_is:11111 -g -C
This will open a tunnel between your machine and the pvserver machine, while passing through the target_host where you use ssh to connect to.
Then open ParaView locally to target the "address: port" "localhost:11150". And voilį, you have a ssh tunnel through firewalls, as long as the firewalls allow ssh tunneling, which they usually do. This is how sometimes people can connect to the world wide web at work, on a restricted internet access network.

@Silvan: while inside your remote case folder, run either one of these commands:
Code:
touch case.foam
paraFoam -touch
The result of the first one will only open with ParaView 3.8.0 or above; the result of the second one will only work if the PV3FoamReader plugin that comes with OpenFOAM is properly compiled for the ParaView build being used.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 14, 2011, 05:25
Default
  #5
New Member
 
Silvan Brändli
Join Date: Aug 2009
Posts: 27
Rep Power: 16
s_braendli is on a distinguished road
Nice, I didn't know I had to open the case.foam with PF. No it works fine.

Thanks a lot
Silvan
s_braendli is offline   Reply With Quote

Old   January 14, 2011, 10:58
Unhappy Confused?
  #6
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
ssh my_user_name@target_host -L 11150:the_name_or_IP_of_host_where_pvserver_is:11111 -g -C

Excuse me, I don't understand which one is target_host? is that the client or the server,
and should I enter this command inside paraview, where I'm defining the server address ( like in those links) or in the linux terminal? ( don't know much about linux)
Sorry but I need more like step by step one.
what is 11150? is that connection port on pvserver or my computer.
Imagine I`m working on Computer1.google.com
and my pvserver is located on Server.yahoo.com ( don't try at home ), which I can get connected to using ssh and run in terminal : pvserver. and my user name is same for both.
can you tell me the command above using these two names?
__________________
SAHM
sahm is offline   Reply With Quote

Old   January 14, 2011, 16:15
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sahm,

OK then, let me try to explain it this way:
  1. In a Linux terminal/console on your local machine "Computer1.google.com", run:
    Code:
    ssh sahm@Server.yahoo.com -L 11150:localhost:11111 -g -C
    I assumed your user name was "sahm". The "-g" activates some sort of reflection of ports and "-C" activates compression for the connection. Run "man ssh" to learn more.
  2. Launch pvserver at "Server.yahoo.com" (your connected to it from the previous command), as explained on this section: Setting up a ParaView Server#Running the Server
    If you just want to test how it works, simply run:
    Code:
    pvserver
  3. Now, launch ParaView in your machine "Computer1.google.com" (on another terminal/console window):
    Code:
    paraview
  4. Now, in the ParaView menu, choose "File->Connect".
  5. A dialog pops up. Click on "Add server".
  6. Fill in the boxes:
    • Give it a name, e.g. "remote machine";
    • Choose "Server Type" as "Client / Server";
    • Host: localhost
    • Port: 11150
  7. Press "Configure".
  8. Another dialog Pops up. Set in "Startup Type" to "Manual".
  9. Press "Save".
  10. You now go back automatically to the dialog from point 5. Select the added server and press "Connect".
  11. And voilą, you're connected to your remote server!
If this still doesn't work, read this very complete section of the first link and also browse through the links it has: Connecting Through a Firewall
This can also be good to know: Starting the server


By the way, what I wrote in my previous post was a more generic tunneling, where for example, you could only connect to "Server.yahoo.com" through "Frontgate.yahoo.com". In this case, you would run like this:
Code:
ssh sahm@Frontgate.yahoo.com -L 11150:Server.yahoo.com:11111 -g -C
Best regards and good luck!
Bruno
__________________

Last edited by wyldckat; January 15, 2011 at 07:51. Reason: fixed some typos...
wyldckat is offline   Reply With Quote

Old   January 14, 2011, 21:19
Default
  #8
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Thanks for reply, I`ll try that. one more question, what is voilį?
__________________
SAHM
sahm is offline   Reply With Quote

Old   January 15, 2011, 07:49
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Sahm,

Quote:
Originally Posted by sahm View Post
one more question, what is voilį?
Actually, I wrote it wrong, it's "voilą" I gotta remember the accent properly, if I'm to continue using this expression

I'll quote it's meaning from another site:
Quote:
Originally Posted by http://wiki.answers.com/Q/What_does_voila_mean
It's a French word that translates to "here" in English. It's usually used as a slang term to say "ta da" sort of expression if you know what I mean by that. Also usually pronounced wrong by Americans for some reason, they like to say it like "wala."

"Voila" is used to call attention to or express satisfaction over something. EX: "Then you add onions and tomatoes to it, voila!, you have a delicious pizza."
And quoting from an online dictionary:
Quote:
Originally Posted by http://www.thefreedictionary.com/voila
Used to call attention to or express satisfaction with a thing shown or accomplished: Mix the ingredients, chill, andvoilą!a light, tasty dessert.


Best regards,
Bruno
__________________

Last edited by wyldckat; January 15, 2011 at 07:50. Reason: typo...
wyldckat is offline   Reply With Quote

Old   January 19, 2011, 10:55
Default
  #10
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
voilą ;-)
Just to make it 10 Charracters.
__________________
SAHM
sahm is offline   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
Connection to server ccordeiro STAR-CCM+ 2 April 7, 2018 10:52
Server connection problems: "Connection reset by peer: socket write error" sarahtuvia STAR-CCM+ 1 April 24, 2016 19:09
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 01:40
The fluent stopped and errors with "Warning: License server connection lost.poll: pro yuyuxuan FLUENT 4 January 9, 2014 05:20
"License server connection lost" error curious_ssl FLUENT 0 February 10, 2010 06:27


All times are GMT -4. The time now is 21:33.