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

Define DPM property function in temp

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 18, 2016, 16:32
Default Define DPM property function in temp
  #1
New Member
 
Ahmed samy
Join Date: Aug 2014
Posts: 3
Rep Power: 4
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, 20:06
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 800
Rep Power: 11
`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: 20
Rep Power: 2
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: 20
Rep Power: 2
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

Thread Tools
Display Modes

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 On
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 11 April 22, 2014 12:32
non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 0 May 25, 2009 09:39
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


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