Problem with Cylindrical FFD #2065
Unanswered
LuukvdMark
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You have an example here https://github.com/su2code/SU2/blob/develop/TestCases/deformation/cylindrical_ffd/def_cylindrical.cfg with explanation of how to setup the "corners". |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I'm currently trying to implement a cylindrical FFD box, however, I ran into some problems with the definition of the FFD Box. To explain my problem a bit better I made use of a simplified test case of a simple tube.
My problem is as follows. When I define the cylindrical FFD box with FFD_Degree = 1 for the J_degree everything is fine see included figure (FFDbox_degree_j=1.png). However, I would like to increase the FFD_Degree along this side so I have more control over the deformation on this side. This however causes the FFD box to go towards one side of the circle, see the second included figure (FFDbox_degree_j=2.png). As I was trying to figure out what was happening behind the screens I found this piece of code in CFreeFormDefBox.cpp:
`
void CFreeFormDefBox::SetCart2Cyl_ControlPoints(CConfig *config) {
unsigned short iDegree, jDegree, kDegree;
su2double CartCoord[3];
su2double X_0, Y_0, Z_0, Xbar, Ybar, Zbar;
X_0 = config->GetFFD_Axis(0); Y_0 = config->GetFFD_Axis(1); Z_0 = config->GetFFD_Axis(2);
for (kDegree = 0; kDegree <= nDegree; kDegree++) {
for (jDegree = 0; jDegree <= mDegree; jDegree++) {
for (iDegree = 0; iDegree <= lDegree; iDegree++) {
}
}
`
I'm not familiar with the language, however, I could deduce that this is where the coordinate point of the cartesian FFD box are translated to cylindrical coordinates. Moreover, I thought maybe the code just had some troubles with the 1 extra point along the J-side, as the r and theta for the cylindrical coordinates would be the same due to symmetry. So I tried to define the FFd box with a larger degree along the J-side, however, the same behaviour showed (see FFDbox_degree_j=2.png)
My question: Am I doing something wrong in the definition of my FFD box? If yes, how could I fix this? If not, is there a way to work around this problem?
config_FFD.txt
Beta Was this translation helpful? Give feedback.
All reactions