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

Custom viscosity model wmake error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2021, 06:46
Default Custom viscosity model wmake error
  #1
New Member
 
Raoul
Join Date: Apr 2021
Posts: 16
Rep Power: 5
rol97 is on a distinguished road
Hi everyone,
I am currently implementing a custom viscosity model, but when I try to compile it I receive the following error message

Code:
Make/linux64GccDPInt32Opt/options:55: *** recipe commences before first target.  Stop.
Make/linux64GccDPInt32Opt/options:55: *** recipe commences before first target.  Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/raoul/OpenFOAM/raoul-8/src/transportModels/incompressible/viscosityModels/customLaw
The files that I am working on are in the directory $WM_PROJECT_USER_DIR/src/transportModels/incompressible/viscosityModels/customLaw

while this is the customLaw/Make/files code

Code:
customLaw.C

LIB = $(FOAM_USER_LIBBIN)/libcustomLaw
and this is the customLaw/Make/options code

Code:
EXE_INC = \

	-I$(LIB_SRC)/transportModels/lnInclude \
	-I$(LIB_SRC)/finiteVolume/lnInclude

LIB_LIBS = \
	
	-lfiniteVolume
The previous code source comes from this presentation ( http://www.tfd.chalmers.se/~hani/kur...esentation.pdf page 11) that I slightly adapted to match with the directories of the OpenFoam installation folder. Being quite inexperienced I am struggling to find the error in my code (I assume it is in the options file but I might be wrong).

Thank you in advance.
rol97 is offline   Reply With Quote

Old   April 22, 2021, 07:24
Default
  #2
New Member
 
Raoul
Join Date: Apr 2021
Posts: 16
Rep Power: 5
rol97 is on a distinguished road
Solved.

I deleted the directory that was created in the Make directory from the previous failed compilation. Compiled again and it worked. No idea why it worked tho.
rol97 is offline   Reply With Quote

Old   May 3, 2022, 06:26
Default
  #3
Member
 
sadra mahmoudi
Join Date: Feb 2021
Location: Austria
Posts: 39
Rep Power: 5
sadra2003 is on a distinguished road
Quote:
Originally Posted by rol97 View Post
Hi everyone,
I am currently implementing a custom viscosity model, but when I try to compile it I receive the following error message

Code:
Make/linux64GccDPInt32Opt/options:55: *** recipe commences before first target.  Stop.
Make/linux64GccDPInt32Opt/options:55: *** recipe commences before first target.  Stop.
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/raoul/OpenFOAM/raoul-8/src/transportModels/incompressible/viscosityModels/customLaw
The files that I am working on are in the directory $WM_PROJECT_USER_DIR/src/transportModels/incompressible/viscosityModels/customLaw

while this is the customLaw/Make/files code

Code:
customLaw.C

LIB = $(FOAM_USER_LIBBIN)/libcustomLaw
and this is the customLaw/Make/options code

Code:
EXE_INC = \

	-I$(LIB_SRC)/transportModels/lnInclude \
	-I$(LIB_SRC)/finiteVolume/lnInclude

LIB_LIBS = \
	
	-lfiniteVolume
The previous code source comes from this presentation ( http://www.tfd.chalmers.se/~hani/kur...esentation.pdf page 11) that I slightly adapted to match with the directories of the OpenFoam installation folder. Being quite inexperienced I am struggling to find the error in my code (I assume it is in the options file but I might be wrong).

Thank you in advance.

Dear Raul,

I am trying to simulate rising bubble in a solution that its density, viscosity nad surface tension are chaning with the concentration of solvent. I am using interFoam and I would like to implement my own correlations for calculating density, viscosity and surfance tension. I am new in OpenFoam and I am looking for a tutorial or any guidance to start it. Could you please help me or share any tutorial if you have for this problem?

Thanks and best regards,
Sadra
sadra2003 is offline   Reply With Quote

Reply

Tags
compiling error, viscosity model


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
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 21:30
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 14:28


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