CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF and DPM concentration (https://www.cfd-online.com/Forums/fluent-udf/33344-udf-dpm-concentration.html)

caroline March 29, 2004 09:37

UDF and DPM concentration
 
I am trying to define the drag force coefficient of the Discrete Phase Model using the particle concentration. Is it possible to access the particle concentration in the DEFINE_DPM_DRAG user function ? Many thanks, Caroline

thomas March 29, 2004 12:48

Re: UDF and DPM concentration
 
Utilise la macro DPM_CONCENTRATION qui va te premettre de reconstruire ta fraction de volume ( je pense que c'est ce que tu recherches pour reconstruire ta force de trainee). Cependant ceci peut t'amener dans certaine cellule à avoir une fraction de volume > 1, donc besoin de limiteur. Aussi, attention à l'utilisation de cette macro en instationnaire.

thomas

jabereslami January 22, 2015 21:54

Quote:

Originally Posted by thomas
;111417
Utilise la macro DPM_CONCENTRATION qui va te premettre de reconstruire ta fraction de volume ( je pense que c'est ce que tu recherches pour reconstruire ta force de trainee). Cependant ceci peut t'amener dans certaine cellule à avoir une fraction de volume > 1, donc besoin de limiteur. Aussi, attention à l'utilisation de cette macro en instationnaire.

thomas

Hi
I want to know how can find this macro?
C_DPMS_CONCENTRATION(c,t)
thanks

pakk January 23, 2015 02:53

Please ask your question only once. There is no reason to ask it seven times, and certainly no reason to ask it in a thread that is more than 10 years old.

And be more clear in what you are asking. What do you want the macro to do?

If you add
Code:

#DEFINE C_DPMS_CONCENTRATION(c,t) 0
in the top of your code, you have a macro with the name that you requested. One that will probably be useless for you, but we can not guess what you want the macro to do.

jabereslami January 23, 2015 17:28

Quote:

Originally Posted by pakk (Post 528733)
Please ask your question only once. There is no reason to ask it seven times, and certainly no reason to ask it in a thread that is more than 10 years old.

And be more clear in what you are asking. What do you want the macro to do?

If you add
Code:

#DEFINE C_DPMS_CONCENTRATION(c,t) 0
in the top of your code, you have a macro with the name that you requested. One that will probably be useless for you, but we can not guess what you want the macro to do.

Hi
Thanks for your reply
I want to know when i use DPM model calculate the particle trajectory, How can i get concentration field? where i can find this code?

wyldckat January 27, 2015 15:02

Quote:

Originally Posted by jabereslami (Post 528718)
Hi
I want to know how can find this macro?
C_DPMS_CONCENTRATION(c,t)
thanks

It's explained here:
Quote:

Originally Posted by RE13 (Post 148645)
you have been misinformed, the correct macro is C_DPMS_CONCENTRATION(c,t) and it is located in sg_mem.h

In other words, you need to include the following line near the other #include lines you have in your UDF code:
Code:

#include "sg_mem.h"
For example:
Code:

#include "udf.h"
#include "sg_mem.h"



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