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

C_PB DISCI in mass transfer problem( sauter mean diameter)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2015, 09:34
Angry C_PB DISCI in mass transfer problem( sauter mean diameter)
  #1
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12
majid_kamyab is on a distinguished road
Hello

the problem is about C_PB_DISCI and I am sure about it. but I dont know how to fix it
is there any way to calculate sauter mean diameter in Discrete phase in UDF?
here is the UDF


#include "udf.h"
#include "sg_pb.h"
DEFINE_MASS_TRANSFER(popbalance, c, t, from_index, from_species_index, to_index, to_species_index)
{
Thread *gas = THREAD_SUB_THREAD(t, to_index);
Thread *liq = THREAD_SUB_THREAD(t, from_index);
real m_lg, k_l, dal, usg, kappa, satc, a, satx, y, x, db, cl,na,db0,db1,db2,db3,db4,db5,db6;
m_lg=0;
y = C_YI(c, gas, to_species_index) / 32.04 / ( 1 / 60.1 - C_YI(c, gas, to_species_index) / 60.1 + C_YI(c, gas, to_species_index) / 32.04);
satx=0.8059 * y * y - 0.089 * y + 0.0555;
x= C_YI(c, liq, from_species_index) / 32.04 / ( 1 / 60.1 - C_YI(c, liq, from_species_index) / 60.1 + C_YI(c, liq, from_species_index) / 32.04);
k_l = 0.00011;
db0=0.009337;
db1=0.0157029;
db2=0.009337;
db3=0.0055518134;
db4=0.003301128;
db5=0.0019628625;
db6=0.001167125;
cl=15.2055;
a=6 *C_PB_DISCI(c,t,0)* C_VOF(c,gas)/ db0+6 *C_PB_DISCI(c,t,1)* C_VOF(c,gas)/ db1+6 *C_PB_DISCI(c,t,2)* C_VOF(c,gas)/ db2+6 *C_PB_DISCI(c,t,3)* C_VOF(c,gas)/ db3+6 *C_PB_DISCI(c,t,4)* C_VOF(c,gas)/ db4+6 *C_PB_DISCI(c,t,5)* C_VOF(c,gas)/ db5+6 *C_PB_DISCI(c,t,6)* C_VOF(c,gas)/ db6;
if (x > satx)
{
na = k_l * a * cl *(x - satx);
m_lg= 32.04 * na;
C_UDMI(c,t,0)=m_lg;
}
return (m_lg);
}





The error



================================================== ============================

Node 0: Process 73088: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 3: Process 73192: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 4: Process 73208: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 5: Process 73220: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 6: Process 73236: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 7: Process 73248: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 1: Process 73164: Received signal SIGSEGV.

================================================== ============================

================================================== ============================

Node 2: Process 73180: Received signal SIGSEGV.

================================================== ============================
MPI Application rank 0 exited before MPI_Finalize() with status 2
The fl process could not be started.
majid_kamyab is offline   Reply With Quote

Old   May 6, 2015, 09:46
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
You're using User-Defined Memory (UDM), are you sure you've remembered to enable slots for this UDM?
`e` is offline   Reply With Quote

Old   May 6, 2015, 09:52
Default
  #3
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12
majid_kamyab is on a distinguished road
Quote:
Originally Posted by `e` View Post
You're using User-Defined Memory (UDM), are you sure you've remembered to enable slots for this UDM?
yes I did
I runned the case without (C_PB_DISCI) and there were no problem.
I am sure that the problem is with C_PB_DISCI
majid_kamyab is offline   Reply With Quote

Old   May 6, 2015, 10:07
Default
  #4
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
The SIGSEGV error suggests you're trying to access a variable / memory space which has not been allocated. I've not used the Sauter mean diameter feature but is it valid to use seven indices from "C_PB_DISCI"? Try only using the first one with an index of 0 and check the usage in the Fluent documentation.
`e` is offline   Reply With Quote

Old   May 6, 2015, 10:17
Default I tried it didnt work
  #5
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12
majid_kamyab is on a distinguished road
It didn't work.
C_POP_DISCI gives the fraction of a particular bubble size in the domain (in case you are not familiar with the discrete population balance model)
majid_kamyab is offline   Reply With Quote

Old   May 6, 2015, 17:15
Default
  #6
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Are any of the other population balance variables working in your UDF? For example the weight: C_PB_QMOMI_W(c,t,i). If these variables/macros yield the same error then perhaps the population balance model has not been enabled or setup correctly? Have these variables worked in the past or are there any working examples available?
`e` is offline   Reply With Quote

Old   May 9, 2015, 04:05
Default
  #7
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12
majid_kamyab is on a distinguished road
Quote:
Originally Posted by `e` View Post
Are any of the other population balance variables working in your UDF? For example the weight: C_PB_QMOMI_W(c,t,i). If these variables/macros yield the same error then perhaps the population balance model has not been enabled or setup correctly? Have these variables worked in the past or are there any working examples available?
I am not using QMOMI model, C_PB_DISCI_PS also did not work.
If I dont use C_PB_DISCI_PS or C_PB_DISCI , the case doesnt have any problem, and the bins fractions of discrete pop balance model can be checked by contours, the only problem is when I use them.
Do I have to use any loop?
majid_kamyab is offline   Reply With Quote

Old   January 8, 2016, 18:20
Default
  #8
New Member
 
shaham
Join Date: Feb 2011
Posts: 9
Rep Power: 15
shaham is on a distinguished road
Hi Majid,

I think the problem is the thread you are using in C_PB_DISCI, t, which is mixture thread. To solve it use C_PB_DISCI(c,gas,i), where gas is the thread to gas phase.

Hope it solves it for you
shaham is offline   Reply With Quote

Old   January 9, 2016, 07:36
Default
  #9
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12
majid_kamyab is on a distinguished road
I have finished this and I have used sauter mean diameter,
It is not possible to use C_PB_SICI in mass transfer.
Quote:
Originally Posted by shaham View Post
Hi Majid,

I think the problem is the thread you are using in C_PB_DISCI, t, which is mixture thread. To solve it use C_PB_DISCI(c,gas,i), where gas is the thread to gas phase.

Hope it solves it for you
majid_kamyab is offline   Reply With Quote

Old   October 18, 2018, 09:41
Default
  #10
New Member
 
liwenlong
Join Date: Oct 2018
Posts: 5
Rep Power: 8
leewenlong is on a distinguished road
hello,dose anyone know how to export sauter mean diameter changing with time?
Attached Images
File Type: png EAQOQ_R74E0F7EVL8MEEATF.png (45.6 KB, 6 views)
leewenlong is offline   Reply With Quote

Old   October 31, 2018, 05:16
Default
  #11
New Member
 
Join Date: Aug 2018
Location: Stuttgart
Posts: 1
Rep Power: 0
Maike is on a distinguished road
I would use the UDF DEFINE_EXECUTE_AT_END. With C_PHASE_DIAMETER(c,t) you get the Sauter diameter and you can write the values in a text file.
Maike is offline   Reply With Quote

Reply

Tags
c_pb_disci, discrete, population balance, sauter mean diameter


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
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30
problem with mass transfer 6863523 FLUENT 0 November 7, 2014 20:55
mass transfer in ANSYS thipps ANSYS 1 August 29, 2013 12:05
Source terms due to mass transfer in VOF model ssamton FLUENT 0 March 5, 2012 01:03
combustion problem mcnair CFX 9 March 22, 2011 15:06


All times are GMT -4. The time now is 16:54.