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

i have some problem in useing UDF for boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2010, 15:44
Default i have some problem in useing UDF for boundary condition
  #1
New Member
 
iman mohammadi
Join Date: Jul 2010
Posts: 11
Rep Power: 16
eeman is on a distinguished road
Hi all

how can i solve this error in fluent:

Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()

after interpreting,when i want to use UDF for boundary condition,this error will be appear,also i cant iterate it


here is my UDF:

#include "udf.h"
#define meanfreepath 6.8e-8
#define underrlx 0.02
DEFINE_PROFILE(maxwell_slip_velocity_x_full,f_thre ad,index)
{
face_t f;

cell_t c;
Thread *cell_thread;
real dveloc;
begin_f_loop(f,f_thread)
{
dveloc=((meanfreepath)*C_U_G(c,cell_thread)[1]);
c=F_C0(f,f_thread);
cell_thread=THREAD_T0(f_thread);

F_PROFILE(f,f_thread,index)=dveloc;
}
end_f_loop(face,f_thread)
}
eeman is offline   Reply With Quote

Old   August 12, 2010, 07:12
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
You are using C_U_G(c,cell_thread)[1] before retrieving c and cell_thread with
c=F_C0(f,f_thread);
cell_thread=THREAD_T0(f_thread);

switch these lines and everything should be fine.

cheers
coglione is offline   Reply With Quote

Old   August 12, 2010, 09:18
Default
  #3
New Member
 
iman mohammadi
Join Date: Jul 2010
Posts: 11
Rep Power: 16
eeman is on a distinguished road
thank you coglione,thank you so much

every thing is ok now!!!
eeman is offline   Reply With Quote

Old   September 19, 2012, 03:14
Default UDF for boundary conditions
  #4
New Member
 
tarang
Join Date: Jul 2012
Posts: 6
Rep Power: 14
tarangbulchandani is on a distinguished road
DEFINE_PROFILE(outlet_boundary,t,i)
{
#if !RP_HOST
face_t f;
cell_t c0;
Thread *t0;
begin_f_loop(f,t)
{
t0=F_C0_THREAD(f,t);
c0=F_C0(f,t);
F_PROFILE(f,t,i)=-C_UDSI(c0,t0,0);

}
end_f_loop(f,t)
#endif
}

Hi ,
I want to use this udf for reflect boundary condition can anyone suggest me whether its correct or not.
Plzz

Regards
tarangbulchandani 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDS problem with wall boundary condition Alex F. FLUENT 15 September 21, 2015 10:28
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
compatibility problem of UDF on LINUX manu FLUENT 4 December 19, 2007 05:58
UDF hook problem in command line mode. Benlong FLUENT 1 November 12, 2007 15:45
Periodic flow boundary condition problem sudha FLUENT 3 April 28, 2004 09:40


All times are GMT -4. The time now is 17:35.