CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to add a new model (http://www.cfd-online.com/Forums/openfoam-programming-development/116256-how-add-new-model.html)

michel1988 April 16, 2013 03:39

How to add a new model
 
Hello,
I want to add a new model to OpenFOAM. When I compile the source code of the new model with "wmake", it reads in the terminal:
make: *** No rule to make target `NEW/NewModel.dep', needed by `Make/linuxGccDPOpt/dependencies'. Stop.
How to deal with this problem?
Thanks.

fredo490 April 16, 2013 12:26

Did you think about changing your "Make\files" ?
Code:

NewModel.C

EXE = $(FOAM_USER_APPBIN)/NewModel

And if you call any special function that was not in your original solver, you need to change the "Make\options" file.

michel1988 April 16, 2013 16:32

Quote:

Originally Posted by fredo490 (Post 421002)
Did you think about changing your "Make\files" ?
Code:

NewModel.C

EXE = $(FOAM_USER_APPBIN)/NewModel

And if you call any special function that was not in your original solver, you need to change the "Make\options" file.

I made a mistake in "files". Thanks for your reply :)


All times are GMT -4. The time now is 04:47.