|
[Sponsors] |
March 14, 2012, 12:43 |
Customize MULES
|
#1 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
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 Code:
EXE_INC = \ -I$(LIB_SRC)/triSurface/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude LIB_LIBS = \ -lOpenFOAM \ -ltriSurface \ -lmeshTools \ -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 |
|
March 14, 2012, 13:08 |
|
#2 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
The magic of posting: you then achieve what you want in 5 minutes.
files Code:
myMULES.C LIB = $(FOAM_USER_LIBBIN)/libmyMULES Code:
EXE_INC = \ -I$(LIB_SRC)/triSurface/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude LIB_LIBS = \ -lOpenFOAM \ -ltriSurface \ -lmeshTools \ -lfiniteVolume files Code:
myInterFoam.C EXE = $(FOAM_USER_APPBIN)/myInterFoam 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 |
|
August 6, 2018, 10:46 |
|
#3 | |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Quote:
This line drag me out of the 1-week debugging session |
||
Tags |
mules |
|
|
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 |