# Define DPM property function in temp

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

 March 18, 2016, 16:32 Define DPM property function in temp #1 New Member   Ahmed samy Join Date: Aug 2014 Posts: 3 Rep Power: 5 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; }

 March 19, 2016, 20:06 #2 Senior Member   Join Date: Mar 2015 Posts: 800 Rep Power: 11 C_T(c,t) is a macro for the temperature within a cell and P_T(p) is for the particle temperature.

 July 7, 2017, 07:43 #3 New Member   Join Date: Jan 2017 Posts: 23 Rep Power: 2 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

 July 7, 2017, 14:13 DPM property #4 New Member   Join Date: Jan 2017 Posts: 23 Rep Power: 2 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post immortality OpenFOAM Running, Solving & CFD 11 April 22, 2014 12:32 nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42 immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27 Ashi Fluent UDF and Scheme Programming 0 May 25, 2009 09:39 Christian Main CFD Forum 2 February 27, 2007 07:27

All times are GMT -4. The time now is 16:02.