|
[Sponsors] |
January 25, 2011, 10:03 |
Evaporation source term:C_DPMS_PDF_1(c,t)
|
#1 |
New Member
tj
Join Date: Aug 2009
Posts: 4
Rep Power: 16 |
In flamelet model, I need the term C_DPMS_PDF_1(c,t) (the evaporation source of the droplets) for UDF. But it cannot be called in 12.1. Does anyone know about this? Thanks!
|
|
January 26, 2011, 02:54 |
|
#2 |
Member
Nikolopoulos Aristeidis
Join Date: Jan 2011
Location: Athens, Greece
Posts: 62
Rep Power: 15 |
I will not solve your problem but maybe this will give you a hint.
I used to work with Lagrangian combusting particles. For some reasons i wrote in UDFs the whole DPM laws (including evaporation). In former versions of Fluent they had defined commands like C_DPMS_PDF_1(c,t) but now i think they don't work. For sure there is another way! For exapmple: #define C_DPMS_ENERGY(c,t) C_STORAGE_R(c,t,SV_DPMS_ENERGY) So C_DPMS_ENERGY(c,t) doesn't work? Use C_STORAGE_R(c,t,SV_DPMS_ENERGY) I don't know the formula for C_DPMS_PDF_1(c,t). You should check the source codes (header files) of fluent (e.g. udf.h, dpm.h) Good luck |
|
January 26, 2011, 09:34 |
|
#3 | |
New Member
tj
Join Date: Aug 2009
Posts: 4
Rep Power: 16 |
Thanks Nikolopoulos. I tried with C_STORAGE_R(c,t,SV_DPMS_PDF_1), but it still doesn't work.
Quote:
|
||
January 26, 2011, 10:49 |
|
#4 |
Member
Nikolopoulos Aristeidis
Join Date: Jan 2011
Location: Athens, Greece
Posts: 62
Rep Power: 15 |
Do you use a syntax like this:
C_STORAGE_R(c,t,SV_DPMS_ENERGY)+=....; Your code doesn't compile or fluent crashes? In previous versions did it work? |
|
January 26, 2011, 11:04 |
|
#5 |
New Member
tj
Join Date: Aug 2009
Posts: 4
Rep Power: 16 |
Here is my code for debugging:
#include "udf.h" #include "dpm.h" DEFINE_SOURCE(Var1_source,c,t,dS,eqn) { real source; if (c == 1000) { Message("dpm=%d",C_DPMS_PDF_1(c,t)); } source = 0.0; dS[eqn] = 0.0; return source; } It can be compiled correctly, but once the term, C_DPMS_PDF_1(c,t), is called, fluent got fatal error. If I change it to C_FVAR(c,t) or something else, everything is OK. The definition of (this term/cell volume) is: SUM(nm)。n --droplet number density; m--mass evaporation rate. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 07:29 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |