CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

wmake errors transportModels

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 28, 2010, 06:23
Post wmake errors transportModels
  #1
Senior Member
 
Join Date: Sep 2010
Location: France
Posts: 193
Rep Power: 6
T.D. is on a distinguished road
Hi i am trying to make a new viscosityModel in transportModels
i had two directories, main($WM_PROJECT_DIR) and user($WM_PROJECT_USER_DIR).

when i copy the src folder from the main to the user directory,
i do wmake libso incompressible from transportModels folder
it makes all .o files and at last i get this error:


mkdir: cannot create directory 'linuxGccDPOpt': permission denied
/bin/sh: cannot create linuxGccDPOpt/options: Directory nonexistent
make: ***[linuxGccDPOpt/options] Error 2
/opt/openFoam171/wmake/MakeFiles:39: linuxGccDPOpt/options: No such file or directory
make: *** No rule to make target 'linuxGccDPOpt/options'. Stop.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created



- i tried also from the main directory where OpenFoam is installed from /opt/OpenFoam171/src/transportModels
to do wmake libso incompressible, but i get the same error

- when i try as sudo su (administrator) i also get that wmake: command not found


Help please
where really to copy new viscosity models, how to do wmake ????


thanks a lot


T.D.
T.D. is offline   Reply With Quote

Old   September 28, 2010, 06:37
Default
  #2
Senior Member
 
Felix L.
Join Date: Feb 2010
Location: Hamburg
Posts: 165
Rep Power: 9
FelixL is on a distinguished road
Hi,


you can try to temporarily change the owner of the /opt/Openfoam171-folder:

sudo chown -R username /opt/Openfoam171 (where username is the name of the current user)

Compiling should be working then.
For safety reasons it's better to change the owner back to root afterwards:

sudo chown -R root /opt/Openfoam171

Hope this helps!

Greetings.
FelixL is offline   Reply With Quote

Old   September 28, 2010, 08:27
Smile Problem Solved
  #3
Senior Member
 
Join Date: Sep 2010
Location: France
Posts: 193
Rep Power: 6
T.D. is on a distinguished road
Hi

Thanks thanks so much, it really worked
i'm so glad, really thanks

I'll try to explain all the operation for others clearly:

Making a new viscosityModel

1-Copy the src folder from the main installed OpenFoam folder directory to your openfoam user directory.

2-copy the wanted law and change-rename it inside the /visocsityModels folder.

3-go to Make folder and add your new model directory to the existing ones

4-open console and type:

sudo chown -R username /opt/openfoam1xx

5-go back to /transportModels in the user directory of openfoam and open console and type:

wmake libso incompressible

wait till library is updated

6-change back to root by typing in a new console:

sudo chown -R root /opt/openfoam1xx

7-you can now run your applications normally with your new viscosityModel



T.D.
T.D. 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
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
ParaFoam error message joey OpenFOAM Paraview & paraFoam 1 October 2, 2006 13:28
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 15:10.