|
[Sponsors] |
August 9, 2024, 06:35 |
SU2 source code problem
|
#1 |
New Member
Jimin.Zhang
Join Date: May 2024
Posts: 8
Rep Power: 2 |
Hello community:
I've noticed that in SU2, data transfer between grids in multi-zone problems only occurs when the two grids share a common boundary. I want to implement a way to transfer information even when there is no shared boundary, which is why I am reading this part of the code. While reviewing the Interface source code, I noticed that during the Broadcast process, the boundary markers markDonor and markTarget for the Donor and Target are first obtained. This utilizes the FindInterfaceMarker function within the CConfig class.(Figure1) In the definition of this function, there is a principle I don't understand, especially regarding "SideA = Marker_ZoneInterface[2 * iInterface]" and "sideB = Marker_ZoneInterface[2 * iInterface + 1]". I comprehend the latter part of the statement where a judgment is made based on whether "tag = SideA or sideB", and the returned iMarker should belong to either the Donor or the Target and is then stored. However, I am unclear about why SideA and SideB are defined in this manner. And I would like to inquire further about the conditional statement "if (!CInterpolator::CheckInterfaceBoundary(markDonor, markTarget)) continue". (Figure2)My understanding is that if two zones share a boundary, then the markers of that boundary will be present in all processes. Otherwise, it indicates that the two zones do not share a boundary. If there is no shared boundary, the rest of the loop iteration will not be executed. I would like to ask, if I directly modify this conditional statement, can I also allow the meshes of two zones that do not share a boundary to be processed as well? Since my grasp of CFD and programming is relatively weak, I have these questions. The question might be a bit lengthy, thank you for your patient reading. Any suggestions for my research are welcome. Thank you for your valuable answers. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 05:37 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 07:42 |
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error | FerdiFuchs | OpenFOAM Community Contributions | 27 | April 16, 2014 16:14 |
[swak4Foam] swak4Foam-groovyBC build problem | zxj160 | OpenFOAM Community Contributions | 18 | July 30, 2013 14:14 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |