|
[Sponsors] |
i have some problem in useing UDF for boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 11, 2010, 15:44 |
i have some problem in useing UDF for boundary condition
|
#1 |
New Member
iman mohammadi
Join Date: Jul 2010
Posts: 11
Rep Power: 16 |
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) } |
|
August 12, 2010, 07:12 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
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 |
|
August 12, 2010, 09:18 |
|
#3 |
New Member
iman mohammadi
Join Date: Jul 2010
Posts: 11
Rep Power: 16 |
thank you coglione,thank you so much
every thing is ok now!!! |
|
September 19, 2012, 03:14 |
UDF for boundary conditions
|
#4 |
New Member
tarang
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
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 |
|
|
|
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 |