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

Question about DEFINE_DPM_LAW

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ZJX

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2014, 09:54
Lightbulb Question about DEFINE_DPM_LAW
  #1
ZJX
New Member
 
Jianxin Zhang
Join Date: Apr 2014
Posts: 1
Rep Power: 0
ZJX is on a distinguished road
Hello:
everyone, I'm simulating the combustion of black liquor, some chracters of black liquor are different from which defined in Fluent,so I must use DEFINE_DPM_LAW to do some modification on the original one. my modification is based on the following example:
/************************************************** ********************
UDF that models a custom law for evaporation swelling of particles
************************************************** *********************/
#include "udf.h"
DEFINE_DPM_LAW(Evapor_Swelling_Law,p,ci)
{
real swelling_coeff = 1.1;
/* first, call standard evaporation routine to calculate
the mass and heat transfer */
VaporizationLaw(p);
/* compute new particle diameter and density */
P_DIAM(p) = P_INIT_DIAM(p)*(1. + (swelling_coeff - 1.)*
(P_INIT_MASS(p)-P_MASS(p))/(DPM_VOLATILE_FRACTION(p)*P_INIT_MASS(p)));
P_RHO(p) = P_MASS(p) / (3.14159*P_DIAM(p)*P_DIAM(p)*P_DIAM(p)/6);
P_RHO(p) = MAX(0.1, MIN(1e5, P_RHO(p)));
}
this UDF call vaporizationlaw first,I think the vaporizationlaw will calculate the changes of temperature、diameter and mass of particle, then the following program will calculate another temperature、diameter and mass of particle, the last one will overwrites the previous data.In order to test if my idea is correct,I wrote the following UDF:
#include 'UDF.h'
#include 'dpm.h'
DEFINE_DPM_LAW(Surface_Combustion,p,ci)
{
SurfaceCombustionLaw(p);
}
I used this UDF to replace the 'Surface Combustion' in the custom law,I think I made nothing change on this law,so the simulation results should not changed,but it proved that I was wrong, the Fluent didn't calculte the reaction that take place during surface combustion.
I was so depressed,I don't know what 'SurfaceCombustionLaw' calculated,so can anybody give some suggestion to me?

thanks
ballisticme likes this.
ZJX is offline   Reply With Quote

Reply

Tags
define_dpm_law, udf


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
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 11:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 14:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 16:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 05:37
Philosophical CFD question Richard Howe Main CFD Forum 14 June 17, 2001 15:41


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