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

Errors in running "wmake"

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

Like Tree2Likes
  • 1 Post By Bernhard
  • 1 Post By jhoepken

Reply
 
LinkBack Thread Tools Display Modes
Old   November 10, 2013, 11:48
Default Errors in running "wmake"
  #1
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Dear OpenFoamers,

I am running a solver edited for wood chip combustion.When running "wmake",I get the following error.Could someone help me please?
I cannot understand the reason for this.

Code:
rhoEqn.H:11:67: error: no match for ‘operator==’ in  ‘Foam::fvc::div(const surfaceScalarField&, const  Foam::GeometricField<Type, Foam::fvPatchField,  Foam::volMesh>&) [with Type = double, Foam::surfaceScalarField =  Foam::GeometricField<double, Foam::fvsPatchField,  Foam::surfaceMesh>]((*(const Foam::GeometricField<double,  Foam::fvPatchField, Foam::volMesh>*)(& rhos))) == Foam::operator-(const  Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh>  >&) [with Type = double, PatchField = Foam::fvPatchField, GeoMesh  = Foam::volMesh]()’
the rhoEqn.H is as follows;
Code:
fvScalarMatrix rhoEqn
(
    fvc::div(betaVg,phi1)
            ==
            dryingRate + charCombustionRate + pyrolysisRateCO + pyrolysisRateH2 + pyrolysisRateCO2 + pyrolysisRateCH4 + pyrolysisRateCxHyOz
);
all the "Rate" have been introduced as volScalarField using "IOobjects",for example "dryingRate" as follows;

Code:
volScalarField dryingRate
    (
    IOobject
    (
       "dryingRate",
       runTime.timeName(),
            mesh,
            IOobject::MUST_READ,
            IOobject::AUTO_WRITE
    ),
    -scalar(2.822)*pow(scalar (10),-4)*(-Edry/ts)*beta*rhos*Ymoist*pow(mag(ts-T),(float) 7)
    );

Last edited by wyldckat; November 10, 2013 at 14:04. Reason: Added [CODE][/CODE]
Thamali is offline   Reply With Quote

Old   November 11, 2013, 05:16
Default
  #2
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 139
Rep Power: 7
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
I suggest that you use
Code:
fvScalarMatrix rhoEqn
(
    fvm::div(betaVg,phi1)
            ==
            dryingRate + charCombustionRate + pyrolysisRateCO + pyrolysisRateH2 + pyrolysisRateCO2 + pyrolysisRateCH4 + pyrolysisRateCxHyOz
);
instead of

Code:
fvScalarMatrix rhoEqn
(
    fvc::div(betaVg,phi1)
            ==
            dryingRate + charCombustionRate + pyrolysisRateCO +  pyrolysisRateH2 + pyrolysisRateCO2 + pyrolysisRateCH4 +  pyrolysisRateCxHyOz
);
Did this resolve the issue?

Last edited by jhoepken; November 11, 2013 at 08:14. Reason: Typo
jhoepken is offline   Reply With Quote

Old   November 11, 2013, 06:40
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Quote:
Originally Posted by jhoepken View Post
I suggest that you use
[..]instead of
[..]
Hi Jens, I tried to find the difference between the two codes you posted, but is there a difference?
Thamali likes this.
Bernhard is offline   Reply With Quote

Old   November 11, 2013, 07:37
Default
  #4
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
I think the amendment is "fvm" instead of "fvc" is it?
Thamali is offline   Reply With Quote

Old   November 11, 2013, 08:06
Default
  #5
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 139
Rep Power: 7
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
Quote:
Originally Posted by Thamali View Post
I think the amendment is "fvm" instead of "fvc" is it?
Yep, you are right. I've screwed up the copy & paste
Thamali likes this.
jhoepken is offline   Reply With Quote

Old   November 11, 2013, 08:40
Default
  #6
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Thanks a lot.I got the error only after you mentioned it.I cnnot get a fvScalarmatrix from an fvc.
I have another question,In this equation what will be solved,is it betaVg or phi1??
I am bit confused??
Thanks in advance.
Thamali is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 9 January 3, 2012 09:06
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 08:52
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 02:25.