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

User define memory storage

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 1, 2019, 05:51
Default User define memory storage
  #1
New Member
 
Dhiraj Lote
Join Date: Jul 2015
Location: Mumbai, India
Posts: 18
Rep Power: 10
dhiraj.lote@gmail.com is on a distinguished road
Hello,

I have written UDF for the breakage rate of Coulaloglou and Tavlarides model and interpreted in fluent 17.2 (for population balance modeling).

However, I would like to store a memory of breakage rate. For the same I have used syntax C_UDMI (cell, thread, 0)=breakage rate. But, I am getting this stored value zero everywhere in the domain. Please suggest me the solution.

Here is my UDF,

************************************************** **********************

UDF that computes the particle breakage frequency

************************************************** ***********************/

#include "udf.h"

#include "sg_pb.h"

#include "sg_mphase.h"





DEFINE_PB_BREAK_UP_RATE_FREQ(break_up_freq_tav, cell, thread, d_1)

{

real epsi, alpha, f1, f2, rho_d=1.225;

real C1 = 0.00481, C2 = 0.08, sigma = 0.072;

Thread *tm = THREAD_SUPER_THREAD(thread);/*passed thread is phase*/

epsi = C_D(cell, tm);

alpha = C_VOF(cell, thread);

rho_d = C_R(cell, thread);

f1 = C1*pow(epsi, 1./3.)/((1.+alpha)*pow(d_1, 2./3.));

f2 = -(C2*sigma*(1.+alpha)*(1.+alpha))/(rho_d*pow(epsi,2./3.)*pow(d_1, 5./3.));

C_UDMI(cell, thread, 0) = C1*f1*exp(f2);

return C1*f1*exp(f2);

}
dhiraj.lote@gmail.com is offline   Reply With Quote

 


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
udf for source term in UDS equation dkjknobel Fluent UDF and Scheme Programming 12 August 19, 2019 07:57
Segmentation fault error in User defined memory UDF abhi12019 Fluent UDF and Scheme Programming 3 September 13, 2018 03:17
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
user define scalar mechmed FLUENT 0 March 29, 2006 10:07


All times are GMT -4. The time now is 02:17.