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

error: ‘class Foam::isoAdvection’ has no member named ‘getRhoCpPhi’

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2021, 08:06
Default error: ‘class Foam::isoAdvection’ has no member named ‘getRhoCpPhi’
  #1
New Member
 
Kumar Pushpak
Join Date: Apr 2019
Posts: 9
Rep Power: 7
khool_chelsea is on a distinguished road
I am trying to add energy equation in the solver InterIsoFoam. The in-built solver calculates rhoPhi as

Code:
rhoPhi = advector.getRhoPhi(rho1f, rho2f);

Since Energy equation is also added so i am trying to calculate rhoCpPhi as
Code:
rhoCpPhi = advector.getRhoCpPhi(rho1f, rho2f);
I have defined getRhoCpPhi in isoAdvector.H as:
Code:
// Return Heat flux
        tmp<surfaceScalarField> getRhoCpPhi
            (
                const dimensionedScalar rho1,
                const dimensionedScalar rho2,
            const dimensionedScalar cp1,
                const dimensionedScalar cp2
            ) const
            {
                return tmp<surfaceScalarField>
                (
                    new surfaceScalarField
                    (
                        "rhoCpPhi",
                        (rho1*cp1 - rho2*cp2)*dVf_/mesh_.time().deltaT() + cp2*rho2*phi_
                    )
                );
            }

The library gets compiled but while compiling the solver, it displays:






Quote:
In file included from alphaEqnSubCycle.H:51:0,
from pinterIsoFoam2.C:147:
alphaEqn.H: In function ‘int main(int, char**)’:
alphaEqn.H:23:21: error: ‘class Foam::isoAdvection’ has no member named ‘getRhoCpPhi’; did you mean ‘getRhoPhi’?
rhoCpPhi = advector.getRhoCpPhi(rho1f, rho2f);
^~~~~~~~~~~
getRhoPhi
In file included from alphaEqnSubCycle.H:59:0,
from pinterIsoFoam2.C:147:
alphaEqn.H:23:21: error: ‘class Foam::isoAdvection’ has no member named ‘getRhoCpPhi’; did you mean ‘getRhoPhi’?
rhoCpPhi = advector.getRhoCpPhi(rho1f, rho2f);
^~~~~~~~~~~
getRhoPhi
/home/administrator/OpenFOAM/OpenFOAM-v1906/wmake/rules/General/transform:34: recipe for target 'Make/linux64GccDPInt32Opt/pinterIsoFoam2.o' failed
What might i be missing?
khool_chelsea is offline   Reply With Quote

Reply

Tags
interisofoam, isoadvector


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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 06:37
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 14:48
[OpenFOAM] Native ParaView Reader Bugs tj22 ParaView 270 January 4, 2016 12:39
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 14:09.