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

error: no matching function for call to

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2021, 13:36
Question error: no matching function for call to
  #1
New Member
 
Skanda
Join Date: Feb 2021
Posts: 11
Rep Power: 5
Fuzzy_Wuzzy is on a distinguished road
Hello Forum,


I have been learning OpenFOAM and c++ for a couple of months now and I am trying to make a Variable Resolution PANS turbulence model for the SST model. Once I compile the code I get an error stating that

Quote:
error: no matching function for call to \u2018ddt(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >)\u2019
185 | return (kU_/fK_) * ((fvc::ddt(fK(Lambda)) + fvc::div(alphaRhoPhi, fK_)));

The code is,
Code:
template<class BasicTurbulenceModel>
tmp<volScalarField::Internal> kOmegaSSTPANS<BasicTurbulenceModel>::PTr(const volScalarField& Lambda)
 {
    const surfaceScalarField& alphaRhoPhi = this->alphaRhoPhi_;

    return (kU_/fK_) * ((fvc::ddt(fK(Lambda)) + fvc::div(alphaRhoPhi, fK_)));
}

and Lambda is

Code:
  volScalarField Lambda
    (
        max
        (
            sqrt(kU_)/(betaStar_.value()*omegaU_),
            dimensionedScalar
            (
                "1.0e-10",
                sqrt(kU_.dimensions())/omegaU_.dimensions(),
                1.0e-10
            )
        )
    );

I do not get it, I have declared everything and still it states there is no matching function to call.


If anyone can help me that would be really great.
Fuzzy_Wuzzy 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
Elements that limit the Courant number skabilan OpenFOAM Running, Solving & CFD 9 July 3, 2008 13:07


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