|
[Sponsors] |
The scale function cannot be found anywhere in OF although mentioned in the userguide |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 30, 2012, 08:17 |
The scale function cannot be found anywhere in OF although mentioned in the userguide
|
#1 |
Member
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 15 |
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!
|
|
December 30, 2012, 20:43 |
|
#2 |
Senior Member
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17 |
"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. |
|
December 31, 2012, 01:48 |
|
#3 |
Member
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 15 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 16:11 |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 12:37 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |