|
[Sponsors] |
January 14, 2010, 05:43 |
How does DEFINE_DPM_SOURCE work?
|
#1 |
Senior Member
Sebastian Gatzka
Join Date: Mar 2009
Location: Frankfurt, Germany
Posts: 729
Rep Power: 20 |
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); } 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!" |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 11:36 |
Why do the Plant library cases don't work? | Alumna | Phoenics | 6 | June 22, 2004 13:08 |
why my In-Form doesn't work? | green | Phoenics | 2 | May 27, 2004 22:03 |
Help! Subroutine can't work! | Miko | CFX | 6 | June 4, 2003 22:04 |