We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General

General

Why does the adjoint solver fail with a nan-residual?

    • FAQFAQ
      Participant

      If the following adjoint solver residuals are shown: Computing the adjoint for observable myObservable Iter Adjoint-continuity Adjoint-xMom Adjoint-yMom Adjoint-zMom Adjoint-Flowrate Adjoint-energy 1 -nan 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 Invalid arithmetic operations – exiting. ! Adjoint solution is converged then you have probably applied non-constant material properties. Only the density can be defined as either a constant or a compressible ideal gas. All other fluid properties should be defined as constant.