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

Find distance from a cell to a Boundary patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2012, 16:00
Default Find distance from a cell to a Boundary patch
  #1
New Member
 
OEHMU
Join Date: Dec 2010
Posts: 5
Rep Power: 16
oehmu is on a distinguished road
Hello FOAMEr's,

I have two questions that hope somebody can give me a hit to find and answer or find a better approach:

1. I would like to know how to find the distance from all internal cells to a given boundary patch (fix) at run time in OpenFOAM

2. How to get the distance from a cell that has an alpha<=0.5, in interFoam, to a fix cell that has an alpha around 0.045<=alpha>=0.05 and then use the data to solve a PDE that only applies to such cells (like a water surface elevation)

Best regards,

OEHMU
oehmu is offline   Reply With Quote

Old   March 23, 2016, 00:47
Default
  #2
Member
 
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 13
ripudaman is on a distinguished road
Were you ever able to find an optimal solution to do this?
ripudaman 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
Create a GeometricField of a given type on given patch? philippose OpenFOAM Programming & Development 4 August 12, 2013 13:41
Boundary layer first cell distance ACER STAR-CCM+ 1 July 19, 2012 11:23
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 13:23
Retrieving boundary patch values adjacent to a given cell brooksmoses OpenFOAM Post-Processing 2 December 8, 2008 11:00
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 19:54.