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

access violation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2007, 03:07
Default access violation error
  #1
J.Y.Shin
Guest
 
Posts: n/a
I want to set the wall boundary condition as Tw=Tadjacent+10. Following UDF not working(access violation error), would yoou tell me why? ----------------------------------------------------------- #include "udf.h"

DEFINE_PROFILE(face_temp_grad, thread, position) { face_t f; cell_t c; Thread *tf; int ID=3 ; Domain *d;

begin_f_loop(f,thread) {

tf=Lookup_Thread(d,ID); c=F_C0(f,tf); F_PROFILE(f,thread,position)=C_T(c,tf)+10.0;

/* c=F_C0(f,thread); F_PROFILE(f,thread,position)=C_T(c,thread)+10.0; */ } end_f_loop(f,thread) }

  Reply With Quote

Old   February 13, 2007, 10:40
Default Re: access violation error
  #2
Rizwan
Guest
 
Posts: n/a
try this

#include "udf.h"

DEFINE_PROFILE (face_temp_grad, thread, position) {

face_t f; cell_t c; Thread *tf; int ID=3 ; Domain *d;

begin_f_loop(f,thread) {

tf=Lookup_Thread(d,ID);

c=F_C0(f,tf);

F_PROFILE(f,thread,position)=C_T(c,tf)+10.0;

end_f_loop (f,thread) }

}
  Reply With Quote

Old   February 13, 2007, 20:06
Default Re: access violation error
  #3
J.Y.Shin
Guest
 
Posts: n/a
What's the difference between my program and yours. Let me know, please...
  Reply With Quote

Old   February 13, 2007, 22:30
Default Re: access violation error
  #4
Rizwan
Guest
 
Posts: n/a
did it work or not? i havent done any changess except removing the comment and puttng a closing brace and it worked for me. Thanks
  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
polynomial thermophysical properties II sebastian OpenFOAM Running, Solving & CFD 54 November 21, 2019 07:12
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19


All times are GMT -4. The time now is 11:00.