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

OF 1.7.0 & paraView 3.8.1 (paraFoam)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2010, 08:25
Question OF 1.7.0 & paraView 3.8.1 (paraFoam)
  #1
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Dear Foamers,

i've downloaded paraView 3.8.1 from paraview.org
i have OF 1.7.0 and Ubuntu 10.10

What should i do to use paraFoam in terminal and using paraView software in OF cases?

Thanks in advance,
maysmech is offline   Reply With Quote

Old   October 31, 2010, 09:43
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Maysam,

Try following these instructions: Using the official pre-built ParaView 3.8.0 version with OpenFOAM...

It should work with 3.8.1 as well.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 31, 2010, 15:07
Default
  #3
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Thank you very much for your answer,

i didn't used source pack for OF installation. installation of OF has been done in terminal of Ubuntu 10.04

Now, i've upgraded to Ubuntu 10.10 and want to install ParaView 3.8.1

Your useful informations is not suitable for this situation i think because it tells:
mkdir: cannot create directory `/opt/paraviewopenfoam380': Permission denied

After typing:
mkdir -p $ParaView_DIR

Switching to root (#) also had no success.

What is your idea? Should i install OF from source pack from first?

Best regards,
Maysam
maysmech is offline   Reply With Quote

Old   October 31, 2010, 16:37
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Maysam,

Quote:
Originally Posted by maysmech View Post
Switching to root (#) also had no success.
But it can be successful! Do the following steps, before starting to follow the blog's instructions:
  1. Change to root:
    Code:
    su -
    I hope you've already set a password for the root user. If not, the password you type for your own user might not work. If it doesn't, run:
    Code:
    sudo passwd
    and set the root's password. The sudo command uses your password to unlock special access as superuser, but it doesn't change to root... unless of course, you run:
    Code:
    sudo su -
  2. Now, here is the key step - remember when you had to add a line to the end of "~/.bashrc"? That line must now be executed in root mode:
    Code:
    . /opt/openfoam171/etc/bashrc
  3. And now you can continue to follow my other instructions, while in root mode
Be warned: working in superuser/root mode can be dangerous! One or more wrong commands and you might remove stuff you didn't want to...

There is also another solution, that involves editing the file "OpenFOAM-1.7.1/etc/applications/paraview3/bashrc"... but I think the previous explanation is the quickest

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 1, 2010, 12:33
Default
  #5
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
I've done 1 but after typing ~/.bashrc this error is seen:

root@maysam-laptop:~# ~/.bashrc
-su: /root/.bashrc: Permission denied
maysmech is offline   Reply With Quote

Old   November 1, 2010, 13:02
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Maysam,

Quote:
Originally Posted by wyldckat View Post
2. (...) That line must now be executed in root mode:
Code:
. /opt/openfoam171/etc/bashrc
I meant that it's this line that must be executed, not the other other! And don't forget the space between the dot and "/opt"!

______________________
And what I meant by "remember" was this: User Configuration
But right now, you only have to run that line I've told you about!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 2, 2010, 05:05
Default
  #7
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Maysam,


I meant that it's this line that must be executed, not the other other! And don't forget the space between the dot and "/opt"!

______________________
And what I meant by "remember" was this: User Configuration
But right now, you only have to run that line I've told you about!

Best regards,
Bruno
i have problem in point 7 of your blog in both user and root:

Code:
maysam@maysam-laptop:~$ sed -i -e 's=\.OpenFOAM=\.foam=' $WM_PROJECT_DIR/bin/paraFoam
sed: couldn't open temporary file /opt/openfoam170/bin/sedslURDU: Permission denied
Code:
root@maysam-laptop:~# sed -i -e 's=\.OpenFOAM=\.foam=' $WM_PROJECT_DIR/bin/paraFoam
sed: can't read /bin/paraFoam: No such file or directory
Is it because of not installing of OF from source pack?

Best,
maysmech is offline   Reply With Quote

Old   November 2, 2010, 18:33
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Maysam,

Run this as root:
Code:
sed -i -e 's=\.OpenFOAM=\.foam=' /opt/openfoam170/bin/paraFoam
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 3, 2010, 02:10
Default
  #9
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
The problem is solved.

Thank you very much Bruno.
maysmech is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM] parafoam - paraview help function felik9 ParaView 5 June 3, 2010 16:03
[OpenFOAM] Segmentation fault with paraFoam and paraview 3.6.1 on Fedora 11 32 and 64 bit nanes ParaView 2 September 11, 2009 10:12
paraFoam / paraview black screen gfilip OpenFOAM 6 July 13, 2009 05:30
[OpenFOAM] Both paraview and paraFoam crash on Redhat Linux WS v4 64bit sek ParaView 4 August 17, 2006 17:26
[OpenFOAM] Building Paraview with reader builtin instead of parafoam script tj22 ParaView 2 April 7, 2006 13:55


All times are GMT -4. The time now is 06:53.