CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

How does DEFINE_DPM_SOURCE work?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 14, 2010, 05:43
Default How does DEFINE_DPM_SOURCE work?
  #1
Senior Member
 
sega's Avatar
 
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 11
sega is on a distinguished road
I'm trying to learn an understand the source term in Discrete-Phase-Model (DPM).

I have read the example from the UDF-Manual:

Code:
DEFINE_DPM_SOURCE(dpm_source,c,t,S,strength,p)
{
real mp_dot;

Material *sp = P_MATERIAL(p);
/* mp_dot is the (positive) mass source to the continuous phase */
/* (Difference in mass between entry and exit from cell) */
/* multiplied by strength (Number of particles/s in stream) */
mp_dot = (P_MASS0(p) - P_MASS(p)) * strength;
C_DPMS_YI(c,t,0) += mp_dot*dpm_relax;
C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*
MATERIAL_PROP(sp,PROP_Cp)*(C_T(c,t)-298.15);
C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*
MATERIAL_PROP(sp,PROP_latent_heat);
}
But I can't see where the actual source termin is returned or assigned to the equations.

Which one is the code to actully return the caluclated value (of mp_dot in this example).
__________________
Schrödingers wife: "What did you do to the cat? It's half dead!"
sega 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
work related to brake study of a vehical aero CD-adapco 3 November 23, 2006 08:43
cfx+Fortran cannot work with 2 CPUs on windows PC lee CFX 1 May 8, 2006 10:36
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 12:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 21:03
Help! Subroutine can't work! Miko CFX 6 June 4, 2003 21:04


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