CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

default servers in paraview

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2012, 13:40
Angry default servers in paraview
  #1
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Every time I start Paraview from the terminal it tries to connect to servers that are non existent. This may take minutes! I tried to find the server.pvsc files that are described in the Paraview wiki but can't find them. Who tackled this problem and is willing to help? I use the compiled OpenFoam 1.7 version of the ETH Zurich (http://www.ifd.mavt.ethz.ch/educatio...foam/of-macosx)

Last edited by Titus; April 19, 2012 at 14:59.
Titus is offline   Reply With Quote

Old   April 19, 2012, 17:07
Default
  #2
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 Titus,

I don't have a Mac, but I think it's best that you remove the ParaView 3.8.1 provided at that page and replace it with either 3.12.0 or 3.14.0/1 from here: http://www.paraview.org/paraview/resources/software.php

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 20, 2012, 11:36
Default
  #3
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Thank you for the suggestion. I did but the first thing the 3.14.1 does is trying to connect non existent servers...

Best regards
Titus
Titus is offline   Reply With Quote

Old   April 20, 2012, 13:30
Default
  #4
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Move this file to the thrash then restart:
your_user/Library/Preferences/paraview.plist

If it doesn't work delete again the above mentioned file (which will have been re-created by now) and the following (using the Terminal):
your_user/.config/ParaView

This way you'll lose all of your preferences in Paraview but you'll probably solve your problem.
lovecraft22 is offline   Reply With Quote

Old   April 21, 2012, 04:09
Default
  #5
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Thank you, but no solution found yet.

I can not find titus/Library/Preferences/paraview.plist

I did find however a folder titus/Library/Preferences/Recent Servers. I decided to move this folder to the trash but without effect. Restarted the computer. No effect.

Than I removed titus/.config/ParaView. No effect. (In this folder I found ParaView3.14.1.ini (and two older ini's)and server.pvsc)

After restart of ParaView 3.14.1 there a new titus/.config/ParaView was created. In this folder now only ParaView3.14.1.ini is found. I can not open this file in terminal.

Best regards

Titus
Titus is offline   Reply With Quote

Old   April 21, 2012, 08:42
Default
  #6
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
That is really strange... OK, try running this command for starting ParaView:
Code:
paraview -dr
It should start ParaView without using any physical registry files, nor saving to them.
__________________
wyldckat is offline   Reply With Quote

Old   April 21, 2012, 13:07
Default
  #7
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Hello Bruno

I tried what you suggested:

titus-van-den-brinks-macbook-pro-42:RiesBouwman2 titus$ paraview -dr
-bash: paraview: command not found


I've reported my first steps in CFD on a human powered vehicle in this blog: http://openfoamforvelomobiling.blogspot.com/ I would be very happy with feedback of an experienced aerodynamisist.
Titus is offline   Reply With Quote

Old   April 21, 2012, 13:24
Default
  #8
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi, I had a look at your blog, hope you don't mind.
Seems like a nice job to me, even though it's hard to comment on it if one cannot see the whole domain, the boundary conditions or the mesh all over your domain.

Anyway, there's some stuff I'd probably look at:
1. forces: no point in getting numbers from a time step only. You should get an average value from many time steps (i.e 300);
2. what's the Cd?
3. How many iterations did you run? 506 may not be enough… I would suggest you to look at the residual. Plot them against the time step to see if they've reached a stable and close to zero level.
4. I would narrow down the scale of the pressure as from those pictures it's really hard to understand what's going on.

Hope this helps.
lovecraft22 is offline   Reply With Quote

Old   April 21, 2012, 13:40
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 Titus,
Quote:
Originally Posted by Titus View Post
I tried what you suggested:

titus-van-den-brinks-macbook-pro-42:RiesBouwman2 titus$ paraview -dr
-bash: paraview: command not found
Where do you have ParaView installed?

Have you seen this page: http://openfoamwiki.net/index.php/Ho...using_ParaView - namely the section "Installing and using ParaView"?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 21, 2012, 15:23
Default
  #10
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Hi Bruno,

Paraview is installed in my Applications folder:
/Applications/ParaView 3.14.1.app/

I took a look at the link you mention ("Installing and using ParaView"). I am a UNIX dummie (I use the compiled OF package for mac OS X of the ETH Zurich).

I can't find a ~/.alias file. I did find an aliases.sh and aliases.csh in the OpenFoam/etc folder. Do I have to add the alias for parafoam here or in my .profile file. Every time I start OpenFoam I run setup_foam.sh. This is a script people of the ETH Zurich provided. Maybe I can add the alias there.

I use the parafoam command on the terminal command line to start paraview.
Titus is offline   Reply With Quote

Old   April 21, 2012, 17:29
Default
  #11
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 Titus,

Mmm... OK, at the end of "setup_foam.sh" you'll find this:
Code:
if [ ! -d ~/OpenFOAM/$LOGNAME-$OFVERSION ]; then
  hdiutil attach -mountroot ~/OpenFOAM $OFUSERIMAGE
fi

source ~/OpenFOAM/OpenFOAM-$OFVERSION/etc/bashrc
}
Add the lines in bold:
Code:
if [ ! -d ~/OpenFOAM/$LOGNAME-$OFVERSION ]; then
  hdiutil attach -mountroot ~/OpenFOAM $OFUSERIMAGE
fi

source ~/OpenFOAM/OpenFOAM-$OFVERSION/etc/bashrc

alias paraview="/Applications/ParaView\ 3.14.1.app/Contents/MacOS/paraview"
alias parax="touch case.foam && paraview --data=case.foam &"
}
After you've run setup_foam.sh and setup_foam, you should then be able to use either paraview and parax as commands as well.

I'm going to go see if I can download and unpack the images on Linux, to verify if there is anything suspicious

edit: I ended up not seeing the images, because the code is browseable here: https://github.com/themiwi/OpenFOAM-1.7.x-OSX/

Best regards,
Bruno
__________________

Last edited by wyldckat; April 21, 2012 at 17:37. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   April 21, 2012, 17:59
Default
  #12
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Hi Bruno,

I can use the commands paraview and parax from the terminal command line now.

tried paraview -dr and parax-dr too.

paraview keeps connecting to non existent servers still...

this is the place where I got my OF 1.7
http://www.ifd.mavt.ethz.ch/educatio...foam/of-macosx
Titus is offline   Reply With Quote

Old   April 21, 2012, 18:18
Default
  #13
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
OK, start a new terminal and do not use "setup_foam". Then run:
Code:
/Applications/ParaView\ 3.14.1.app/Contents/MacOS/paraview
Or:
Code:
/Applications/ParaView\ 3.14.1.app/Contents/MacOS/paraview -dr
Another question: is your machine named "wtcoost"? If it is, then it might be an issue with the firewall? Or maybe if your machine is configured to not use IPv4...
__________________
wyldckat is offline   Reply With Quote

Old   April 22, 2012, 15:12
Default
  #14
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
Thank you Bruno !

I found a temporary solution: Instead of starting via paraFoam, I start paraView. When I use the recent file option ParaView does not try to connect to non existing servers. Now I only have to wait once for ParaView trying to connect to non existing servers (as long I do not want to open or save anything). It is not perfect but works ok for now. Hope an other Apple fan solves this issue eventually.
Titus is offline   Reply With Quote

Old   April 25, 2012, 04:55
Default
  #15
New Member
 
Titus van den Brink
Join Date: Apr 2009
Location: breda netherlands
Posts: 17
Rep Power: 16
Titus is on a distinguished road
I would like to add a server.pvsc file to the paraview directory. Does anyone now what this file should look like. (server declaration, port...)
Titus is offline   Reply With Quote

Old   April 25, 2012, 06:03
Default
  #16
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 Titus,

As for the location of the folder, you probably already know this, but it's described in full here: http://paraview.org/Wiki/ParaView:Se...efault_Servers

As for the default content, this is what I've got on Linux, in the file "servers.pvsc":
Code:
<Servers>
  <Server name="builtin" resource="builtin:">
    <ManualStartup/>
  </Server>
</Servers>
Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
connection, default server, mac os, paraview, server


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
[blockMesh] Default patches not appearing in paraview ozzythewise OpenFOAM Meshing & Mesh Conversion 9 September 22, 2017 09:51
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 00:52
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 02:32
Paraview not found fusij OpenFOAM Installation 2 January 1, 2011 20:44
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


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