CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   The scale function cannot be found anywhere in OF although mentioned in the userguide (http://www.cfd-online.com/Forums/openfoam/111173-scale-function-cannot-found-anywhere-although-mentioned-userguide.html)

sunliming December 30, 2012 08:17

The scale function cannot be found anywhere in OF although mentioned in the userguide
 
scale(a,b) = (a1b1,a2b2,a3b3) where a,b are vectors. This is describes on page 20 of the programmer's guide, but when I use it for programming, the terminal says there is no such function. I tried to add several namespace before it, but none of them is correct. I don't know why!

lin December 30, 2012 20:43

"scale(U,U) doesn't work and unfortunately it has not been updated in programmers guide. You should use cmptMultiply(U,U) instead."

From my note copied from one of earlier post.

sunliming December 31, 2012 01:48

Lin,
Thank you for the quick reply, does cmptMultipy apply for two scalarFields, namely cmptMultipy(points1,points2) where points1 and points2 are both scalarFields?
Best wishes!
Nick


All times are GMT -4. The time now is 06:52.