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

Bug in vectorField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2007, 10:53
Default Yes - you are taking a referen
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Yes - you are taking a reference to a temporary, which is wrong - time to look into a C++ book. Try:

vectorField test = UNull.boundaryField()[patchI].snGrad();

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   September 7, 2007, 09:09
Default Thank you very much! kind r
  #2
New Member
 
Stefan Furtlehner
Join Date: Mar 2009
Location: Vienna, Austria
Posts: 7
Rep Power: 17
stefan82 is on a distinguished road
Thank you very much!

kind regards,
stefan
stefan82 is offline   Reply With Quote

Reply


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
[OpenFOAM] Visualisation of components of a vectorField nico ParaView 2 September 19, 2021 00:42


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