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

how to get the nodes spacing near the interface

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 9, 2006, 10:50
Default how to get the nodes spacing near the interface
  #1
sriah
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 !
  Reply With Quote

Old   September 10, 2006, 21:57
Default Re: how to get the nodes spacing near the interfac
  #2
sriah
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; }
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wind turbine simulation Saturn CFX 34 October 16, 2014 05:27
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 05:05
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19


All times are GMT -4. The time now is 23:50.