|
[Sponsors] |
Accessing the first surface center near the boundary |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 31, 2020, 12:51 |
Accessing the first surface center near the boundary
|
#1 |
New Member
Yujuan Luo
Join Date: Jul 2019
Posts: 21
Rep Power: 7 |
Hi all,
I know that .patchInternalField() can be used to access the first cell center near the boundary. Now I want to access the first surface center near the boundary (the surface center which is in symmetry with the boundary point regarding to the first cell center near the boundary), is there any functions like patchInternalField, or what else should I do? |
|
August 4, 2020, 10:37 |
|
#2 |
New Member
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 9 |
Hi Yujuan,
I don't think such a built-in function exists. Since "the first surface" is simply not defined in a general polyhedral framework like OpenFOAM. For instance, how do you define the first surface of a tetrahedron adjacent to a patch? According to your description, you are dealing with some special types of cells. In this case, you need to write your own code to find that surface, which is not difficult. |
|
August 14, 2020, 11:31 |
|
#3 | |
New Member
Yujuan Luo
Join Date: Jul 2019
Posts: 21
Rep Power: 7 |
Quote:
Hi Wenyuan, Thanks a lot for your suggestions. I'll have a try. |
||
August 14, 2020, 11:40 |
|
#4 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 18 |
I would suggest looping through the cells returned by patchInternalField and then writing code to test each of the faces of those cells according to your criterion (which seems quite specialized to a particular application).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 18:38 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
domain imbalance for enrgy equation | happy | CFX | 14 | September 6, 2012 02:54 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |