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

UDF Problem (When Using mixture_species_loop)

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 14, 2007, 02:04
Default UDF Problem (When Using mixture_species_loop)
  #1
hesam
Guest
 
Posts: n/a
Hi I have a problem with UDF. When I want use mixture_species_loop an error occured: "structure reference not implemented" Even when I want interpret Manual's code this error occured.

#include "udf.h"

DEFINE_PROPERTY(mass_wtd_k,c,t) {

real sum = 0.; int i;

Material *sp;

real ktc;

Property *prop;

mixture_species_loop(THREAD_MATERIAL(t),sp,i)

{

prop = (MATERIAL_PROPERTY(sp));

ktc = generic_property(c,t,prop,PROP_ktc,C_T(c,t));

sum += C_YI(c,t,i)*ktc;

}

return sum; }

**** Error occured in line 9 (mixture_species_loop)********

  Reply With Quote

Old   April 14, 2007, 10:13
Default UDF Problem (When Using mixture_species_loop)
  #2
sudhakar
Guest
 
Posts: n/a
hi i am trying to use mass fraction weighted density for the mixture material. i used the udf given in fluent6.2 manual replacing ,thermal conductivity with density.It worked well with single phase but not with multiphase. It is showing ACCESS VIOLATION error. please help me thanks a lot
  Reply With Quote

Old   April 14, 2007, 10:19
Default species index
  #3
sudhakar
Guest
 
Posts: n/a
hi everybody how to get species index? thanks

  Reply With Quote

Reply

Thread Tools
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 On
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 32 May 8, 2015 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 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


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