|
[Sponsors] | |||||
How to determine if a cell is on a boundary in OpenFOAM? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Join Date: Jul 2022
Posts: 18
Rep Power: 5 ![]() |
Hello, everyone.
In programming I want to determine if a cell is on boundary. Is there any way to solve it? I originally wanted to judge whether the face of the cell was in a boundary patch, but felt that cost too much calculation. I look forward to your thoughts.
|
|
|
|
|
|
|
|
|
#2 |
|
Member
Shravan
Join Date: Mar 2017
Posts: 89
Rep Power: 10 ![]() |
Hello,
Check out this thread: Finding boundary cells Also check out (based on the this answer in the above thread): https://www.openfoam.com/documentati...aryToCell.html Thanks |
|
|
|
|
|
|
|
|
#3 | |
|
New Member
Join Date: Jul 2022
Posts: 18
Rep Power: 5 ![]() |
Quote:
Another question is, what is the pattern of grid arrangement in OpenFOAM? Is it that the internal cells are arranged first and then the boundary cells |
||
|
|
|
||
|
|
|
#4 |
|
Member
Shravan
Join Date: Mar 2017
Posts: 89
Rep Power: 10 ![]() |
Hello,
I am not a 100% sure, please correct me if I am wrong. I recommend you to print it out if possible and check for yourself. For the cells, I think the arrangement is based on axis (at least for structured ones). For a specific x axis value, it is fixed and y and z are numbered for that constant x value. Then x is incremented and the same procedure is followed till all the values of x is reached, by that time you would have covered all the cells (similar to the contant/polyMesh/points file). For the faces however, I have heard that it is first internal and then boundary faces. I think decomposition may also influence this (for parallel simulations where the domain is decomposed into several smaller subdomains). Thanks Last edited by Severus; March 27, 2024 at 12:54. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
| CFD analaysis of Pelton turbine | amodpanthee | CFX | 31 | April 19, 2018 19:02 |
| Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
| Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
| Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |