Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

How to resolve “subscript requires array or pointer type” error

    • scholar
      Subscriber

      Hello everyone,

      I am getting a "subscript requires array or pointer type" error in the red lines of the code attached.

      Could anyone suggest how to resolve this error?

    • Rob
      Ansys Employee
      Compare with the manual entry, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v211/en/flu_udf/flu_udf_sec_define_vr_rate.html I suspect INDEX_PHASE_C0 and INDEX_SPECIES_C0 aren't recognised. nDefining values as zero and then calculating them isn't necessary either. We'd only tend to set a value after a calculation using an IF statement if the calculation returns an invalid number: typically to prevent a rate or property being less than zero. n
Viewing 1 reply thread
  • You must be logged in to reply to this topic.