Reacting Flows

Reacting Flows

How to calculate second derivative of a flow variable in a UDF?

    • FAQFAQ
      Participant

      Second derivatives are not stored, but a gradient of a variable, e. g. C_T_G can be stored in a user-defined scalar C_USDI, and then gradient of C_USDI can be calculated by C_USDI_G, thus giving the second derivative data Temp memory must be allocated before manipulating gradient macros, as usual.