error: no match for ‘operator-'
Hi All,
I am getting the following error message : In file included from myInterFoam.C:94:0: pEqn.H:27:28: error: no match for ‘operator-’ in ‘Foam:Operator* this is while i am compiling using wmake for pEqn.H. Here in pEqn.H, I am using the following codes: phi = phiU + ( fvc::average((1-2*alpha1)*p_rgh)*fvc::snGrad(alpha1) - ghf*fvc::snGrad(rho) )*rAUf*mesh.magSf(); The above bold line shows the error line. Similar kind of error I am getting for UEqn.H also Please suggest me what can be the error. Thanking you all in advance. Thanks & Regards, Yudhast Kumar |
It could be that the problem is you are trying to pre multiply the result from fvc::snGrad(rho) with something.
Try creating a variable GradRho(volScalar(or volVector)Field with proper dimensions) to store fvc::snGrad(p). Then in this step, use -ghf*GradRho. |
Dear Adhiraj,
Thanks for your reply. actually the syntax is the same for general interFoam. I have just changed interpolation to average. eg. fvc::average((1-2*alpha1)*p_rgh)*fvc::snGrad(alpha1) fvc::interpolation((1-2*alpha1)*p_rgh)*fvc::snGrad(alpha1) Even the change you have suggested is giving same error. Regards, Yudhast |
All times are GMT -4. The time now is 20:25. |