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

UDF problem!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2003, 03:58
Default UDF problem!
  #1
ann
Guest
 
Posts: n/a
Hi, I simulate gas-solid two-phase flow using discrete phase model. I want to simulate a body force on particles using UDF. But in the force expression, there are varibles about gas phase such as gas velocity, gas density. My C code using UDF is as following:

#include "udf.h"

#include "dpm.h"

DEFINE_DPM_BODY_FORCE(forcerot, p, i)

{

float forcerot;

forcerot=C_R(c,t)/P_RHO(p)*x[0]*C_V(c,t);

return(forcerot);

}

where P_RHO(p) (particle density) can obtain, but C_R(c,t) (gas density)£¬x[0] (x component of location)£¬ C_V(c,t) (y component of gas velocity) are unknown. How can I get the values of these variables?

Thanks for any help in advance!

Regards, ann

  Reply With Quote

Old   March 12, 2003, 20:42
Default Re: UDF problem!
  #2
hedonists
Guest
 
Posts: n/a
I have the same problem, too. I tried to write a UDF of the drag force, taking into account the slip correction factor which is a function of local Pressure and Temperature. And I could not obtain the pressure values for the current particle position. For your problem, I guess you can assume the gas temperature to be equal to the particle temperature, and you can obtain the particle temperature using the Macro P_T(p).
  Reply With Quote

Reply


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 06:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 00:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


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