Adjoint and Gradient

Generated from SU2 commit 6b54b78464 on 2026-10-23. Do not edit this page. Edit the comment above the option in Common/src/CConfig.cpp instead.

LIMIT_ADJFLOW

Limit value for the adjoint variable.

MG_ADJFLOW

Multigrid with the adjoint problem. Defualt: YES

More in config_template.cfg: Use multigrid in the adjoint problem (NO, YES)

OBJECTIVE_WEIGHT

Adjoint problem boundary condition weights. Applies scaling factor to objective(s)

More in config_template.cfg: List of weighting values when using more than one OBJECTIVE_FUNCTION. Separate by commas and match with MARKER_MONITORING.

OBJECTIVE_FUNCTION

Adjoint problem boundary condition

More in config_template.cfg: Objective function in gradient evaluation (DRAG, LIFT, SIDEFORCE, MOMENT_X, MOMENT_Y, MOMENT_Z, EFFICIENCY, BUFFET, EQUIVALENT_AREA, NEARFIELD_PRESSURE, FORCE_X, FORCE_Y, FORCE_Z, THRUST, TORQUE, TOTAL_HEATFLUX, CUSTOM_OBJFUNC MAXIMUM_HEATFLUX, INVERSE_DESIGN_PRESSURE, INVERSE_DESIGN_HEATFLUX, SURFACE_TOTAL_PRESSURE, SURFACE_MASSFLOW, SURFACE_STATIC_PRESSURE, SURFACE_MACH) For a weighted sum of objectives: separate by commas, add OBJECTIVE_WEIGHT and MARKER_MONITORING in matching order.

CUSTOM_OBJFUNC

User-provided definition of a custom objective function.

More in config_template.cfg: Expression used when “OBJECTIVE_FUNCTION= CUSTOM_OBJFUNC”, any history/screen output can be used together with common math functions (sqrt, cos, exp, etc.). This can be used for constraint aggregation (as below) or to compute something SU2 does not, see TestCases/user_defined_functions/.

CUSTOM_OUTPUTS

User-provided definitions for custom output.

More in config_template.cfg: User defined functions available on screen and history output. See TestCases/user_defined_functions/.

DCD_DCL_VALUE

parameter for the definition of a complex objective function

DCMX_DCL_VALUE

parameter for the definition of a complex objective function

DCMY_DCL_VALUE

parameter for the definition of a complex objective function

DCMZ_DCL_VALUE

parameter for the definition of a complex objective function

GEO_BOUNDS

Definition of the airfoil section

More in config_template.cfg: Geometrical bounds (Y coordinate) for the wing geometry analysis or fuselage evaluation (X coordinate)

GEO_DESCRIPTION

Identify the body to slice

More in config_template.cfg: Description of the geometry to be analyzed (AIRFOIL, WING)

GEO_WATERLINE_LOCATION

Z location of the waterline

  • Type: real number
  • Default: 0.0
  • In config_template.cfg: GEO_WATERLINE_LOCATION= 0.0
  • Code: CConfig.cpp line 2275

GEO_NUMBER_STATIONS

Number of section cuts to make when calculating internal volume

More in config_template.cfg: Number of section cuts to make when calculating wing geometry

GEO_LOCATION_STATIONS

Definition of the airfoil sections

More in config_template.cfg: Coordinate of the stations to be analyzed

GEO_NACELLE_LOCATION

Definition of the nacelle location (higlite coordinates, tilt angle, toe angle)

  • Type: fixed-size list of real numbers
  • Default: Not extracted; see the code.
  • In config_template.cfg: GEO_NACELLE_LOCATION= (0.0, 0.0, 0.0, 0.0, 0.0)
  • Code: CConfig.cpp line 2283

GEO_PLOT_STATIONS

Output sectional forces for specified markers.

More in config_template.cfg: Plot loads and Cp distributions on each airfoil section

GEO_MODE

Mode of the GDC code (analysis, or gradient)

More in config_template.cfg: Geometrical evaluation mode (FUNCTION, GRADIENT)

DRAG_IN_SONICBOOM

Drag weight in sonic boom Objective Function (from 0.0 to 1.0)

SENS_SMOOTHING

Sensitivity smoothing

  • Type: one of the values below
  • Values: NONE, SOBOLEV, BIGRID
  • Default: NONE
  • In config_template.cfg: SENS_SMOOTHING= NONE
  • Used in 6 test case files, for example: turb_ONERAM6.cfg (NONE)
  • Code: CConfig.cpp line 2292

FROZEN_VISC_CONT

Continuous Adjoint frozen viscosity

FROZEN_VISC_DISC

Discrete Adjoint frozen viscosity

More in config_template.cfg: Frozen the turbulent viscosity in the discrete adjoint formulation (NO, YES)

FROZEN_LIMITER_DISC

Discrete Adjoint frozen limiter

More in config_template.cfg: Frozen the slope limiter in the discrete adjoint formulation (NO, YES)

INCONSISTENT_DISC

Use an inconsistent (primal/dual) discrete adjoint formulation

More in config_template.cfg: Use an inconsistent spatial integration (primal-dual) in the discrete adjoint formulation. The AD will use the numerical methods in the ADJOINT-FLOW NUMERICAL METHOD DEFINITION section (NO, YES)

FIX_AZIMUTHAL_LINE

Fix an azimuthal line due to misalignments of the near-field (from config_template.cfg)

  • Type: real number
  • Default: 90.0
  • In config_template.cfg: FIX_AZIMUTHAL_LINE= 90.0
  • Used in 1 test case file, for example: NACA64206.cfg (90.0)
  • Code: CConfig.cpp line 2302

SENS_REMOVE_SHARP

  • Remove sharp edges from the sensitivity evaluation Format: SENS_REMOVE_SHARP = YES

More in config_template.cfg: Remove sharp edges from the sensitivity evaluation (NO, YES)

REORIENT_ELEMENTS

Automatically reorient elements that seem flipped

More in config_template.cfg: Reorient elements based on potential negative volumes (YES/NO)



Improve this page