In this study, an adjoint-based hp-adaptation algorithm has been developed within a Petrov-Galerkin finite-element method. The developed mesh adaptation algorithm is able to perform non-conformal mesh adaptations. To consistently account for hanging nodes, the constrained approximation method has been utilized. Hierarchical basis functions have been employed to facilitate the implementation of the constrained approximation.
The methodology has been demonstrated on numerous cases using the Euler and Reynolds Average Navier-Stokes (RANS) equations, equipped with a modified SpalartAllmaras (SA) turbulence model. Also, a PDE-based artificial viscosity has been added to the governing equations, to stabilize the solution in the vicinity of shock waves. For accurate representation of the geometric surfaces, high-order curved boundary meshes have been generated and the interior meshes have been deformed through the solution of a modified linear elasticity equation. Fully implicit linearization has been used to advance the solution toward a steady-state. Dirichlet boundary conditions have been imposed weakly and the functional outputs have been modified according to the weak boundary conditions in order to provide a smooth adjoint solution near the boundaries.To accelerate the error reduction in presence of singularity points, an enhanced hrefinement, based on solution's smoothness, has been used. Numerical results illustrate consistent accuracy improvement of the functional outputs for both h-and hpadaptation, and also capability enhancement in capturing complex viscous effects such as shock-wave/turbulent boundary layer interaction.