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

dot product of volvectorfield

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

Like Tree2Likes
  • 2 Post By niklas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2012, 18:44
Default dot product of volvectorfield
  #1
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Greetings!

How can one get a squared value from volvectorfield? Per say, I have volVectorField A and besides simple output of this in text file I also want to get (and later be able to use) squared value of A in each cell. My first absurd idea was to do pow(A,2), but sadly I don't know the correct answer.

Sincerely,
Martin
latvietis is offline   Reply With Quote

Old   November 20, 2012, 02:16
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
inner product is '&'
so
volScalarField Usquared = U & U;
niklas 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
double dot tensor product (double inner product) implementation yogzebul OpenFOAM Programming & Development 2 July 28, 2011 11:28
Iterative solver with no dot product rugabug Main CFD Forum 0 February 15, 2011 02:39
Possible Bug in double dot product ampamp operator david_h OpenFOAM Bugs 1 September 14, 2007 15:58
vector dot product mech FLUENT 0 October 23, 2006 00:37
calculatin dot product between a tensor and vector Greg CFX 0 November 20, 2003 09:56


All times are GMT -4. The time now is 21:04.