|
[Sponsors] |
February 10, 2013, 23:06 |
OpenFoam ./Allmake permission problem.
|
#1 | |
Member
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 14 |
I am try to program my own solver under /opt/openfoam211, however, after modify the original script, I use the Allwmake to recompile. Then lots of error comes up. I think this is because of permission under /opt directory.
I copied openfoam211 folder to /home/OpenFOAM/ and use ./Allwmake again. The error now are: Quote:
James |
||
February 11, 2013, 06:33 |
|
#2 |
Member
Join Date: Jun 2011
Posts: 53
Rep Power: 14 |
Hello James,
Try this tutorial: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam 1.) you don't need to copy the complete openfoam211 folder, you simply need a folder for your solver in $WM_PROJECT_USER_DIR/applications/solvers/ 2.) Therefore you don't need to use Allwmake, but simply wmake in your solver directory 3.) To prevent the permission problem with the /opt directory, all of your solvers are compiled in $FOAM_USER_APPBIN (probably found in /home/user/OpenFOAM/user-2.1.1/platforms), instead of FOAM_APPBIN. You declare this in yoursolverdirectory/Make/files --> see the tutorial Hope this helps. |
|
February 12, 2013, 14:32 |
|
#3 | |
Member
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 14 |
Quote:
After I follow the tutorial provided, I found there is another problem when I use 'wmake' The terminal says" make: *** No rule to make target `icoFoam.dep', needed by `Make/linuxGccDPOpt/dependencies'. Stop." I am not sure why this happen? Have you met some problem like this? |
||
February 12, 2013, 14:38 |
|
#4 | |
Member
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 14 |
I have solved the above problem by making some small change, however even I use wmake not in /opt folder, it still says that I don't have permission.
Quote:
Cheers! |
||
February 12, 2013, 17:17 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Quoting the wiki page: Quote:
Best regards, Bruno
__________________
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
Problem with mpirun with OpenFOAM | jiejie | OpenFOAM | 3 | July 7, 2010 20:30 |
OpenFOAM paraView problem | Ronnfors | OpenFOAM | 2 | September 22, 2009 06:32 |
OpenFOAM 1.6 CreatePatch Problem | TarifaPirata | OpenFOAM Bugs | 1 | September 10, 2009 05:35 |