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

Boundary_face_geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2012, 17:07
Default Boundary_face_geometry
  #1
New Member
 
IVI
Join Date: Oct 2012
Posts: 14
Rep Power: 14
89566008 is on a distinguished road
its a udf to set a boundary condition for UDS0
whan i choose the UDF to the boundary condition pannel , we see fettal error , please advise me
my UDF is :

DEFINE_PROFILE(wire_profile,t,i)
{
real A[ND_ND];
real ds ;/*distance between the cell centroid and the face centroid */
real es[ND_ND]; /* unit normal vector in the direction from centroid of cell c0 to the face centroid */
real A_by_es;
real dr0[ND_ND];
real y;
face_t f;
cell_t c;
Domain *d;
c = F_C0(f,t);
thread_loop_f(t,d)
{
begin_f_loop(f,t)
{
BOUNDARY_FACE_GEOMETRY(f,t,A,ds,es,A_by_es,dr0);
y = dr0[1];
F_PROFILE(f,t,i) = -epsilon_0*( NV_MAG(C_UDSI_G(c,t,1))-(43.25e+6))/y ;
}
end_f_loop(f,t)
}
}


thanks
IVI
89566008 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



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