PREP User Guide  PREP Version 9.8.1
Adjoint Process Chain

This page describes the usage of PREP in combination with the adjoint solver of TRACE

Creating Deformed Grids

Deformed grids, which are needed for the computation of sensitivities from an adjoint solution using TRACE, can be generated by PREP with the following steps:

  • Write surface deformations corresponding to an artificial mode (see mapping)
  • Set eigenmode properties (see modify)
  • Perform 3D grid deformation (see deformation)
Example
Create a bump on the blade surface and compute the corresponding deformed grid:
--mapping -cgns TRACE.deformation.cgns --distortion 0. 0.00001 0. 0.0625 0.0 0.0 0.005 1000.0 1000.0 -mn distortion -pf solid_vane_ss solid_vane_ps
--modify -ibpa 0. -mf 0. -mn distortion -cgns TRACE.deformation.cgns
--deformation -cgns TRACE.deformation.cgns -mn distortion -wdg deformedGrid.cgns
Note
Modal frequency and IBPA are necessary for the deformation to work, for use in the sensitivity evaluation they are set to 0.

Adjoint Grid Deformation

To compute sensitivities of a functional with respect to the mesh coordinates on selected solid surfaces, an adjoint mesh deformation (see adjointDeformation) can be applied to the mesh sensitivities computed with TRACE. POST can be used to further process the output, e.g. for visualization.

Example
PREP -cgns TRACE.adjoint.massflow.meshSens.cgns -ad -pf row01Blade_Wall_ps row01Blade_Wall_ss
POST -i TRACE.adjoint.massflow.meshSens.cgns -dB -dim 3 -o surfaceSensitivities.dat