CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

buoyanSimpleFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 28, 2012, 05:01
Default buoyanSimpleFoam
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear all,

I am trying to create my own solver, following this tutorial.

What I wanna do is to modify the buoynatSimpleFoam solver in order to make it possible to fix the value of the enthalpy (hence, of the temperature) in some cells.

The point is that when I create my new folder (e.g. buoyantSimpleFoamMod) and try to compile the code (after having edited also the files in it) I get this error message:
Code:
wxpmi213:/opt/openfoam201/applications/solvers/heatTransfer/buoyantSimpleFoamMod # wmake                                                       
/opt/openfoam201/wmake/wmake: line 222: make: command not found                                                                                
/opt/openfoam201/wmake/wmake: line 223: make: command not found                                                                                
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /opt/openfoam201/applications/solvers/heatTransfer/buoyantSimpleFoamMod
Could you help, please?

Thanks a lot,

Samuele
samiam1000 is offline   Reply With Quote

Old   February 28, 2012, 15:50
Default
  #2
Member
 
Anja Miehe
Join Date: Dec 2009
Location: Freiberg / Germany
Posts: 48
Rep Power: 7
AnjaMiehe is on a distinguished road
Hello Samuele,

you have to do all the comments of the tutorial in your home folder. Normally, you are not allowed to compile with wmake in /opt/... and it is not advisable. Start anew in /home/Samuele, there it should work.

Have a nice evening, Anja
AnjaMiehe is offline   Reply With Quote

Old   February 28, 2012, 17:49
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Samuele and Anja,

Anja is right: you should not use the "/opt" folder for developing experimental solvers
The tutorial clearly talks about using "$WM_PROJECT_USER_DIR" as your work area. If you do not know what this variable indicates, run:
Code:
echo $WM_PROJECT_USER_DIR
This fixes the second problem. The first problem is highlighted in bold:
Quote:
Originally Posted by samiam1000 View Post
Code:
                                           
/opt/openfoam201/wmake/wmake: line 222: make: command not found
(...)
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /opt/openfoam201/applications/solvers/heatTransfer/buoyantSimpleFoamMod
This means that make is not installed. For having a working development environment, check the requirements from here: System Requirements
You only need to install the packages mentioned on the System Requirements section, for the Linux version that you are using.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 29, 2012, 03:39
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Hi All,

and thanks for answering.

I have solved the second problem, but the first one still stands, since I can not install software on my laptop. I have to ask to the IT office to do that and that's what I am gonna do asap.

Thanks again.

And I hope to solve this question, soon.

Later I'll probably have questions about fluid dynamics and not about computer science .

Thanks again,

Samuele
samiam1000 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



All times are GMT -4. The time now is 03:26.