CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   openfoam-1.6-ext on Ubuntu 10.10 Maverick (https://www.cfd-online.com/Forums/openfoam-installation/83771-openfoam-1-6-ext-ubuntu-10-10-maverick.html)

liping_he November 1, 2011 00:23

HI rassilon, I also want to install OF-1.6-ext on Ubuntu10.10. With the help of this post, I finished a part of installation. I have install the openfoam-1.6-ext and openfoam-1.6-ext-dev. There is no Tutorials and Thirdpart in the folder of /usr/lib/OpenFOAM-1.6-ext. I have on idea about what should I do next. So I hope you can give me some suggestions. Thanks a lot.

cheers

Liping

wyldckat November 1, 2011 03:16

Greetings Liping,

If you can run with success the following command:
Code:

icoFoam -help
Then to know where the "tutorials" folder is you only have to run:
Code:

echo $FOAM_TUTORIALS
Best regards,
Bruno

liping_he November 1, 2011 03:45

HI wyldckat, Thanks a lot for your reply.

When I run the following command:
Code:

icoFoam -help
The termial display:
Code:

Usage: icoFoam [-pareallel] [-case dir] [-help] [-doc] [-srcDoc]
I think OpenFOAM-1.6-ext is OK. When i run :
Code:

echo $FOAM_TUTORIALS
The termial display:
Code:

/usr/lib/OpenFOAM-1.6-ext/tutorials
But when i run:
Code:

cd /usr/lib/OpenFOAM-1.6-ext/
ls

The termial display: :
Code:

applications bin etc lib src wmake
There is no tutorials folder. So what do you think about it.:confused:

Best regards,
Liping

wyldckat November 1, 2011 04:20

Hi Liping,

I had completely forgotten how things were split up in the CAE Team's packages. You'll have to install one more package:
Code:

sudo apt-get install openfoam-1.6-ext-doc
You can browse which packages are available in either Synaptic or directly here: https://launchpad.net/~cae-team/+archive/ppa/+packages?field.name_filter=openfoam&field.status_ filter=published&field.series_filter=

edit: I've edited/updated the wiki page that explains these steps to reflect the known installable packages: http://openfoamwiki.net/index.php/In...ucid_10.04_LTS

edit2: these packages are really crazy... the tutorials aren't in the "-doc" package, they are placed in the folder: "/usr/share/doc/openfoam-1.6-ext/examples"

Best regards,
Bruno

liping_he November 1, 2011 23:05

Hi Bruno

Thanks very much for your so much help. The wiki page you updated is right what I need. Thanks!

Best wishes
Liping

gascortado November 3, 2011 13:17

Hi Bruno, it me again with new problems!

I recently updated Ubuntu to version 11.10. Yes, I don't know why I did this! The problem is that I get an error just like this one http://www.cfd-online.com/Forums/ope...tml#post329227 but using a different solver. I re-installed OF-1.6-ext from the CAE repository and the installation its fine. Any idea of what to do. For what I see in the forums, this error is fairly new due to the short time that 11.10 its been out. Like always, any help will be great. Thanks

wyldckat November 3, 2011 13:37

Hi Santiago,

The fix OpenCFD/SGI made for OpenFOAM 2.0.x was this: https://github.com/OpenFOAM/OpenFOAM...3e8d0e85b889d9

If you do a similar fix on 1.6-ext, it should work as intended.

Best regards,
Bruno

gascortado November 3, 2011 14:09

Thanks for your ultra fast reply. I modified the files: /linux64Gcc/c++ and /linuxGcc/c++ as directed. The other 4 files are not present in the /rules folder of 1.6-ext.

After making the changes I still have the same problem

--> FOAM FATAL ERROR:
Unknown turbulenceModel type LESModel

Valid turbulenceModel types are :

1
(
laminar
)


Any other idea? Thanks a lot

wyldckat November 3, 2011 14:27

Hi Santiago,

I forgot to mention that this particular fix requires a clean rebuild :(
Code:

wcleanAll
wcleanLnIncludeAll
./Allwmake > make.log 2>&1

I hope that you already know that you can accelerate the build process by defining the number of processor cores/threads that you want to make available for the build process (8 in the next example):
Code:

export WM_NCOMPPROCS=8
This is meant to be executed before you run Allwmake. And notice that there are two "P"s.

Best regards,
Bruno

gascortado November 3, 2011 14:47

hum, ok. I'm using the OF version from the CAE team using synaptic. There are a lot of "permission denied" stuff when I hit
wcleanAll wcleanLnIncludeAll ./Allwmake > make.log 2>&1

Can I compile this version or I have to use a binary version to be able to compile?

wyldckat November 3, 2011 16:26

Hi Santiago,

OK, I just tried installing the same packages in a virtual machine with Ubuntu 11.10 x86_64 and I was not able to reproduce the error. Can you specify what was the solver and tutorial with which it doesn't work?

If by any chance you can't, then my suggestion is simple: if you updated Ubuntu to the latest version, you're going to have also update 1.6-ext to the latest version as well. Some instructions are available here: Short tutorial for installation OpenFOAMŪ[-Extend]

Best regards and good luck!
Bruno

AmirBaqa1987 February 6, 2013 10:04

hi,I have installed of211 on ubuntu 12.04 correctly
now I use the text file of /home/amir/OpenFOAM/OpenFOAM-1.6-ext/doc/buildInstructions/Ubuntu/12.04 to install openfoam-1.6.ext. but there is some problem:
1.when i type : cd $WM_PROJECT_DIR/ThirdParty at terminal,the following text is appeared:
bash: cd: /opt/openfoam211/ThirdParty: No such file or directory
what should i do?
2.how should i source my OpenFOAM environment to get the basic configuration for
compilation?
please help me,
thanks

wyldckat February 6, 2013 17:30

Greetings Arjang and welcome to the forum!

The long and complicated answer is this one: http://www.cfd-online.com/Forums/blo...vironment.html

The short/simple answer is this one:
  1. Edit the file "~/.bashrc".
  2. Remove the line that says something like this:
    Code:

    . /opt/openfoam211/etc/bashrc
  3. Add these two new lines:
    Code:

    alias of211opt='. /opt/openfoam211/etc/bashrc'
    alias of16ext='. $HOME/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'

  4. Save and close the file.
  5. Start a new terminal.
  6. Whenever you want to use OpenFOAM 2.1.1, run the following command when a new terminal is opened:
    Code:

    of211opt
  7. Whenever you want to use Extend's OpenFOAM 1.6-ext, run the following command when a new terminal is opened:
    Code:

    of16ext
    After this one, you can continue following the installation instructions.


Best regards,
Bruno


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