Fluids

Fluids

What are the reasons for Divergence due to back flow in TFM simulation?

    • Taha
      Subscriber

      I have simulated TFM simulation and it runs fine but when I add UDF for granular viscosity, I get divergence error due to back flow after certain time steps? What are the possible reasons for this and How to modify UDF to avoid divergence (floating point error)?


      Mesh Quality:


      Minimum Orthogonal Quality = 7.12847e-01


      Maximum Ortho Skew = 2.87153e-01


       


      Maximum Aspect Ratio = 3.49884e+00

    • DrAmine
      Ansys Employee

      You can try to debug why by using the UDF you end up with divergence. What is in the code included which is not provided by Standard Fluent models for granular viscosity?

    • Taha
      Subscriber

      I have already used this UDF in another case and its working fine. Also i have used this case without granular viscosity UDF and its working fine. Now problem is that I am not able to run this case with UDF.


      so in short combination of UDF and case (in consideration) is not working

    • DrAmine
      Ansys Employee

      Okay. Perhaps you need to be more Conservative at the beginning of the run (time step size, URF's) and store some UDMI from UDF to see if they are some under/overshoots.

    • Rob
      Ansys Employee

      If the model runs for a time then fails, run the model until near the failure point and have a look at the flow field. You're looking for weird results, and excessive velocity/pressure spikes. If you're using a UDF I'd also check what the solver thinks granular viscosity is. 

    • Taha
      Subscriber

      This is the UDF. Kindly help me and let me know what is the the real problem.


      https://mega.nz/#!PhggBQYQ!iCdl0U32hHwje4-NL11kB5OMyMXZS1-uDPe1gXMd_Mk

    • DrAmine
      Ansys Employee

      Please check as rwoolhou suggested what the solver thinks about the granular viscosity. You can post a screenshot of the UDF as I won't hit the link you shared here. 

    • Taha
      Subscriber

      Granular Viscosity UDF

Viewing 7 reply threads
  • You must be logged in to reply to this topic.