|
[Sponsors] |
Interfacial area concentration calculation using UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 13, 2018, 11:49 |
Interfacial area concentration calculation using UDF
|
#1 |
New Member
sachin
Join Date: Dec 2016
Posts: 7
Rep Power: 10 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX- Interfacial Area Concentration | phPatras | CFX | 2 | September 3, 2017 08:02 |
VOF Interfacial Area - 2D/3D Reconstruction Method | Greg Perkins | Main CFD Forum | 2 | September 10, 2012 05:05 |
my UDF can not calculation? | happyrabbit | FLUENT | 0 | October 21, 2010 09:59 |
Frontal area calculation | Stefan | CFX | 1 | June 12, 2006 22:03 |
multiphase interfacial area density model | Paul | Main CFD Forum | 0 | August 5, 2003 18:33 |