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

Interfacial area concentration calculation using UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2018, 10:49
Default Interfacial area concentration calculation using UDF
  #1
New Member
 
sachin
Join Date: Dec 2016
Posts: 7
Rep Power: 9
sachin tom is on a distinguished road
I am trying to write udf for interfacial area concentration to solve a subcooled water boiling problem...The udf appears to be as follows....


#include "udf.h"
#include "sg.h"
#include "sg_mphase.h"
#include "flow.h"
#include "mem.h"

DEFINE_ADJUST(phase1, mixture_domain)
{
int phase_domain_index=1;
cell_t c;
Thread *t;
Thread *pt = THREAD_SUB_THREAD(t,1);
Domain *subdomain;
/* loops over all subdomains (phases) in the superdomain (mixture) */

sub_domain_loop(subdomain, mixture_domain,phase_domain_index)
{ /* loop if secondary phase */
/* if (DOMAIN_ID(subdomain) == 3) */
/* loop over all cell threads in the secondary phase domain */
mp_thread_loop_c (t, subdomain, pt)
{ /* loops over all cells in the secondary phase cell threads */
begin_c_loop_all (c, pt)
{
C_UDMI(c, pt, 0) = C_VOF(c,pt);
C_UDMI(c, pt, 1) = C_PHASE_DIAMETER(c,pt);
}
end_c_loop_all (c, pt)
}
}
}
DEFINE_EXCHANGE_PROPERTY(custom_ia,c,t,i,j)
{
Thread *ps = THREAD_SUB_THREAD(t,1);
real vof_j = C_UDMI(c, ps, 0);
real diam = C_UDMI(c, ps, 1);
real area_intf;
area_intf = 6.*vof_j/diam;
return area_intf;
}
I am getting error as shown below........
label "store_vof_norm" not found
Can anyone pls help me on these.....


Regards,
Sachin Tom
sachin tom is offline   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
CFX- Interfacial Area Concentration phPatras CFX 2 September 3, 2017 07:02
VOF Interfacial Area - 2D/3D Reconstruction Method Greg Perkins Main CFD Forum 2 September 10, 2012 04:05
my UDF can not calculation? happyrabbit FLUENT 0 October 21, 2010 08:59
Frontal area calculation Stefan CFX 1 June 12, 2006 21:03
multiphase interfacial area density model Paul Main CFD Forum 0 August 5, 2003 17:33


All times are GMT -4. The time now is 13:40.