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

Customize MULES

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2012, 12:43
Default Customize MULES
  #1
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Posts: 190
Rep Power: 5
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
Posts: 190
Rep Power: 5
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
Phicau is offline   Reply With Quote

Reply

Tags
mules

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
interFoam VOF is loosing fluid wersoe OpenFOAM Running, Solving & CFD 13 June 26, 2013 08:13
Multiple floating objects CKH OpenFOAM 10 September 21, 2011 23:13
Errno 24 linux ivanwhlau OpenFOAM Running, Solving & CFD 6 July 1, 2009 10:16
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Can I Customize Fluent Environment venugopal FLUENT 0 June 16, 2004 12:15


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