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

Evaporation source term:C_DPMS_PDF_1(c,t)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2011, 10:03
Default Evaporation source term:C_DPMS_PDF_1(c,t)
  #1
New Member
 
tj
Join Date: Aug 2009
Posts: 4
Rep Power: 16
longzi83 is on a distinguished road
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!
longzi83 is offline   Reply With Quote

Old   January 26, 2011, 02:54
Default
  #2
Member
 
Nikolopoulos Aristeidis
Join Date: Jan 2011
Location: Athens, Greece
Posts: 62
Rep Power: 15
Nikolopoulos is on a distinguished road
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
Nikolopoulos is offline   Reply With Quote

Old   January 26, 2011, 09:34
Default
  #3
New Member
 
tj
Join Date: Aug 2009
Posts: 4
Rep Power: 16
longzi83 is on a distinguished road
Thanks Nikolopoulos. I tried with C_STORAGE_R(c,t,SV_DPMS_PDF_1), but it still doesn't work.



Quote:
Originally Posted by Nikolopoulos View Post
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
longzi83 is offline   Reply With Quote

Old   January 26, 2011, 10:49
Default
  #4
Member
 
Nikolopoulos Aristeidis
Join Date: Jan 2011
Location: Athens, Greece
Posts: 62
Rep Power: 15
Nikolopoulos is on a distinguished road
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?
Nikolopoulos is offline   Reply With Quote

Old   January 26, 2011, 11:04
Default
  #5
New Member
 
tj
Join Date: Aug 2009
Posts: 4
Rep Power: 16
longzi83 is on a distinguished road
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.



Quote:
Originally Posted by Nikolopoulos View Post
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?
longzi83 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 07:58.