CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   OF 1.7.0 & paraView 3.8.1 (paraFoam) (https://www.cfd-online.com/Forums/openfoam/81580-1-7-0-paraview-3-8-1-parafoam.html)

maysmech October 31, 2010 07:25

OF 1.7.0 & paraView 3.8.1 (paraFoam)
 
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,

wyldckat October 31, 2010 08:43

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

maysmech October 31, 2010 14:07

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

wyldckat October 31, 2010 15:37

Hi Maysam,

Quote:

Originally Posted by maysmech (Post 281568)
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 :p

Best regards,
Bruno

maysmech November 1, 2010 11:33

I've done 1 but after typing ~/.bashrc this error is seen:

root@maysam-laptop:~# ~/.bashrc
-su: /root/.bashrc: Permission denied

wyldckat November 1, 2010 12:02

Hi Maysam,

Quote:

Originally Posted by wyldckat (Post 281573)
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

maysmech November 2, 2010 04:05

Quote:

Originally Posted by wyldckat (Post 281687)
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,

wyldckat November 2, 2010 17:33

Hi Maysam,

Run this as root:
Code:

sed -i -e 's=\.OpenFOAM=\.foam=' /opt/openfoam170/bin/paraFoam
Best regards,
Bruno

maysmech November 3, 2010 01:10

The problem is solved.

Thank you very much Bruno.


All times are GMT -4. The time now is 13:48.