CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problems with interDyMFOAM controldict (http://www.cfd-online.com/Forums/openfoam-solving/122800-problems-interdymfoam-controldict.html)

musahossein August 28, 2013 09:43

Problems with interDyMFOAM controldict
 
Dear all:

I am trying to use the following code in controldict for the sloshingTank2D case.

forces
{
type forces;
functionObjectLibs ("libforces.so"); //Lib to load
outputControl outputTime;
patches (leftWall rightWall);
pName p;
UName U;
rhoName rhoInf;
rhoInf 998.2; //Reference density for fluid
nuInf 1e-06;
CofR (0 0 0); //Origin for moment calculations

outputControl timeStep;
outputInterval 1;
}

My settings in RASproperties file is as follows:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

RASModel laminar;

turbulence off;

printCoeffs on;

// ************************************************** *********************** //

My settings in turbulence properties is as follows:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// simulationType laminar;

simulationType RASModel;

// ************************************************** *********************** //

The above settings are based on a post in this forum by mturcios777 dated December 5 2012 where he states that the above settings are required to address the way interDyMFoam deals with laminar flow for two phase problems. After doing this, and running the case in parallel, I get the following error. Can anyone tell me what this error means. It looks like something is being duplicated somewhere, but I dont know where and why.

Thanks in advance.

Duplicate entry alphatJayatillekeWallFunction in runtime selection table fvPatchField
#0 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+ 0x25) [0x7f221a8c95c5]
#1 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so(_ZN4Foam12fvPatchField IdE31adddictionaryConstructorToTableINS_12compress ible47alphatJayatillekeWallFunctionFvPatchScalarFi eldEEC1ERKNS_4wordE+0x9f) [0x7f220a06c2ef]
#2 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libcompressibleRASModels.so(+0xc235b) [0x7f2209f9735b]
#3 /lib64/ld-linux-x86-64.so.2(+0xf876) [0x7f221ec2d876]
#4 /lib64/ld-linux-x86-64.so.2(+0xf930) [0x7f221ec2d930]
#5 /lib64/ld-linux-x86-64.so.2(+0x13fdf) [0x7f221ec31fdf]
#6 /lib64/ld-linux-x86-64.so.2(+0xf706) [0x7f221ec2d706]
#7 /lib64/ld-linux-x86-64.so.2(+0x13809) [0x7f221ec31809]
#8 /lib/x86_64-linux-gnu/libdl.so.2(+0x1026) [0x7f221a12e026]
#9 /lib64/ld-linux-x86-64.so.2(+0xf706) [0x7f221ec2d706]
#10 /lib/x86_64-linux-gnu/libdl.so.2(+0x163c) [0x7f221a12e63c]
#11 /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31) [0x7f221a12e0c1]
#12 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam6dlOpenERKNS_8fileNameEb+0x 43) [0x7f221a8c36c3]
#13 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam14dlLibraryTable4openERKNS_ 8fileNameEb+0x69) [0x7f221a643e59]
#14 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam14dlLibraryTable4openIPNS_9 HashTableIPFNS_7autoPtrINS_14functionObjectEEERKNS _4wordERKNS_4TimeERKNS_10dictionaryEES6_NS_6string 4hashEEEEEbSE_S8_RKT_+0x150) [0x7f221a64e710]
#15 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam14functionObject3NewERKNS_4 wordERKNS_4TimeERKNS_10dictionaryE+0x100) [0x7f221a64d8a0]
#16 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam18functionObjectList4readEv +0x4f8) [0x7f221a64f968]
#17 /opt/openfoam221/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZNK4Foam4Time3runEv+0xdc) [0x7f221a65b3cc]
#18 interDyMFoam() [0x434c8d]
#19 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f2219568ea5]
#20 interDyMFoam() [0x43c56d]

MaLa February 15, 2014 21:24

Hi Musaddeque

Did you figure out a solution to 'Duplicate entry ...'. I have the same error message.

MaLa February 15, 2014 21:34

Okay, figured it out. If you delete the dep file and re-run wmake libso, the problem gets solved.

I think the problem arises because the library doesn't delete the old existing *.o files and there was one such file with the same name as an implemented turbulence model, that was causing a conflict.


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