|
[Sponsors] |
Accessing the first surface center near the boundary |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Yujuan Luo
Join Date: Jul 2019
Posts: 21
Rep Power: 6 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Yujuan Luo
Join Date: Jul 2019
Posts: 21
Rep Power: 6 ![]() |
Quote:
Hi Wenyuan, Thanks a lot for your suggestions. I'll have a try. |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Chris DeGroot
Join Date: Nov 2011
Location: Canada
Posts: 414
Rep Power: 17 ![]() |
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).
|
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about adaptive timestepping | Guille1811 | CFX | 25 | November 12, 2017 17:38 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 04:39 |
domain imbalance for enrgy equation | happy | CFX | 14 | September 6, 2012 01:54 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 04:05 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 15:55 |