|
[Sponsors] |
February 13, 2007, 03:07 |
access violation error
|
#1 |
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) } |
|
February 13, 2007, 10:40 |
Re: access violation error
|
#2 |
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) } } |
|
February 13, 2007, 20:06 |
Re: access violation error
|
#3 |
Guest
Posts: n/a
|
What's the difference between my program and yours. Let me know, please...
|
|
February 13, 2007, 22:30 |
Re: access violation error
|
#4 |
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
|
|
|
|
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 |