CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 (https://www.cfd-online.com/Forums/openfoam-community-contributions/127873-install-swak4foam-openfoam1-7-1-ubuntu-13-04-a.html)

kobayashi December 24, 2013 04:30

Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04
 
1 Attachment(s)
I’d liked to use OpenFOAM1.7.1 on Ubuntu 13.04/13.10.
And I need to use user defined library swak4Foam.

I installed OpenFOAM1.7.1 on Ubuntu 13.04 successfully but I couldn’t install swak4Foam.
Here is the specific steps of installation:

-----------------------------
Step1: Install svn, bison
sudo apt-get install subversion
sudo apt-get install bison

Step2: Add OpenFOAM1.7.1 to openfoam install list
sudo su
gedit /etc/apt/sources.list.d/openfoam.list
"SAVE THE TEXT AFTER REWRITE AS BELOW"
deb http://www.openfoam.org/download/ubuntu maverick main
sudo apt-get update

Step3: Install OpenFOAM
sudo apt-get install openfoam171
gedit ~/.bashrc
"ADD THE LINE BELOW"
. /opt/openfoam171/etc/bashrc

Step4: Download swak4Foam
run
cd ../
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.7/libraries/swak4Foam/

Step5: Install swak4Foam
cd swak4Foam
. Allwmake
-----------------------------

Through Step1-4 I have no problem, but I got error message like the attached log file at Step5 and cannot continue installation.


I'd like to know the reason/cause of the error.
I'd like to know if it's possible to solve this problem or I have to downgrade Ubuntu.
If calculation runs, are the simulation results trustworthy?

Thank you for your help.

wyldckat December 25, 2013 06:08

Greetings kobayashi and welcome to the forum!

Is there any chance you can change to OpenFOAM 1.7.x? Because 1.7.1 is really old by now and there were several modifications made after 1.7.1 was released and are available in 1.7.x.

If you cannot switch to the more recent OpenFOAM 1.7.x, I'll try to have a better look into this.

Better yet would be if you could use the latest OpenFOAM 2.2 series, but I suppose you cannot do so.

Best regards,
Bruno

gschaider January 5, 2014 17:33

Quote:

Originally Posted by kobayashi (Post 467508)
I’d liked to use OpenFOAM1.7.1 on Ubuntu 13.04/13.10.
And I need to use user defined library swak4Foam.

I installed OpenFOAM1.7.1 on Ubuntu 13.04 successfully but I couldn’t install swak4Foam.
Here is the specific steps of installation:

-----------------------------
Step1: Install svn, bison
sudo apt-get install subversion
sudo apt-get install bison

Step2: Add OpenFOAM1.7.1 to openfoam install list
sudo su
gedit /etc/apt/sources.list.d/openfoam.list
"SAVE THE TEXT AFTER REWRITE AS BELOW"
deb http://www.openfoam.org/download/ubuntu maverick main
sudo apt-get update

Step3: Install OpenFOAM
sudo apt-get install openfoam171
gedit ~/.bashrc
"ADD THE LINE BELOW"
. /opt/openfoam171/etc/bashrc

Step4: Download swak4Foam
run
cd ../
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.7/libraries/swak4Foam/

Step5: Install swak4Foam
cd swak4Foam
. Allwmake
-----------------------------

Through Step1-4 I have no problem, but I got error message like the attached log file at Step5 and cannot continue installation.


I'd like to know the reason/cause of the error.
I'd like to know if it's possible to solve this problem or I have to downgrade Ubuntu.
If calculation runs, are the simulation results trustworthy?

Thank you for your help.

The problem is not with swak but with the OF sources and your compiler not reacting good to it.

Seems that the compiler on your system (you're using binaries that were compiled on a much older system) doesn't like the call of methods of a parent class in a template without this-> before it (he even says so). In fact: when checking wit 2.2.x the "insert()"-calls were replaced with "this->insert()" in HashPtrTableIO.C. You can try fixing that there, but I'm afraid you'll run into similar problems later. But as I said: this is not a swak-problem. You'll have to fix your OpenFOAM-sources


All times are GMT -4. The time now is 08:56.