|
[Sponsors] |
November 10, 2013, 11:48 |
Errors in running "wmake"
|
#1 |
Member
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 13 |
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]()’ Code:
fvScalarMatrix rhoEqn ( fvc::div(betaVg,phi1) == dryingRate + charCombustionRate + pyrolysisRateCO + pyrolysisRateH2 + pyrolysisRateCO2 + pyrolysisRateCH4 + pyrolysisRateCxHyOz ); 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] |
|
November 11, 2013, 05:16 |
|
#2 |
Senior Member
|
I suggest that you use
Code:
fvScalarMatrix rhoEqn ( fvm::div(betaVg,phi1) == dryingRate + charCombustionRate + pyrolysisRateCO + pyrolysisRateH2 + pyrolysisRateCO2 + pyrolysisRateCH4 + pyrolysisRateCxHyOz ); Code:
fvScalarMatrix rhoEqn ( fvc::div(betaVg,phi1) == dryingRate + charCombustionRate + pyrolysisRateCO + pyrolysisRateH2 + pyrolysisRateCO2 + pyrolysisRateCH4 + pyrolysisRateCxHyOz ); Last edited by jhoepken; November 11, 2013 at 08:14. Reason: Typo |
|
November 11, 2013, 06:40 |
|
#3 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
||
November 11, 2013, 07:37 |
|
#4 |
Member
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 13 |
I think the amendment is "fvm" instead of "fvc" is it?
|
|
November 11, 2013, 08:06 |
|
#5 |
Senior Member
|
||
November 11, 2013, 08:40 |
|
#6 |
Member
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 13 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
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 |