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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 5, 2007, 09:53
Default Yes - you are taking a referen
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
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, 08: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

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


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