CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   default servers in paraview (http://www.cfd-online.com/Forums/openfoam/100079-default-servers-paraview.html)

Titus April 19, 2012 13:40

default servers in paraview
 
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)

wyldckat April 19, 2012 17:07

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

Titus April 20, 2012 11:36

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

lovecraft22 April 20, 2012 13:30

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.

Titus April 21, 2012 04:09

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

wyldckat April 21, 2012 08:42

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.

Titus April 21, 2012 13:07

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.

lovecraft22 April 21, 2012 13:24

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.

wyldckat April 21, 2012 13:40

Hi Titus,
Quote:

Originally Posted by Titus (Post 356050)
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

Titus April 21, 2012 15:23

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.

wyldckat April 21, 2012 17:29

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

Titus April 21, 2012 17:59

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

wyldckat April 21, 2012 18:18

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

Titus April 22, 2012 15:12

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 April 25, 2012 04:55

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...)

wyldckat April 25, 2012 06:03

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


All times are GMT -4. The time now is 23:17.