|
[Sponsors] |
March 18, 2016, 16:32 |
Define DPM property function in temp
|
#1 |
New Member
Ahmed samy
Join Date: Aug 2014
Posts: 3
Rep Power: 12 |
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: 892
Rep Power: 18 |
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, 08:43 |
|
#3 |
New Member
Join Date: Jan 2017
Posts: 25
Rep Power: 9 |
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, 15:13 |
DPM property
|
#4 |
New Member
Join Date: Jan 2017
Posts: 25
Rep Power: 9 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
HELP----Surface Reaction UDF | Ashi | Fluent UDF and Scheme Programming | 1 | May 19, 2020 22:13 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |