-
-
April 23, 2020 at 12:31 pm
Jeroen
SubscriberHi,
Â
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
-
April 23, 2020 at 2:25 pm
DrAmine
Ansys EmployeeAre you working with pdf based combustion model or just using species model?
-
April 23, 2020 at 2:30 pm
Jeroen
SubscriberIm am just using a species model, no combustion involved here
-
April 23, 2020 at 3:58 pm
Rob
Forum ModeratorThen have a look for the species macros, the pdf ones you're using relate to a combustion model.Â
-
April 24, 2020 at 10:11 am
Jeroen
SubscriberI 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
-
April 24, 2020 at 10:46 am
DrAmine
Ansys EmployeeThe example in the manual does cover it.
-
- The topic ‘Pdf_XY and Pdf_Yi’ is closed to new replies.
-
3522
-
1057
-
1052
-
1017
-
947
© 2025 Copyright ANSYS, Inc. All rights reserved.