Defining an observable is a key initial step that must be performed for any adjoint calculation. The observable is the quantity for which sensitivities are sought. Observables can be defined based on flow variables, or as operations on other observables. For a list of the types of observables you can define refer to General Observables and General Operations. You can define multiple observables, but only one observable at a time can be selected for the adjoint sensitivity calculation.
Observables are created and selected in the Adjoint Observables dialog box, which is accessed by clicking in the Design ribbon tab (Adjoint-Based group box). (Figure 35.1: Adjoint Observables Dialog Box).
Design → Adjoint-Based
→ Observable...
For more information, see the following sections:
You can create a new observable by clicking Manage... in the Adjoint Observables dialog box and then Create... in the Manage Adjoint Observables dialog box.
In the Create New Observable dialog box (Figure 35.2: Create New Observable Dialog Box (Observable Types)) you can choose from several observable types and operation types. Various types of observable quantities can be defined and each can be given a name. The available types of observables are described in General Observables.
Select Observable types and pick an observable from the list. Keep the default name, or use the Name field to designate a different name for the observable of interest. Click to create the new observable, or click Cancel to dismiss the dialog box without creating an observable.
You can also combine existing observables in various ways or apply unary operations to create a wide variety of compound observables. The operations that you can apply to existing observables are described in General Operations.
Select Operation types and choose an operation from the list. Keep the default name, or use the Name field to designate a different name for the observable of interest. Click to create the new observable, or click Cancel to dismiss the dialog box without creating an observable.
Once created, you must edit the definition of the new observable (Editing Observable Definitions).
Once an observable is created, it appears in the Observables list. When you select an observable in the Observables list, the Manage Adjoint Observables dialog box changes to expose various properties that can be assigned for the selected observable.
Once the observable properties are defined (Inputs for Observable Types), click Apply to apply the settings and proceed to define other observables, or click in the Manage Adjoint Observables dialog box to apply the settings and close the dialog box. Available observables are described in General Observables.
Note: It is permissible to leave observable definitions incomplete. The Manage Adjoint Observables dialog box can be considered as a workspace for the definition and manipulation of observables. Only those operations with complete definitions will appear in the Adjoint Observables dialog box. Operations with undefined fields, or operations that depend on themselves, will be excluded from the list of usable observables.
Inputs for Observable Types
The inputs for each type of observable are summarized below:
Select the walls that are to contribute to the force of interest in the Wall Zones list.
Define the direction in which the force is to be computed by entering the components of this direction in the X Component, Y Component, and Z Component (for 3D) fields.
For a moment of force observable:
Select the X, Y, and Z (for 3D) components of the Moment Center.
Select the X, Y, and Z (for 3D) components of the Moment Axis.
Select a wall in the Wall Zones list.
Select the X, Y, and Z (for 3D) components of the Swirl Center.
Select the X, Y, and Z (for 3D) components of the Swirl Axis.
Select a fluid in the Fluid Zones list.
For a pressure-drop observable:
Select the inlets and outlets between which the total pressure drop is to be computed using the Inlets and Outlets lists.
For a fixed value observable, perform the following:
Select the Value of the Constant.
For a surface-integral observable:
Select the type of integral from the Integral Type drop-down list. Available integral types are described in General Observables.
Select a Surface and the corresponding Field Variable.
For a volume-integral observable:
Select the type of integral from the Volume Integral Type drop-down list. Available integral types are described in General Observables.
Select the Field Variable of interest. If the chosen field variable is a vector quantity, you will need to specify a Direction along which the field variable will be evaluated.
Under Zones of Integration, select whether to integrate over selected Zones or Integrate over a box.
Select the Zones for integration under Zone Settings or the coordinates of the rectangular (in 2D) or hexahedral (in 3D) integration region under Box Settings.
Select an observable from the Numerator drop-down list to represent the numerator of the ratio.
Select an observable from the Denominator drop-down list to represent the denominator of the ratio.
Select two observables from the corresponding drop-down list that will be used to compute their product.
For a linear combination observable:
Under Linear Combination of powers, select a Constant value.
Select the number of Components.
For each component, select a corresponding Coefficient, an Observable, and a Power.
For an arithmetic average observable:
Select the number of Components.
Select observables from the corresponding Observable lists.
For a mean variance observable:
Select the number of Components.
Select observables from the corresponding Observable lists.
For a unary operation observable:
Select an operation from the drop-down list (see General Observables for a list of available operators).
Select an observable from the corresponding drop-down list upon which the unary operation is to be applied.
You can select which observable to use for the sensitivity calculation in the list of Observable Names.
Only one observable can be used in any one adjoint calculation. In the Adjoint Observables dialog box, the observable that is currently highlighted is the observable that will be used in the sensitivity calculation.
Any observables that have been created but which are missing required inputs will not appear in the list of Observable Names.
Clicking the Evaluate button computes the current value of the selected observable quantity and prints the result in the console window. Clicking the Write... button provides the option to write the result to a named file.
The Sensitivity Orientation determines the sign of the postprocessed sensitivities. For instance, if you select Maximize then changes in the direction of positive sensitivities will increase the value of the observable. A standard rule of thumb can be applied: if you want to improve the solution, then follow the direction of the sensitivity vectors. Another standard rule of thumb can also be applied for postprocessed scalars: if you want to improve the solution, then increase values where the sensitivity is positive and/or decrease values where the sensitivity is negative.