Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Pdf_XY and Pdf_Yi

    • Jeroen
      Subscriber

      Hi,


       


      I am trying to get the species mass and molar fractions for my continuous gas phase into a UDF for DEFINE_DPM_HEAT_MASS(). According to the manual, this can be done by using the following.


      Pdf_Yi(c, t, n) or Pdf_XY(c,t,x,y)


      In order to use these expressions "pdf_props.h" must be included. Hooking the UDF causes no issues, however upon running my model the simulation crashes when reaching the DPM Iteration. More specifically: it crashes because of these functions.


      I am using Fluent version 19.3. Is there any other way to get these fractions for a species transport model? Or how do i resolve this issue?


       


      Kind regards,


      Jeroen

    • DrAmine
      Ansys Employee

      Are you working with pdf based combustion model or just using species model?

    • Jeroen
      Subscriber

      Im am just using a species model, no combustion involved here

    • Rob
      Forum Moderator

      Then have a look for the species macros, the pdf ones you're using relate to a combustion model. 

    • Jeroen
      Subscriber

      I got it to work by using c->yi[ns]


      previously this did not work because there was an error in my cphase_state_t variable, it should have been:


      cphase_state_t *c = &(tp->cphase[0]);


       


      Thanks for your help

    • DrAmine
      Ansys Employee

      The example in the manual does cover it.

Viewing 5 reply threads
  • The topic ‘Pdf_XY and Pdf_Yi’ is closed to new replies.