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

Customize MULES

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Phicau

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2012, 12:43
Default Customize MULES
  #1
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Dear all,

I need to modify MULES, and therefore convert it to myMULES.

In order to do so I follow the standard procedure copying the three files in my user folder, run rename 's/MULES/myMULES/g' *.* and sed -i 's/MULES/myMULES/g' *.*

I create the Make folder and add the two files:

files
Code:
myMULES.C

LIB = $(FOAM_USER_LIBBIN)/libmyMULES
options
Code:
EXE_INC = \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = \
    -lOpenFOAM \
    -ltriSurface \
    -lmeshTools \
    -lfiniteVolume
Note that in the latter one I have added -lfiniteVolume

Then I try to compile it, but several errors regarding impossibility to locate and load dependencies arise.

¿What else do I have to include?

Thanks a lot

Pablo
Phicau is offline   Reply With Quote

Old   March 14, 2012, 13:08
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
The magic of posting: you then achieve what you want in 5 minutes.

files
Code:
myMULES.C

LIB = $(FOAM_USER_LIBBIN)/libmyMULES
options
Code:
EXE_INC = \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude

LIB_LIBS = \
    -lOpenFOAM \
    -ltriSurface \
    -lmeshTools \
    -lfiniteVolume
and if you want to integrate the new MULES in myInterFoam:

files
Code:
myInterFoam.C

EXE = $(FOAM_USER_APPBIN)/myInterFoam
options
Code:
EXE_INC = \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/transportModels/incompressible/lnInclude \
    -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
    -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I./myMULES

EXE_LIBS = \
    -ltwoPhaseInterfaceProperties \
    -lincompressibleTransportModels \
    -lincompressibleTurbulenceModel \
    -lincompressibleRASModels \
    -lincompressibleLESModels \
    -lfiniteVolume \
    $(FOAM_USER_LIBBIN)/libmyMULES.so
regarding that the 3 custom MULES files are within the myMULES folder in the root of myInterFoam
randolph likes this.
Phicau is offline   Reply With Quote

Old   August 6, 2018, 10:46
Default
  #3
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11
randolph is on a distinguished road
Quote:
Originally Posted by Phicau View Post
The magic of posting: you then achieve what you want in 5 minutes.

files
Code:
myMULES.C

LIB = $(FOAM_USER_LIBBIN)/libmyMULES
options
Code:
EXE_INC = \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude

LIB_LIBS = \
    -lOpenFOAM \
    -ltriSurface \
    -lmeshTools \
    -lfiniteVolume
and if you want to integrate the new MULES in myInterFoam:

files
Code:
myInterFoam.C

EXE = $(FOAM_USER_APPBIN)/myInterFoam
options
Code:
EXE_INC = \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/transportModels/incompressible/lnInclude \
    -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
    -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I./myMULES

EXE_LIBS = \
    -ltwoPhaseInterfaceProperties \
    -lincompressibleTransportModels \
    -lincompressibleTurbulenceModel \
    -lincompressibleRASModels \
    -lincompressibleLESModels \
    -lfiniteVolume \
    $(FOAM_USER_LIBBIN)/libmyMULES.so
regarding that the 3 custom MULES files are within the myMULES folder in the root of myInterFoam
$(FOAM_USER_LIBBIN)/libmyMULES.so

This line drag me out of the 1-week debugging session
randolph is offline   Reply With Quote

Reply

Tags
mules


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
Multiple floating objects CKH OpenFOAM Running, Solving & CFD 14 February 20, 2019 10:08
interFoam VOF is loosing fluid wersoe OpenFOAM Running, Solving & CFD 12 June 26, 2013 09:13
Errno 24 linux ivanwhlau OpenFOAM Running, Solving & CFD 6 July 1, 2009 11:16
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 12:16
Can I Customize Fluent Environment venugopal FLUENT 0 June 16, 2004 13:15


All times are GMT -4. The time now is 17:25.