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

Installing OpenFOAM 2.1 and enGrid

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 28, 2012, 10:28
Default Installing OpenFOAM 2.1 and enGrid
  #1
Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 84
Rep Power: 7
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Hello everyone,

I would like to know how I could install openfoam, paraview and engrid and not crashing my ubuntu 11.10.

I tried to install engrid last week and couldn't open it. If I tried the command 'engrid' it said the executable was not found, if I tried to run 'engridFoam' it was complaining about some VTK in the ThirdParty directory (which I had not installed). After trying a few things, paraview stopped working. I managed to uninstall each of those softwares, installed them back again and still nothing worked. Even Gmsh didn't work properly. Everything related with display.

To make things short, my system got corrupted and I've had to reinstall ubuntu again.

So,

Could someone help me installing openfoam, paraview, engrid, and a good geometry generation program to mesh with the latter, from scratch and noticing that I would like to installed the newst openfoam version (2.1.0), either from ubuntu deb compiled files or from sources.

Thanks!
aerospain is offline   Reply With Quote

Old   March 28, 2012, 13:52
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
I installed engrid 2 days ago and everything keeps working fine. I haven't teste foamToEngrid though…
lovecraft22 is offline   Reply With Quote

Old   March 28, 2012, 15:13
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,253
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@aerospain: I don't have much time to go into detail, so here's the summary:
  1. For OpenFOAM, either follow the instructions for the Source Pack or the Repository Release. This way it's less likely you'll kill off your own system again
  2. For ParaView, follow the instructions on those pages as well. If you want full capabilities for ParaView, instead of the standard that OpenFOAM gives you, follow these instructions instead: ParaView 3.12.0 SuperBuild on OpenFOAM
  3. To fix issues with ParaView, take a look at my blog post: Related issues to ParaView with OpenFOAM - Fixes and solutions
  4. As for enGrid, it's simple:
    1. Building enGrid on an Ubuntu system
    2. To learn how to use enGrid 1.3.0: Damper within duct
    3. To learn how to use Blender 2.49b for then using with enGrid: Unstructured Grids for OpenFOAM With Blender and enGrid
    4. In case you want to use the latest Blender, there are some scripts you can test: https://twitter.com/#!/engits/status/182793662835593216
    5. Got questions about enGrid (free and/or paid): http://engits.eu/en/support
    6. Want training for using enGrid: enGrid training??
Good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   March 28, 2012, 15:42
Default
  #4
Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 84
Rep Power: 7
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Hi lovecraft22,

Glad to hear it worked for you!
aerospain is offline   Reply With Quote

Old   March 28, 2012, 15:48
Default
  #5
Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 84
Rep Power: 7
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Hi wyldckat,

I will try your suggestions tomorrow, I forgot to open ssh connectivity at work before leaving and cannot do anything from home :-(

I have a question at this point. With which sources should I start following the steps for the SuperBuild. Let's assume I install OpenFOAM with the 'official' deb packages.

Thanks!
aerospain is offline   Reply With Quote

Old   March 28, 2012, 16:48
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,253
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi aerospain,

Quote:
Originally Posted by aerospain View Post
With which sources should I start following the steps for the SuperBuild.
The blog post I refer to has the complete instructions.

Quote:
Originally Posted by aerospain View Post
Let's assume I install OpenFOAM with the 'official' deb packages.
Uhm... I said:
Quote:
Originally Posted by wyldckat View Post
  1. For OpenFOAM, either follow the instructions for the Source Pack or the Repository Release. This way it's less likely you'll kill off your own system again
Which translates to this: DO NOT use the 'official' deb!!
The reasoning is simple: if you install the OpenFOAM deb packages, means that all of the source code and binaries that come with OpenFOAM will be placed in "/opt", which is only editable by the "root" user. This means that if you do one wrong step, you could completely damage your entire Ubuntu installation... which you've already done once!!! Therefore: DO NOT use the OpenFOAM deb packages!!!

If you use either the Source Pack or the Repository Release, if things go wrong, you'll only damage your own user folder, not your entire installation! And if that happens, you only have to create a new user name for yourself and start once more to install OpenFOAM.

If you want to provide your personal OpenFOAM build to everyone that uses your machine, then it's just a matter of properly copying the resulting build to the suitable folders and simply edit one or two files to make things work in the copied version. If this is the case, let us know!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 30, 2012, 03:14
Default
  #7
Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 84
Rep Power: 7
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Hello wyldckat,

Unfortunately, it hasn't worked for me. I got one error during make which I thought meant I had to repeat the make process a few times, as you recommend in your post. But, in the end, I got the following error message:
>>>>>
CMake Error at Silo-prefix/src/Silo-stamp/download-Silo.cmake:6 (file):
file DOWNLOAD MD5 mismatch

for file: [/opt/ThirdParty-2.1.x/build/linux64Gcc/SuperBuild/silo-4.8-bsd.tar.gz]
expected MD5 sum: [040d99a7b55be4e2e0bb765560d3137c]
actual MD5 sum: [03e27c977f34dc6e9a5f3864153c24fe]



make[2]: *** [Silo-prefix/src/Silo-stamp/Silo-download] Error 1
make[1]: *** [CMakeFiles/Silo.dir/all] Error 2
make: *** [all] Error 2
^C[1]+ Exit 2 sudo make -j 8 > make.log 2>&1
<<<<<

Thanks for your help
aerospain is offline   Reply With Quote

Old   April 1, 2012, 05:19
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,253
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi aerospain,

Sorry for the delay, but I wasn't able to look into this sooner. The fix should be as follows:
  1. Edit the file that has the package versions:
    Code:
    gedit $WM_THIRD_PARTY_DIR/ParaView-3.12.0/SuperBuild/PackageVersions.cmake
    gedit is the text editor used in this example, but you can use any other.
  2. Change this line:
    Code:
    set(SILO_MD5 040d99a7b55be4e2e0bb765560d3137c)
    To:
    Code:
    set(SILO_MD5 03e27c977f34dc6e9a5f3864153c24fe)
  3. Then do the last 2 lines of point 3 of the blog post once again, since this should help get past the issue with SILO.
I'm going to look deeper into this sometime this week and try to use ParaView's 3.14 dependencies instead, since those shouldn't be updated over time.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Salome + Gmsh or enGrid for OpenFOAM? wwrfd OpenFOAM Meshing Format & General Technical 2 July 21, 2011 10:38
Importing an OpenFOAM mesh into Engrid. Is there a mesh size limitation ? ayoros enGrid 0 April 20, 2011 09:53
checkMesh (from OpenFoam) reportet problem after meshing with engrid RugbyGandalf Main CFD Forum 0 September 8, 2010 10:23
CAD -> gMsh -> enGrid -> OpenFOAM Problem AlGates OpenFOAM 7 August 6, 2010 12:46
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14


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