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

Compilation modified Sutherland Model

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2021, 12:56
Default Compilation modified Sutherland Model
  #1
New Member
 
Clément
Join Date: Jan 2021
Posts: 5
Rep Power: 5
Cmole is on a distinguished road
Dear all,


I am new to openFoam and am trying to modify the existing Sutherland model.
The problem is, I can not manage to compile the new model. The error is "make: *** No rule to make target" and from what I read it is because the directory "Make" including "files" and "options" does not exist. I have tried to create these files, but I absolutely do not know how to do that and what they should include. Could you help me ?


Thank you in advance for your help!
Clément
Cmole is offline   Reply With Quote

Old   January 21, 2021, 13:02
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
use wmake instead.
dlahaye is offline   Reply With Quote

Old   January 21, 2021, 13:15
Default
  #3
New Member
 
Clément
Join Date: Jan 2021
Posts: 5
Rep Power: 5
Cmole is on a distinguished road
Actually, "wmake" is already what I use.
After modifying the Sutherland model I used "wmake" and the error "make: *** No rule to make target" appeared.
Cmole is offline   Reply With Quote

Old   January 22, 2021, 02:34
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Make sure to have a Make directory with the files called files and options inside.
dlahaye is offline   Reply With Quote

Old   January 22, 2021, 04:17
Default
  #5
New Member
 
Clément
Join Date: Jan 2021
Posts: 5
Rep Power: 5
Cmole is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Make sure to have a Make directory with the files called files and options inside.

I think this is the problem. I do not know what to include in these files because it is the first time I try to compile a new model. I searched on the internet but I did not find anything that could help me. Do you have a model of these files that could work for me ?


Thank you for your help !
Cmole is offline   Reply With Quote

Old   January 22, 2021, 04:34
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 736
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
wmake is a bash shell command that in turn calls "make" with options specifically for OpenFoam.

Information on "make": https://en.wikipedia.org/wiki/Makefile
dlahaye is offline   Reply With Quote

Old   January 22, 2021, 04:52
Default
  #7
New Member
 
Clément
Join Date: Jan 2021
Posts: 5
Rep Power: 5
Cmole is on a distinguished road
Thank you for the information.


I tried something, that still does not work.

In Make/files:


sutherland.C
LIB = $(FOAM_USER_LIBBIN)/sutherland



In Make/options:



EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/specie/transport/sutherland


But I still have the error "make: *** No rule to make target"
Cmole is offline   Reply With Quote

Old   January 22, 2021, 19:15
Default
  #8
New Member
 
Clément
Join Date: Jan 2021
Posts: 5
Rep Power: 5
Cmole is on a distinguished road
I managed to solve this error, I changed the make/files to



sutherlandTransport.C
EXE = $(FOAM_USER_APPBIN)/sutherlandTransport


(I changed sutherland to sutherlandTransport)


I also changed the Make/options to


EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/specie/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/transport/lnInclude/sutherland/lnInclude \
-I$(LIB_SRC)/OpenFOAM/db/IOstreams/lnInclude \



Unfortunately, I have an error: "fatal error: specie.H: No such file or directory"


Thanks to whoever who can help me.
Cmole is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 21:00
Problem while compiling modified simpleFoam solver mattiafc OpenFOAM Programming & Development 0 May 26, 2020 20:01
compilation problems in FOAM-Extend 3.1 with a modified "dbnsTurb" GJM1991 OpenFOAM Programming & Development 0 June 26, 2015 09:34
Modified interFoam compilation fails voingiappone OpenFOAM Programming & Development 6 October 1, 2013 03:47
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56


All times are GMT -4. The time now is 05:38.