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

somebody help me on use of BOUNDARY_FACE_GEOMETRY

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2004, 06:31
Default somebody help me on use of BOUNDARY_FACE_GEOMETRY
  #1
Steven
Guest
 
Posts: n/a
Hi, dear all,

Somebody help me to check the following UDF code and Error message.

/************************************/

/*UDF for fixed flux on the boundary*/

#include "udf.h"

#include "sg.h"

DEFINE_PROFILE(secretion, thread, position)

{

/* real y;*/

real k=1.8;

face_t f;

real dz;

real A[ND_ND], At;

real dr0[ND_ND], es[ND_ND], ds, A_by_es;

/* Thread *t0=thread->t0;*/

begin_f_loop(f, thread)

{

cell_t c0 = F_C0(f,thread);

BOUNDARY_FACE_GEOMETRY(f,thread,A,ds,es,A_by_es,dr 0);

dz=ds;

/*dz=0.00001;*/

y=C_YI(c0, thread, position);

F_PROFILE(f, thread, position)=k*dz+y;

end_f_loop(f, thread)

}

ERROR message is:

Error: udfbottom.c: line 21(which is the line: BOUNDARY_FACE_GEOMETRY(f,thread,A,ds,es,A_by_es,dr 0): structure reference not implemented

Thank you very much for your attention.

Regards

Steven
  Reply With Quote

Old   April 2, 2004, 14:17
Default Re: somebody help me on use of BOUNDARY_FACE_GEOME
  #2
co2
Guest
 
Posts: n/a
can you tell us what you are trying to do with this UDF ?
  Reply With Quote

Old   April 2, 2004, 23:03
Default Re: somebody help me on use of BOUNDARY_FACE_GEOME
  #3
Steven
Guest
 
Posts: n/a
I am trying to apply a Neumann boundary condition (the value of variable's gradient at the boudary is knwon) to one face of the domain. BOUNDARY_FACE_GEOMETRY was used to get the distance beween the cell centroid and cell boudary face.

  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 17:09.