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

calculating distance between neighboring points

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2022, 06:56
Default calculating distance between neighboring points
  #1
New Member
 
Kuang-Wu Lee
Join Date: Aug 2020
Posts: 2
Rep Power: 0
kuangwulee is on a distinguished road
Hello Foamers,


I have a very fundamental question: how can we calculate the distance between neighboring mesh points (not the distance from mesh point to surface.)
can someone help me?? thanks

Jeff
kuangwulee is offline   Reply With Quote

Old   March 6, 2022, 08:54
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 665
Rep Power: 14
Tobermory will become famous soon enough
What do you mean by "neighboring mesh points"? Do you mean the distance between the centre of a cell and the centre of its neighbouring cells? Since this is an unstructured mesh, then you need to start by getting the cell numbers of the neighbouring cells, and their cell centres, and then it's simple trigonometry to get the separation distance. Is that what you are after?
Tobermory 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
[snappyHexMesh] Invalid Normals for source face to target face while making AMI? Sorabh OpenFOAM Meshing & Mesh Conversion 1 August 3, 2021 06:35
[snappyHexMesh] layer not added Rasmusiwersen OpenFOAM Meshing & Mesh Conversion 1 January 2, 2020 09:43
[snappyHexMesh] SHM Layer Addition Phase dickcruz OpenFOAM Meshing & Mesh Conversion 4 November 1, 2018 07:05
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
snappyhexmesh remove blockmesh geometry philipp1 OpenFOAM Running, Solving & CFD 2 December 12, 2014 10:58


All times are GMT -4. The time now is 23:41.