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

Linking turbulence model in foam extend 3.0.1

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2016, 11:45
Default Linking turbulence model in foam extend 3.0.1
  #1
Member
 
Jack
Join Date: May 2015
Posts: 98
Rep Power: 10
Jack001 is on a distinguished road
Hi All, the turbulence model I would like to link in foam extend 3.0 is found over at https://github.com/langfeldt/gammaReThetatSST

So after I run
Code:
wmake libso
I get the errors at the end of this post. My question is can someone help me to debug this? Im hoping it will be a simple fix and that the problem is due to small differences found when trying to use this code that was written for OpenFoam v2!

For example I notice that changing
Code:
nu()()[cellI]
to
Code:
nu()[cellI]
eliminates the first error but my C++ knowledge is very very bad so I cant get further or understand if im making a mistake. Please help!

I also know that the transpose operator is different in this version and should be
Code:
.T()
instead of
Code:
T()

Errors:

Code:
Making dependency list for source file gammaReThetatSST/gammaReThetatSST.C
SOURCE=gammaReThetatSST/gammaReThetatSST.C ;  icpc -DIntel -Dlinux64 -DWM_DP -wd327,584,654,819,1125,1476,1505,1572 -ansi-alias -O3 -fno-alias -fp-model precise -fargument-noalias-global -unroll0  -DNoRepository -I/usr/local/Cluster-Apps/foam-extend/3.2/src/turbulenceModels -I/usr/local/Cluster-Apps/foam-extend/3.2/src/transportModels -I/usr/local/Cluster-Apps/foam-extend/3.2/src/finiteVolume/lnInclude -I/usr/local/Cluster-Apps/foam-extend/3.2/src/meshTools/lnInclude -I/usr/local/Cluster-Apps/foam-extend/3.2/src/turbulenceModels/incompressible/RAS/lnInclude -IlnInclude -I. -I/usr/local/Cluster-Apps/foam-extend/3.2/src/foam/lnInclude -I/usr/local/Cluster-Apps/foam-extend/3.2/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/gammaReThetatSST.o
gammaReThetatSST/gammaReThetatSST.C(284): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
                          sqr(ReThetatOld)*nu()()[cellI]*dUds/(sqr(max(mag(U_[cellI]),SMALL))),
                                           ^

gammaReThetatSST/gammaReThetatSST.C(291): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
                          nu()()[cellI]*dUds/(sqr(max(mag(U_[cellI]),SMALL))),
                          ^

gammaReThetatSST/gammaReThetatSST.C(429): error: no instance of constructor "Foam::incompressible::RASModel::RASModel" matches the argument list
            argument types are: (const Foam::word, const Foam::volVectorField, const Foam::surfaceScalarField, Foam::transportModel, const Foam::word)
      RASModel(modelName, U, phi, lamTransportModel, turbulenceModelName),
              ^

gammaReThetatSST/gammaReThetatSST.C(706): error: class "Foam::IOobject" has no member "MUST_READ_IF_MODIFIED"
                  IOobject::MUST_READ_IF_MODIFIED,
                            ^

gammaReThetatSST/gammaReThetatSST.C(798): error: no instance of overloaded function "Foam::T" matches the argument list
            argument types are: (Foam::tmp<Foam::GeometricField<Foam::tensor, Foam::fvPatchField, Foam::volMesh>>)
        - fvc::div(nuEff()*dev(T(fvc::grad(U))))
                               ^

gammaReThetatSST/gammaReThetatSST.C(798): error: no instance of overloaded function "Foam::fvc::div" matches the argument list
            argument types are: (<error-type>)
        - fvc::div(nuEff()*dev(T(fvc::grad(U))))
          ^

gammaReThetatSST/gammaReThetatSST.C(814): error: no instance of overloaded function "Foam::T" matches the argument list
            argument types are: (Foam::tmp<Foam::GeometricField<Foam::tensor, Foam::fvPatchField, Foam::volMesh>>)
        - fvc::div(muEff*dev(T(fvc::grad(U))))
                             ^

gammaReThetatSST/gammaReThetatSST.C(814): error: no instance of overloaded function "Foam::fvc::div" matches the argument list
            argument types are: (<error-type>)
        - fvc::div(muEff*dev(T(fvc::grad(U))))
          ^

gammaReThetatSST/gammaReThetatSST.C(870): error: identifier "GName" is undefined
      volScalarField G(GName(), nut_*2*S2);
                       ^

gammaReThetatSST/gammaReThetatSST.C(902): error: class "Foam::fvMatrix<Foam::scalar={Foam::doubleScalar={double}}>" has no member "boundaryManipulate"
      omegaEqn().boundaryManipulate(omega_.boundaryField());
                 ^

gammaReThetatSST/gammaReThetatSST.C(905): error: identifier "omegaMin_" is undefined
      bound(omega_, omegaMin_);
                    ^

gammaReThetatSST/gammaReThetatSST.C(931): error: identifier "kMin_" is undefined
      bound(k_, kMin_);
                ^

compilation aborted for gammaReThetatSST/gammaReThetatSST.C (code 2)
make: *** [Make/linux64IccDPOpt/gammaReThetatSST.o] Error 2
Jack001 is offline   Reply With Quote

Old   September 18, 2020, 17:33
Default Resolution?
  #2
New Member
 
Prakriti
Join Date: Jun 2018
Posts: 6
Rep Power: 7
Prakriti is on a distinguished road
I've run into a similar problem and was wondering if you were able to find any resolution to this? Specifically, I've run into the error with "bound".
Prakriti is offline   Reply With Quote

Reply

Tags
linking, openfoam, turbulence model

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turbulence Model - Linking Issues? AA29 OpenFOAM Programming & Development 3 June 20, 2014 16:21
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
Wrong calculation of nut in the kOmegaSST turbulence model FelixL OpenFOAM Bugs 27 March 27, 2012 10:02
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 25, 2006 00:09


All times are GMT -4. The time now is 06:47.