CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   buoyanSimpleFoam (https://www.cfd-online.com/Forums/openfoam-programming-development/97897-buoyansimplefoam.html)

samiam1000 February 28, 2012 04:01

buoyanSimpleFoam
 
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

AnjaMiehe February 28, 2012 14:50

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

wyldckat February 28, 2012 16:49

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 (Post 346592)
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

samiam1000 February 29, 2012 02:39

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


All times are GMT -4. The time now is 01:00.