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

Duplicate entries and mismatch of dimensions when using new turbModel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2017, 03:41
Post 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: 9
richard.chung.jones is on a distinguished road
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]
...and with all others turbModels...

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 ??:?
For this error, I know that the nuTilda calculations are wrong and I don't know where does this [0 0 -1 0 0 0 0] come from. Does anyone know how to debug?

I appreciate your kind help.
richard.chung.jones is offline   Reply With Quote

Reply


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



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