|
[Sponsors] |
how to get the nodes spacing near the interface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 9, 2006, 10:50 |
how to get the nodes spacing near the interface
|
#1 |
Guest
Posts: n/a
|
I need to compile a udf compute the mass transfer between two phases which includes equaction:m_lg=D*dY/dz. where "Y" is the mass fraction,"z"is the coordinate on the vertical direction of the interface. Now my question is how to get the coordination of the interface and its adjacent node.Anyone could help me? Thanks !
|
|
September 10, 2006, 21:57 |
Re: how to get the nodes spacing near the interfac
|
#2 |
Guest
Posts: n/a
|
here is my UDF.there is something wrong.It shows "c_thread is unceclared" .pls help me: #include "udf.h" DEFINE_MASS_TRANSFER(vapourvapour,c,t,from_phase,f rom_index,to_phase,to_index) { real x[ND_ND]; real y1,z1; Thread *t; cell_t c; Domain *domain; domain=Get_Domain(4); Thread *c_thread=THREAD_SUB_THREAD(t,to_index); int i=2; thread_loop_c(c_thread,domain) { begin_c_loop (c,c_thread) { C_CENTROID(x,c,c_thread); y1=x[1]; z1=C_YI_M1(c,c_thread,i); } end_c_loop(c,c_thread) } return z1; }
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 58 | July 3, 2020 01:13 |
identify interface boundary nodes in parallel | emdoran | Fluent UDF and Scheme Programming | 0 | September 29, 2010 23:11 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 04:05 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |