|
[Sponsors] |
March 3, 2014, 07:07 |
Reinstalled OpenFOAM getting wmake error
|
#1 | |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
hi,
I just reinstalled OpenFOAM and getting now the error Quote:
How can I fix this? Edit: I also can t find any directory or file "compressibleMultiPhaseModel" in /opt/openfoam230 |
||
March 3, 2014, 07:16 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer:
|
|
March 3, 2014, 07:58 |
|
#3 | |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Ok,
now I made the problem even worse . I deleted the OpenFOAM and Paraview folder and tried to reinstall again like described here http://www.openfoam.org/download/ubuntu.php Problem is I can t reinstall since I get the output Quote:
|
||
March 3, 2014, 08:15 |
|
#5 |
Senior Member
|
Hi,
it seems that you've installed OF using package manager (apt-get) but deleted the folders by hand (using rm -rf) while you had to use package manager. AFAIR there is --reinstall option for 'apt-get install' command (though you'd better read man page for apt-get) which will instruct apt-get to ignore installed packages. So the commands should be like these: Code:
sudo apt-get install --reinstall openfoam230 sudo apt-get install --reinstall paraviewopenfoam410 |
|
March 4, 2014, 11:13 |
|
#6 | |||
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Hi again,
I have now reinstalled OpenFOAM, to be precise I have installed the source package like descibed here http://www.openfoam.org/download/source.php in the hope using Eclipse will be possible afterwards. Two questions: 1. When finishing the chapter "System Requirements" of the above link I get the last line in Terminal Quote:
Quote:
2. When I try to run wmake in my project folder I get the compiler output Quote:
greetings maybee |
||||
March 4, 2014, 11:21 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
OK... hopefully your next step won't be "going into a spacecraft and then going to the moon" ... because with every solution we give you, you keep going into another wall
I don't know which Ubuntu version you're using, but these instructions are more complete than the official ones: http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu |
|
March 4, 2014, 11:39 |
|
#8 |
Senior Member
|
Maybe you can post the following information:
1. Output of id command 2. Output of 'export | grep LD_LIBRARY_' command 3. Output of 'cat $HOME/.bash_profile' (or is it $HOME/.profile on Ubuntu?) And finally are you sure that you've built OpenFOAM? Last edited by alexeym; March 4, 2014 at 11:40. Reason: typo |
|
March 4, 2014, 11:52 |
|
#9 | |||
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Ok great , now I am back to post number 3:
Quote:
http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu but now I get the output of post 3 again and your solutions posted in post 4 and 5 do not work -> I only get: Quote:
Quote:
|
||||
March 4, 2014, 11:59 |
|
#10 |
Senior Member
|
If you'd like to install from sources, you can forget about maybe installed or maybe not installed binary version of OpenFOAM and go straight to:
Code:
sudo apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin libboost-system-dev libboost-thread-dev libgmp-dev libmpfr-dev |
|
March 4, 2014, 12:03 |
|
#11 | ||
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Hi,
problem is my folders are gone (I deleted them) and when using Quote:
Quote:
|
|||
March 4, 2014, 12:16 |
|
#12 |
Senior Member
|
The output just tells you that all necessary development packages are installed, so you can proceed to downloading OpenFOAM & ThirdParty source packs, unpacking them, etc, etc.
I can't understand what you are trying to get. - You've uninstalled binary DEB packages, you'd like to install OF from sources? Follow the instructions wyldckat suggested you. OR - You'd like to install binary DEB packages, follow the instructions http://openfoam.org/download/ubuntu.php. If we return to your initial post, in 2.3.0 there's really no -lcompressibleMultiPhaseModel, I guess now it is called -lcompressibleTwoPhaseSystem. If your solver is tightly based upon 2.2.x version of OF I'd suggest you to stick with 2.2.x cause in 2.3.0 there are backward incompatible changes (at least I needed to correct my viscosity model sources). |
|
March 4, 2014, 12:53 |
|
#13 | ||||
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Quote:
the last version I used was 2.2.3, but within the old Version link http://www.openfoam.org/download/archive.php I only found 2.2.2, therefore tried to install it like described here http://www.openfoam.org/archive/2.2....oad/source.php I ve also copied the tutorials into "home/OpenFOAM Tutorials/run", but when trying to run with Quote:
Quote:
Quote:
1.Ok I got it - I missed the part in chapter "Building the Sources" since I did not understand what directory "$WM_PROJECT_DIR" should be. It is just running now, afterwards I will try to build my project. 2.I guess the last version I used was 2.2.1 then if I can trust the release history . |
|||||
March 4, 2014, 15:46 |
|
#14 |
Senior Member
|
||
March 5, 2014, 02:26 |
|
#15 | |
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Hi,
when I type in "wmake" in my project folder I get now Quote:
|
||
March 5, 2014, 02:33 |
|
#16 |
Senior Member
|
It depends. What you trying to do?
The output of wmake command tells you that multiphaseEulerFoam is built and you can use it. If your solver is a modified version of multiphaseEulerFoam maybe you should consider renaming it (into something like myNewCoolMultiphaseEulerFoam) and using $FOAM_USER_APPBIN instead of $FOAM_APPBIN in Make/files. |
|
March 5, 2014, 05:23 |
|
#17 | |||||
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
Quote:
Quote:
If I open myproject/make/.file there is Quote:
Quote:
EDIT: I did as you proposed,but now I get the following output: Quote:
|
||||||
March 5, 2014, 05:40 |
|
#18 |
Senior Member
|
If I'm not mistaken (though maybe the exact mechanism is more complicated), wmake checks modification time of the files it needs to compile, check modification time of Make/files and Make/options and if these time is older than the modification time of executable it should build, it just says that solver is up to date. As you've just recompiled OpenFOAM, modification time of the multiphaseEulerFoam is more recent than modification times of your files.
Also if you have Code:
EXE = $(FOAM_APPBIN)/multiphaseEulerFoam So, yes, I suggest you change that line to (the name of the new solver is up to you, this is just an example) Code:
EXE = $FOAM_USER_APPBIN/modMultiphaseEulerFoam Code:
myself at daphne in ~$ echo $FOAM_APPBIN /home/myself/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin myself at daphne in ~$ echo $FOAM_USER_APPBIN /home/myself/OpenFOAM/myself-2.2.2/platforms/linux64GccDPOpt/bin |
|
March 5, 2014, 05:52 |
|
#19 | ||
Senior Member
Join Date: Jan 2012
Posts: 166
Rep Power: 14 |
hi,
I have done this Quote:
Quote:
|
|||
March 5, 2014, 05:55 |
|
#20 |
Senior Member
|
EXE = $(FOAM_USER_APPBIN)/multiphaseEulerFoamNEW
Sorry, forgot about braces. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 07:24 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 09:30 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |
[OpenFOAM] ParaFoam error message | joey | ParaView | 1 | October 2, 2006 13:28 |