-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2124 from Zcaic/add-cst
Fix CST parameterization method
- Loading branch information
Showing
6 changed files
with
162 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,7 @@ VivaanKhatri | |
Wally Maier | ||
Y. Chandukrishna | ||
Zan Xu | ||
Zcaic | ||
aaronyicongfu | ||
aeroamit | ||
anilvar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
run ```SU2_DEF naca0012.cfg``` or ```mpiexec -n 4 SU2_DEF naca0012.cfg``` <br> | ||
the **CST** deformation result as below: <br> | ||
![cst result](Mesh%20Deformation%20Comparison.png "mesh") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------% | ||
% | ||
% Euler wall boundary marker(s) (NONE = no marker) | ||
% Implementation identical to MARKER_SYM. | ||
MARKER_EULER= ( airfoil ) | ||
% Far-field boundary marker(s) (NONE = no marker) | ||
MARKER_FAR= ( farfield ) | ||
|
||
|
||
|
||
% ----------------------- GEOMETRY EVALUATION PARAMETERS ----------------------% | ||
% | ||
% Marker(s) of the surface where geometrical based function will be evaluated | ||
GEO_MARKER= ( airfoil ) | ||
% | ||
% Description of the geometry to be analyzed (AIRFOIL, WING) | ||
GEO_DESCRIPTION= AIRFOIL | ||
% | ||
% Coordinate of the stations to be analyzed | ||
% GEO_LOCATION_STATIONS= (0.0, 0.5, 1.0) | ||
% | ||
% Geometrical bounds (Y coordinate) for the wing geometry analysis or | ||
% fuselage evaluation (X coordinate) | ||
% GEO_BOUNDS= (1.5, 3.5) | ||
% | ||
% Plot loads and Cp distributions on each airfoil section | ||
GEO_PLOT_STATIONS= NO | ||
% | ||
% Number of section cuts to make when calculating wing geometry | ||
GEO_NUMBER_STATIONS= 25 | ||
% | ||
% Geometrical evaluation mode (FUNCTION, GRADIENT) | ||
GEO_MODE= FUNCTION | ||
|
||
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------% | ||
% | ||
% Kind of deformation (NO_DEFORMATION, SCALE_GRID, TRANSLATE_GRID, ROTATE_GRID, | ||
% FFD_SETTING, FFD_NACELLE, | ||
% FFD_CONTROL_POINT, FFD_CAMBER, FFD_THICKNESS, FFD_TWIST | ||
% FFD_CONTROL_POINT_2D, FFD_CAMBER_2D, FFD_THICKNESS_2D, | ||
% HICKS_HENNE, SURFACE_BUMP, SURFACE_FILE) | ||
DV_KIND= CST,CST | ||
% | ||
% Marker of the surface in which we are going apply the shape deformation | ||
DV_MARKER= ( airfoil ) | ||
% | ||
% Parameters of the shape deformation | ||
% - NO_DEFORMATION ( 1.0 ) | ||
% - TRANSLATE_GRID ( x_Disp, y_Disp, z_Disp ), as a unit vector | ||
% - ROTATE_GRID ( x_Orig, y_Orig, z_Orig, x_End, y_End, z_End ) axis, DV_VALUE in deg. | ||
% - SCALE_GRID ( 1.0 ) | ||
% - ANGLE_OF_ATTACK ( 1.0 ) | ||
% - FFD_SETTING ( 1.0 ) | ||
% - FFD_CONTROL_POINT ( FFD_BoxTag, i_Ind, j_Ind, k_Ind, x_Disp, y_Disp, z_Disp ) | ||
% - FFD_NACELLE ( FFD_BoxTag, rho_Ind, theta_Ind, phi_Ind, rho_Disp, phi_Disp ) | ||
% - FFD_GULL ( FFD_BoxTag, j_Ind ) | ||
% - FFD_ANGLE_OF_ATTACK ( FFD_BoxTag, 1.0 ) | ||
% - FFD_CAMBER ( FFD_BoxTag, i_Ind, j_Ind ) | ||
% - FFD_THICKNESS ( FFD_BoxTag, i_Ind, j_Ind ) | ||
% - FFD_TWIST ( FFD_BoxTag, j_Ind, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End ) | ||
% - FFD_CONTROL_POINT_2D ( FFD_BoxTag, i_Ind, j_Ind, x_Disp, y_Disp ) | ||
% - FFD_CAMBER_2D ( FFD_BoxTag, i_Ind ) | ||
% - FFD_THICKNESS_2D ( FFD_BoxTag, i_Ind ) | ||
% - HICKS_HENNE ( Lower Surface (0)/Upper Surface (1)/Only one Surface (2), x_Loc ) | ||
% - SURFACE_BUMP ( x_Start, x_End, x_Loc ) | ||
DV_PARAM= (0, 5, 7);(1, 5, 10) | ||
% | ||
% Value of the shape deformation | ||
DV_VALUE= -0.5,0.5 | ||
|
||
% ------------------------- INPUT/OUTPUT FILE INFORMATION --------------------------% | ||
% | ||
DEFORM_CONSOLE_OUTPUT= YES | ||
% | ||
% Mesh input file | ||
MESH_FILENAME= ../naca0012/mesh_NACA0012_inv.su2 | ||
% | ||
% Mesh input file format (SU2, CGNS) | ||
MESH_FORMAT= SU2 | ||
% | ||
% Mesh output file | ||
MESH_OUT_FILENAME= mesh_out.su2 | ||
% | ||
% Restart flow input file | ||
SOLUTION_FILENAME= solution_flow.dat | ||
% | ||
% Restart adjoint input file | ||
SOLUTION_ADJ_FILENAME= solution_adj.dat | ||
% | ||
% Output tabular file format (TECPLOT, CSV) | ||
TABULAR_FORMAT= CSV | ||
% | ||
% Files to output | ||
% Possible formats : (TECPLOT_ASCII, TECPLOT, SURFACE_TECPLOT_ASCII, | ||
% SURFACE_TECPLOT, CSV, SURFACE_CSV, PARAVIEW_ASCII, PARAVIEW_LEGACY, SURFACE_PARAVIEW_ASCII, | ||
% SURFACE_PARAVIEW_LEGACY, PARAVIEW, SURFACE_PARAVIEW, RESTART_ASCII, RESTART, CGNS, SURFACE_CGNS, STL_ASCII, STL_BINARY) | ||
% default : (RESTART, PARAVIEW, SURFACE_PARAVIEW) | ||
OUTPUT_FILES= (RESTART, PARAVIEW_MULTIBLOCK) | ||
% | ||
% Output file convergence history (w/o extension) | ||
CONV_FILENAME= history | ||
% | ||
% Output file with the forces breakdown | ||
BREAKDOWN_FILENAME= forces_breakdown.dat | ||
% | ||
% Output file restart flow | ||
RESTART_FILENAME= restart_flow.dat | ||
% | ||
% Output file restart adjoint | ||
RESTART_ADJ_FILENAME= restart_adj.dat | ||
% | ||
% Output file flow (w/o extension) variables | ||
VOLUME_FILENAME= flow | ||
% | ||
% Output file adjoint (w/o extension) variables | ||
VOLUME_ADJ_FILENAME= adjoint | ||
% | ||
% Output Objective function | ||
VALUE_OBJFUNC_FILENAME= of_eval.dat | ||
% | ||
% Output objective function gradient (using continuous adjoint) | ||
GRAD_OBJFUNC_FILENAME= of_grad.dat | ||
% | ||
% Output file surface flow coefficient (w/o extension) | ||
SURFACE_FILENAME= surface_flow | ||
% | ||
% Output file surface adjoint coefficient (w/o extension) | ||
SURFACE_ADJ_FILENAME= surface_adjoint | ||
% | ||
% Read binary restart files (YES, NO) | ||
READ_BINARY_RESTART= YES | ||
% | ||
% Reorient elements based on potential negative volumes (YES/NO) | ||
REORIENT_ELEMENTS= YES | ||
% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters