CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Find distance from a cell to a Boundary patch

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

LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2012, 15:00
Default Find distance from a cell to a Boundary patch
New Member
Join Date: Dec 2010
Posts: 5
Rep Power: 13
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 is offline   Reply With Quote

Old   March 22, 2016, 23:47
Ripudaman Manchanda
Join Date: May 2013
Posts: 55
Rep Power: 11
ripudaman is on a distinguished road
Were you ever able to find an optimal solution to do this?
ripudaman is offline   Reply With Quote


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
Create a GeometricField of a given type on given patch? philippose OpenFOAM Programming & Development 4 August 12, 2013 12:41
Boundary layer first cell distance ACER STAR-CCM+ 1 July 19, 2012 10:23
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23
Retrieving boundary patch values adjacent to a given cell brooksmoses OpenFOAM Post-Processing 2 December 8, 2008 10:00
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15

All times are GMT -4. The time now is 03:20.