|
[Sponsors] |
Duplicate entries and mismatch of dimensions when using new turbModel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2017, 04:41 |
Duplicate entries and mismatch of dimensions when using new turbModel
|
#1 |
New Member
CHUNG Ching Chun
Join Date: Aug 2016
Location: Tin Shui Wai, New Territories, Hong Kong
Posts: 11
Rep Power: 10 |
Dear Foamers,
I am doing validation cases using NASA Turbulence Modeling Resources and I need to modify OF's SpalartAllmaras model to fit the equations in NASA TMR. Compiling is successful, but when I use the model in airFoil2D tutorial, there are 2 errors. One is the "Duplicate entry [some models] in runtime selection table [like RASModel, LESModel etc.]. The code is here: Code:
Duplicate entry DeardorffDiffStress in runtime selection table LESModel #0 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam5error14safePrintStackERSo+0x3e) [0x7f5f110b52ee] #1 /home/mrichard/OpenFOAM/mrichard-4.1/platforms/linux64GccDPInt32Opt/lib/libNASASpalartAllmaras.so(+0x852c1) [0x7f5f09e3c2c1] #2 /lib64/ld-linux-x86-64.so.2(+0x104ea) [0x7f5f14e7c4ea] #3 /lib64/ld-linux-x86-64.so.2(+0x105fb) [0x7f5f14e7c5fb] #4 /lib64/ld-linux-x86-64.so.2(+0x15712) [0x7f5f14e81712] #5 /lib64/ld-linux-x86-64.so.2(+0x10394) [0x7f5f14e7c394] #6 /lib64/ld-linux-x86-64.so.2(+0x14bd9) [0x7f5f14e80bd9] #7 /lib/x86_64-linux-gnu/libdl.so.2(+0xf09) [0x7f5f107c8f09] #8 /lib64/ld-linux-x86-64.so.2(+0x10394) [0x7f5f14e7c394] #9 /lib/x86_64-linux-gnu/libdl.so.2(+0x1571) [0x7f5f107c9571] #10 /lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31) [0x7f5f107c8fa1] #11 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam6dlOpenERKNS_8fileNameEb+0x2f) [0x7f5f110af27f] #12 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam14dlLibraryTable4openERKNS_8fileNameEb+0x2b) [0x7f5f10d5630b] #13 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam14dlLibraryTable4openERKNS_10dictionaryERKNS_4wordE+0xbd) [0x7f5f10d5652d] #14 /opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so(_ZN4Foam4TimeC1ERKNS_4wordERKNS_7argListES3_S3_+0x4b4) [0x7f5f10d7e244] #15 simpleFoam() [0x421aaa] #16 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f5f0fb7e830] #17 simpleFoam() [0x4249f9] With reference to the following thread, Duplicate entry SpalartAllmaras in runtime selection table LESModel I set up LIB_OWN_SRC for my libraries and I am not exactly sure about copying the standard libraries in my own library folder. Does it mean I need to copy all the .H files instead of just copying the lnInclude folders? Another error is the following: Code:
Starting time loop Time = 0.5 smoothSolver: Solving for Ux, Initial residual = 1, Final residual = 0.0917121, No Iterations 6 smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 0.0809526, No Iterations 6 GAMG: Solving for p, Initial residual = 1, Final residual = 0.0856669, No Iterations 13 time step continuity errors : sum local = 9.96358e-05, global = 3.62043e-17, cumulative = 3.62043e-17 --> FOAM FATAL ERROR: LHS and RHS of - have different dimensions dimensions : [0 2 -1 0 0 0 0] - [0 0 -1 0 0 0 0] From function Foam::dimensionSet Foam::operator-(const Foam::dimensionSet&, const Foam::dimensionSet&) in file dimensionSet/dimensionSet.C at line 509. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 Foam::operator-(Foam::dimensionSet const&, Foam::dimensionSet const&) at ??:? #3 Foam::tmp<Foam::GeometricField<Foam::typeOfSum<double, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::operator-<double, double, Foam::fvPatchField, Foam::volMesh>(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const&) at ??:? #4 Foam::RASModels::NASASpalartAllmaras<Foam::IncompressibleTurbulenceModel<Foam::transportModel> >::correct() at ??:? #5 ? at ??:? #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #7 ? at ??:? I appreciate your kind help. |
|
|
|