CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   no match for ‘operator+’ in ‘Foam::operator*(const Foam::tmp<Foam::GeometricField (http://www.cfd-online.com/Forums/openfoam-programming-development/118393-no-match-operator-foam-operator-const-foam-tmp-foam-geometricfield.html)

tjugn May 27, 2013 03:46

no match for ‘operator+’ in ‘Foam::operator*(const Foam::tmp<Foam::GeometricField
 
HI Foamers:
I added a source term (momSource) to the momentum equation of NS in interFoam to generate waves, the definition of momSource is in the createFields.H:
/home/caelinux/Desktop/Screenshot-13.png
and modified the pEqn.H and UEqn.H as follows:
/home/caelinux/Desktop/Screenshot-14.png
/home/caelinux/Desktop/Screenshot-15.png
but,when I comiled it the following erros are being produced:
/home/caelinux/Desktop/Screenshot-16.png

I would appreciate if you help me fix it!


All times are GMT -4. The time now is 08:53.