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

How to get access to neighbor of neighbor(2nd neighbor) in SU2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2015, 07:38
Default How to get access to neighbor of neighbor(2nd neighbor) in SU2
  #1
Senior Member
 
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13
Vino is on a distinguished road
Hi,

I am planning to calculate derivatives by considering neighbors of neighbors points (2nd neighbors) for my work. I explored various geometry related files in SU2 and could not get a clear picture of how to access to the neighbors of neighbors.

looking for some help/suggestion.

Thank you very much.!
Vino is offline   Reply With Quote

Old   April 22, 2015, 15:08
Default
  #2
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13
hlk is on a distinguished road
Quote:
Originally Posted by Vino View Post
Hi,

I am planning to calculate derivatives by considering neighbors of neighbors points (2nd neighbors) for my work. I explored various geometry related files in SU2 and could not get a clear picture of how to access to the neighbors of neighbors.

looking for some help/suggestion.

Thank you very much.!
2nd neighbors are not currently supported, so you will need to implement something to do this, either by changing the geometry structure to include the list of 2nd neighbors as well as the neighbors, or by looping over the neighbors of neighbors at the point in the code where you need that information, aka looping over the values in the Neighbor_Nodes tensor. (See GetNeighbor_Nodes method(s))
hlk is offline   Reply With Quote

Old   April 23, 2015, 06:04
Default
  #3
Senior Member
 
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13
Vino is on a distinguished road
Hi hlk,

Thanks for your reply. I will look into your suggestions.

I am little confused between GetnPoint( ) and GetnNeighbor( ). In LS gradient calculation GetnPoint( ) class is used to access the neighbors. Plz clarify.
Vino 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
Official Release of SU2 V3.2 economon SU2 News & Announcements 6 April 17, 2015 23:28
SU2 Parallel - cannot access or exectute dbaldzhiev SU2 3 November 24, 2014 17:02
Pointwise-SU2 joint webinar (April 29th) and SU2 v3.1.0 new release fpalacios SU2 News & Announcements 1 April 30, 2014 02:40
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 05:28
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 02:48


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