|
[Sponsors] |
Error Duplicate entry swirlFlowRateInletVelocity |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 8, 2017, 11:59 |
Error Duplicate entry swirlFlowRateInletVelocity
|
#1 |
Senior Member
Gajendra Gulgulia
Join Date: Apr 2013
Location: Munich
Posts: 144
Rep Power: 13 |
Hello Foamer's,
I am trying to compile and use a custom patch type for a swril boundary condition. I do the following steps for it: 1. Copy the .C and .H file in a suitable user directory. 2. In the same directory I create a Make/options and Make/files with following contents: Make/options Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude\ -I$(LIB_SRC)/finiteVolume/lnInclude EXE_LIBS = Code:
swirlFlowRateInletVelocityFvPatchVectorField.C LIB_LIB = $(FOAM_USER_LIBBIN)/swirlFlowRateInletVelocity 4. Next I add the code Code:
libs ("swirlFlowRateInletVelocity.so"); As far as I know, these are the steps needed for compilation of the boundary. Now when I type blockMesh on the terminal, I get the error : Code:
Running blockMesh on /home/gajendra/Desktop/sfgsg Duplicate entry swirlFlowRateInletVelocity in runtime selection table fvPatchField #0 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+0x3e) [0x7fa931a9f2ee] #1 /home/gajendra/OpenFOAM/gajendra-4.1/platforms/linux64GccDPInt32Opt/lib/swirlFlowRateInletVelocity.so(+0xe872) [0x7fa92b845872] #2 /lib64/ld-linux-x86-64.so.2(+0x106ba) [0x7fa932b4f6ba] #3 /lib64/ld-linux-x86-64.so.2(+0x107cb) [0x7fa932b4f7cb] #4 /lib64/ld-linux-x86-64.so.2(+0x158e2) [0x7fa932b548e2] #5 /lib64/ld-linux-x86-64.so.2(+0x10564) [0x7fa932b4f564] #6 /lib64/ld-linux-x86-64.so.2(+0x14da9) [0x7fa932b53da9] #7 /lib/x86_64-linux-gnu/libdl.so.2(+0xf09) [0x7fa9311b2f09] #8 /lib64/ld-linux-x86-64.so.2(+0x10564) [0x7fa932b4f564] #9 /lib/x86_64-linux-gnu/libdl.so.2(+0x1571) [0x7fa9311b3571] #10 /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31) [0x7fa9311b2fa1] #11 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6dlOpenERKNS_8fileNameEb+0x2f) [0x7fa931a9927f] #12 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam14dlLibraryTable4openERKNS_8fileNameEb+0x2b) [0x7fa93174030b] #13 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam14dlLibraryTable4openERKNS_10dictionaryERKNS_4wordE+0xbd) [0x7fa93174052d] #14 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam4TimeC1ERKNS_4wordERKNS_7argListES3_S3_+0x4b4) [0x7fa931768244 Thank you |
|
July 9, 2017, 08:26 |
|
#2 |
Senior Member
khedar
Join Date: Oct 2016
Posts: 111
Rep Power: 10 |
You cannot keep the library name same as that of an existing library. In your case you need to change
Code:
LIB_LIB = $(FOAM_USER_LIBBIN)/swirlFlowRateInletVelocity |
|
July 9, 2017, 12:54 |
|
#3 |
Senior Member
Gajendra Gulgulia
Join Date: Apr 2013
Location: Munich
Posts: 144
Rep Power: 13 |
Hello Khedar,
Thanks for the reply. I was of the impression that swirlFlowRateInletVelocity was not available in my version of openFoam. I guess then I don't need to create anything new here. Best Gajendra |
|
Tags |
custom boundary condition, swirl combustion |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
meshing of a compound volume in GMSH | shawn3531 | OpenFOAM | 4 | March 12, 2015 11:45 |
Problem in3D model processing | mebinitap | OpenFOAM | 2 | December 12, 2014 05:40 |
rhoSimplecFoam Mach0.8 no pressure values | CFDnewbie147 | OpenFOAM Running, Solving & CFD | 16 | November 23, 2013 06:58 |
Converting Starccm+ mesh | Ladnam | OpenFOAM | 0 | September 14, 2011 07:30 |
add entry to wordList | peterwy | OpenFOAM Programming & Development | 3 | October 4, 2010 08:13 |