CFD Online Logo CFD Online URL
Home > Forums > FLUENT

How does DEFINE_DPM_SOURCE work?

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

LinkBack Thread Tools Display Modes
Old   January 14, 2010, 05:43
Default How does DEFINE_DPM_SOURCE work?
Senior Member
sega's Avatar
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 13
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:

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*
C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*
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


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 Siemens 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 20:45.