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

BC problem with UDF.......

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2004, 04:12
Default BC problem with UDF.......
  #1
KKLAU
Guest
 
Posts: n/a
To all fluent experts all over the world,

Thank you for those who willing to send the UDF manual to me especially David and Mukkaram. I am facing a big problem. I need to define a BC for mass fraction for a wall BC which :

Mass fraction in the BC not change with the mass fraction from the previuos cell.

C_YI (BC) = C_YI (before/adjacent with BC)

When i iterate, BC wall mass fraction = initiate guess value. May i know how to solve this problem??

Here is the UDF.....

DEFINE_PROFILE(solute, thread, position) { real z;

face_t f;

cell_t c = F_C0(f,thread) ;

Thread *t= THREAD_T0(thread);

begin_f_loop(f,thread); {z = C_YI(c,t,i); F_PROFILE(f, thread, position) = z ;}

end_f_loop(f, thread);}

Thank you .

From

KKLAU
  Reply With Quote

Old   April 19, 2004, 06:02
Default Re: BC problem with UDF.......
  #2
FJ
Guest
 
Posts: n/a
Hi,

you have to specify "i" of C_YI(c,t,i). This "i" shows species number and should be specified by you. And z=C_YI(c,t,i) should be changed as z=C_YI(c,thread,i).

Thank you.

FJ
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 30 March 21, 2014 06:34
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


All times are GMT -4. The time now is 18:34.