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

UDF problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2005, 11:02
Default UDF problem
  #1
valemary
Guest
 
Posts: n/a
Dear users, I have a problem with my Udf. I want to know thermal conductivity mean value on a velocity inlet boundary. I have a mixture and hydrogen and nytrogen enter. My model is turb ke and the solver is segregated. The text of my udf is:

#include "udf.h"

DEFINE_ADJUST(thermal_cond, d) { int id=5; Thread *t=Lookup_Thread(d,id); cell_t c; int n=0; real tceff=0.;

#define C_K_T(c,t)(C_MU_T(c,t)*C_CP(c,t)/M_keprt) #define C_K_EFF(c,t)(C_K_L(c,t)+C_K_T(c,t))

{ begin_c_loop(c,t) n++ tceff += C_K_EFF(c,t); end_c_loop(c,t) tceff=tceff/n; } printf("Thermal conductivity is: %f\n", tceff); }

Fluent interprets the Udf, but when I start iteration the Fatal error, Access violation message appears! Can you help me?

Thanks

valemary

  Reply With Quote

Old   October 4, 2005, 02:18
Default Re: UDF problem
  #2
RoM
Guest
 
Posts: n/a
boundary = face thread. use face loop.

RoM
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 40 March 18, 2018 06:05
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 00: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 11:39.