Skip to content

Commit 2f07048

Browse files
committed
fix the cylindrical FFD to work with the FFD containment check
1 parent 7622b7f commit 2f07048

1 file changed

Lines changed: 37 additions & 20 deletions

File tree

TestCases/deformation/cylindrical_ffd/def_cylindrical.cfg

Lines changed: 37 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,43 @@
99
% %
1010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1111

12+
% -------------------- FREE-FORM DEFORMATION PARAMETERS -----------------------%
13+
%
14+
FFD_TOLERANCE= 1E-10
15+
FFD_ITERATIONS= 1000
16+
% The definition of the box is in cartesian coordinates, the first face
17+
% (first 4 points) is extruded along the x axis to connect it with the
18+
% second face. The x-y plane marks theta = 0 and x-z marks theta = pi/2.
19+
% Angles above pi/2 (negative y coord) are subtracted 2*pi which allows
20+
% creating a ~360 degree box as shown here.
21+
FFD_DEFINITION= (CYLINDER_BOX,\
22+
0.6, -0.1, 1.5,\
23+
0.6, -0.1, 0.5,\
24+
0.6, 0.1, 0.5,\
25+
0.6, 0.1, 1.5,\
26+
-0.6, -0.1, 1.5,\
27+
-0.6, -0.1, 0.5,\
28+
-0.6, 0.1, 0.5,\
29+
-0.6, 0.1, 1.5)
30+
% Abovew We start by changing Z, which changes the radius and thus the cylindrical
31+
% "i" is the radius, then we change Y, which changes the angle and thus "j" is for
32+
% theta. Finally we change X and thus "k" is for the axial coordinate.
33+
FFD_DEGREE= (1, 9, 4)
34+
FFD_CONTINUITY= 1ST_DERIVATIVE
35+
FFD_COORD_SYSTEM= CYLINDRICAL
36+
% This is the origin of axis, the direction is always x.
37+
FFD_AXIS= (0.0, 0.0, 0.0)
38+
39+
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------%
40+
%
41+
DV_KIND= FFD_CONTROL_POINT
42+
DV_MARKER= ( CYLINDER )
43+
DV_PARAM= ( CYLINDER_BOX, 0, 3, 2, 1.0, 0.0, 0.0 )
44+
DV_VALUE= 1.0
45+
1246
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
1347
%
14-
SOLVER= EULER
48+
SOLVER= EULER
1549
MATH_PROBLEM= DIRECT
1650
RESTART_SOL= NO
1751
SYSTEM_MEASUREMENTS= US
@@ -22,7 +56,7 @@ MACH_NUMBER= 0.8
2256
AOA= 0.0
2357
SIDESLIP_ANGLE= 0.0
2458
FREESTREAM_TEMPERATURE= 518.67
25-
FREESTREAM_PRESSURE= 2116.216
59+
FREESTREAM_PRESSURE= 2116.216
2660

2761
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
2862
%
@@ -46,7 +80,7 @@ MARKER_DESIGNING = ( CYLINDER )
4680

4781
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
4882
%
49-
NUM_METHOD_GRAD= GREEN_GAUSS
83+
NUM_METHOD_GRAD= GREEN_GAUSS
5084
CFL_NUMBER= 1.0
5185
CFL_ADAPT= NO
5286
CFL_ADAPT_PARAM= ( 1.0, 1.0, 1.0, 10.0 )
@@ -72,13 +106,6 @@ MUSCL_FLOW= YES
72106
SLOPE_LIMITER_FLOW= VENKATAKRISHNAN
73107
TIME_DISCRE_FLOW= EULER_IMPLICIT
74108

75-
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------%
76-
%
77-
DV_KIND= FFD_CONTROL_POINT
78-
DV_MARKER= ( CYLINDER )
79-
DV_PARAM= ( CYLINDER_BOX, 0, 3, 2, 1.0, 0.0, 0.0 )
80-
DV_VALUE= 1.0
81-
82109
% ------------------------ GRID DEFORMATION PARAMETERS ------------------------%
83110
%
84111
DEFORM_LINEAR_SOLVER= FGMRES
@@ -88,16 +115,6 @@ DEFORM_CONSOLE_OUTPUT= YES
88115
DEFORM_STIFFNESS_TYPE= INVERSE_VOLUME
89116
DEFORM_LINEAR_SOLVER_ERROR= 1E-14
90117

91-
% -------------------- FREE-FORM DEFORMATION PARAMETERS -----------------------%
92-
%
93-
FFD_TOLERANCE= 1E-10
94-
FFD_ITERATIONS= 1000
95-
FFD_DEFINITION= (CYLINDER_BOX, -0.6, -0.1, 1.5, -0.6, -0.1, 0.5, -0.6, 0.1, 0.5, -0.6, 0.1, 1.5, 0.6, -0.1, 1.5, 0.6, -0.1, 0.5, 0.6, 0.1, 0.5, 0.6, 0.1, 1.5)
96-
FFD_DEGREE= (1, 9, 4)
97-
FFD_CONTINUITY= 1ST_DERIVATIVE
98-
FFD_COORD_SYSTEM= CYLINDRICAL
99-
FFD_AXIS= (0.0, 0.0, 0.0)
100-
101118
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
102119
%
103120
ITER= 5

0 commit comments

Comments
 (0)