-
-
April 7, 2020 at 6:41 pm
zeeshe
SubscriberI, Muhammad Zeeshan, is working on Water Spray System and its application in Urban Physics.  I have finalized the UDF (Attached) in light of FLUENT Guideline for dpm mass exchange source as given in figure Â
 Kindly go through it and highlight the necessary emendations if any.Â
Actually I have been stuck at this point. Plz help me. Kindly send some reference DPM Source and scaler UDF. My udf as per The fluent manual referred UDF is not working.Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Waiting for your kind response
 -
April 7, 2020 at 6:42 pm
zeeshe
Subscriber#include "udf.h"
#include "dpm.h"
#define P_RHO(p) 998;
#define rhoa 1.125;
#define CP_AIR 100643;
#define MU_AIR .000017894;
#define pi 3.1416;
#define alpham .3; //*As defined during dpm setup*/
#define K_AIR .0242;
#define Mv=18.02;
#define Ma=28.57;
#define dmean=.000007;
#define P=101325; //P=local absolute pressure as defined in material property;
#define mp_dot=.021Â ;//as defined in injection parameter
#define alpham=.3;
#define Tref=298.4;
#define Tbp=373;Â
Â
DEFINE_DPM_SOURCE(dpm_source,c,t,S,strength,p) //function type incompatible with previous definition (function returning void instead of float)
{
real mp_dot0;
real mp0= P_INIT_MASS(p);
real mp = P_MASS(p);
/* get Cell and thread from particle structure*/
//cell_t c = P_CELL(p);
//Thread *t = P_CELL_THREAD(p);
//real D = DPM_BINARY_DIFFUSIVITY(p,m,t); /* diffusion coefficient */
{
real P_DIAM(p) = pow(6.0 * P_MASS(p) / (P_RHO(p) * M_PI), 1./3.); //* real Dp = DPM_DIAM_FROM_VOL(mp / P_RHO(p)); /* particle diameter */
mp0 = (pi/6)*P_RHO(p)*pow(dmean, 3.0);
mp = (pi/6)*P_RHO(p)*pow(P_DIAM(p), 3.0);
Delmp = mp*alpham;
mp_dot0=mp0*strength;
S->mass = delmp*mp_dot0/mp0;
}
-
April 8, 2020 at 5:24 am
DrAmine
Ansys Employeethere is an example in the customization manual. -
April 8, 2020 at 5:25 am
DrAmine
Ansys EmployeeTo change the mass without any interaction you should not change NY source. -
April 8, 2020 at 3:39 pm
zeeshe
SubscriberDear Abenhadj
I am considering TWO WAY COUPLING between continuous and discrete phase for which the following are the exchange sources:
I just wanted to confirm whether these coupling sources have to be implemented via UDF or these first have to be calculated from ANSYS Simulation and then applied these sources values in next iteration/simulation.Â
Waiting for your kind response.Â
BRÂ
Zeeshan
-
April 8, 2020 at 5:08 pm
DrAmine
Ansys EmployeeI meant mass and latent heat transfer with the continuous phase. Dpm source udf is meant for that. -
April 8, 2020 at 6:02 pm
zeeshe
SubscriberDear Abenhadj
Ok I got it. That ok.
Please confirm one more thing.Â
I am considering TWO WAY COUPLING between continuous and discrete phase using the exchange sources.Â
I just wanted to confirm whether these coupling sources have to be implemented via UDF?
or these first have to be calculated from ANSYS Simulation and then applied these sources values in next iteration/simulation?
Waiting for your kind response.Â
BRÂ
Zeeshan
-
- The topic ‘DPM MASS SOURCE’ is closed to new replies.
-
5834
-
1906
-
1420
-
1305
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.