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

[OpenFOAM.org] Problems with instalation of OpenFOAM 2.2.0 by source

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2015, 10:23
Default Problems with instalation of OpenFOAM 2.2.0 by source
  #1
New Member
 
Andrzej Prusiński
Join Date: Jul 2011
Posts: 10
Rep Power: 15
Prosiaczek is on a distinguished road
Hello everyone,
For last few days I'm trying to install OpenFOAM in version 2.2.x on my Ubuntu 14.04 LTS.
For unknown reasons, I can't install it from repository (sudo apt-get install opnefoam222) I've read on this forum that someone already had such problem, but I didn't found any solution for this issue.
However, I'm creating this topic not to highlight the problem with repository, rather to ask you, whether you've met with errors after installation OpenFOAM 2.2.0 by sources?
To be more precise, after doing as it is written on the website of OpenFOAM:
http://www.openfoam.org/archive/2.2.0/download/source.php
I tried to use snappyHexMesh software and at that point I realize that OpenFOAM folder doesn't have few files, i.e. meshQualityDict (full link OpenFOAM-2.2.0/etc/caseDicts/meshQualityDict), which leads to errors.

Have you met with such problem before or you know any way to solve this issue?

Regards
Andrzej
Prosiaczek is offline   Reply With Quote

Old   March 7, 2015, 20:07
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Greetings Andrzej,

You're referring to 3 slightly different versions of OpenFOAM 2.2:
  • 2.2.0
  • 2.2.2
  • 2.2.x
Neither one has a Deb package for Ubuntu 14.04, which is why you cannot install it by using:
Code:
sudo apt-get install openfoam222
As for building from source code, at least for OpenFOAM 2.2.2, you can find complete instructions here: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04
Building 2.2.x is just a matter of adapting a bit the instructions from 2.2.2 to 2.2.x, as pointed out here: http://www.openfoam.org/archive/2.2.2/download/git.php

As for having more than one version installed: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno
lowlow likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 13, 2015, 05:03
Default
  #3
New Member
 
Andrzej Prusiński
Join Date: Jul 2011
Posts: 10
Rep Power: 15
Prosiaczek is on a distinguished road
Hi Bruno,
You were right in all points. I did not know that OpenFOAM 2.2.x is different version, I truly thought that "x" stands for all "2.2." versions. Thus, let's focus only on ver. 2.2.2. You are also right that netiher of them have package for Ubuntu 14.04. Hence, I installed version 12.04, hoping that it would help.

By having lower version of Ubuntu, I do not need installing OpenFOAM by sources, I just had to use:
Quote:
sudo apt-get install openfoam222
However, the problem with meshQualityDict file as I wrote previously is still missing and now I don't have clue why would that occur.

Regards
Andrzej

-----------------------------
I copied the file from here: https://github.com/OpenFOAM/OpenFOAM...eshQualityDict
and it is working. I hope that this was only file which was missing

Last edited by Prosiaczek; March 13, 2015 at 05:44. Reason: found partially the soultion
Prosiaczek is offline   Reply With Quote

Old   March 13, 2015, 17:10
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 Andrzej,

Uhm... something is amiss here... when I run the following command with a working environment of OpenFOAM 2.2.2:
Code:
find $FOAM_TUTORIALS -name "*Dict" | xargs grep "meshQualityDict"
I only get this result:
Code:
/opt/openfoam222/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/meshQualityDict:    object      meshQualityDict;
/opt/openfoam222/tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges/system/snappyHexMeshDict:    #include "meshQualityDict"
Therefore, I suspect you're trying to do something with a case that was configured to work in OpenFOAM 2.3, but trying to use it on OpenFOAM 2.2. Which, well... you're lucky there was such a "meshQualityDict" file already available in OpenFOAM 2.2!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
installation by sources, openfoam 2.2.x, snappyhexmesh


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
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
[swak4Foam] swak4Foam-groovyBC build problem zxj160 OpenFOAM Community Contributions 18 July 30, 2013 14:14


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