Fluids

Fluids

memory issue after using UDF

    • Touq
      Subscriber
      Hi,I'm currying out a combustion simulation using PDF approach and intending to modify the calculation of a parameter via UDF. In this calculation, the species mole fraction is required. Therefore, I needed to access the look-up table to obtain the species mole fractions which requires to interpolate the PDF variables using 'Interpolate_multi_table' macro to then get the species mole fractions from 'for loop'. nThe code was successfully compiled and the iterations of the simulation started without getting any error. After a couple of time steps, the memory of my computer got fully used by Fluent and then the simulation stopped. However, when I removed the PDF interpolation and replaced the species mole fractions with fixed numbers in the calculations, the simulation continued and Fluent used roughly 10% of my computer's memory.Can you please guide to overcome this issue especially the memory of my system is 120 GB? n
    • Konstantin
      Ansys Employee
      Hello Touq,nThis is an internal function which we unfortunately cannot comment on in this forum. My general suggestion is to use built in product capabilities which can address most reacting flow applications.n
    • YasserSelima
      Subscriber
      Try to clear variables from memory at the end of a the function. This might be helpfulhttp://www.cplusplus.com/forum/beginner/82290/n
Viewing 2 reply threads
  • You must be logged in to reply to this topic.