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/)
-   -   Custom viscosity model wmake error (https://www.cfd-online.com/Forums/openfoam-programming-development/235577-custom-viscosity-model-wmake-error.html)

rol97 April 20, 2021 05:46

Custom viscosity model wmake error
 
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 April 22, 2021 06:24

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.

sadra2003 May 3, 2022 05:26

Quote:

Originally Posted by rol97 (Post 802053)
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


All times are GMT -4. The time now is 21:30.