CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

The scale function cannot be found anywhere in OF although mentioned in the userguide

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 30, 2012, 08:17
Default 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: 14
sunliming is on a distinguished road
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!
sunliming is offline   Reply With Quote

Old   December 30, 2012, 20:43
Default
  #2
lin
Senior Member
 
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17
lin is on a distinguished road
"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.
lin is offline   Reply With Quote

Old   December 31, 2012, 01:48
Default
  #3
Member
 
Nick
Join Date: Nov 2011
Location: Tongji University,Shanghai,China
Posts: 33
Blog Entries: 6
Rep Power: 14
sunliming is on a distinguished road
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
sunliming is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:58.