CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Define DPM property function in temp

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2016, 15:32
Default Define DPM property function in temp
  #1
New Member
 
Ahmed samy
Join Date: Aug 2014
Posts: 3
Rep Power: 11
Ahmed21 is on a distinguished road
hi
iam trying to write an UDF code to relate a DPM property like density to the particle temperature , but i can't refer to the particle temp like in this example in the manual

#include "udf.h"


DEFINE_PROPERTY(user_vis, cell, thread)

{

real temp, mu;

temp = C_T(cell, thread); /* i mean this line */

{

/* If the temperature is high, use a small, constant viscosity */

if (temp > 288.)
mu = 5.5e-3;

/* Otherwise, use a profile to get higher viscosity values */

else if (temp >= 286. )
mu = 143.2135 - 0.49725 * temp;

else
mu = 1.0;
}
return mu;
}
Ahmed21 is offline   Reply With Quote

Old   March 19, 2016, 19:06
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
C_T(c,t) is a macro for the temperature within a cell and P_T(p) is for the particle temperature.
`e` is offline   Reply With Quote

Old   July 7, 2017, 07:43
Default
  #3
New Member
 
Join Date: Jan 2017
Posts: 25
Rep Power: 9
sewgolam is on a distinguished road
hallo guys,

I want ot change the absorption coefficient of heat particle which is dependent on the temperature of the particle.

can you help me out
how to do it

thanks
sewgolam is offline   Reply With Quote

Old   July 7, 2017, 14:13
Default DPM property
  #4
New Member
 
Join Date: Jan 2017
Posts: 25
Rep Power: 9
sewgolam is on a distinguished road
hallo guys,

i define a UFD for changing the absorption coefficient of the i jected particles in DPM.

DEFINE_DPM_PROPERTY(coal_cp, c, t, p, T)
{
real mp0 = P_INIT_MASS(p);
real mp = P_MASS(p);
real cf = C_DPMS_ABS(c, t);
C_DPMS_ABS(c, t) = 0.62;
Message("update particle mass %g\n", cf);
return 0.62;
}

but when plotting it absorption coeffiecient

graphic - particle track - DPM-absorption coeff
than i get different valeus

do somene what i'm doing wrong
sewgolam is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 21:13
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27


All times are GMT -4. The time now is 09:49.