|
[Sponsors] |
November 25, 2015, 03:12 |
How to fix problem form Interpreted UDFs
|
#1 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
when i'm interpreted code.c. it show a massage error about line 15: structure reference not implemented. how to fix it
thank for answer i hope someone can help me for search the answer this is code #include "udf.h" DEFINE_HET_RXN_RATE(reaction1,cell,thread,hr,mw,yi ,rr,rr_t) { real *stoich_reactant = hr->stoich_reactant; int gas_index = 0; int cat_index = 1; /* int fd_index = 2; */ real R = 8.314; /* Pa.m^3/(K.kgmol) Gas Constant*/ real ca; /* FD - Feed in gas phase index 4*/ real cb; /* MD - Middle Distillates index 3 */ real cd; /* Nap - Naphtha index 2 */ real ce; /* Gas - C1-C3 index 1 */ /* Thread *liq = THREAD_SUB_THREAD(thread, fd_index); */ Thread *gas = THREAD_SUB_THREAD(thread, gas_index); Thread *cat = THREAD_SUB_THREAD(thread, cat_index); real k1 = 550.*exp(3.609e3/(R*345.)); real void_g = C_VOF(cell,gas); /* real k2 = 4.6868*10e17*exp(-5.7755*10e4/(R*C_T(cell,gas))); real k3 = 1.3508*10e14*exp(-4.9559*10e4/(R*C_T(cell,gas))); real k4 = 4.4232*10e12*exp(-4.4285*10e4/(R*C_T(cell,gas))); real k5 = 1.2094*10e13*exp(-4.5902*10e4/(R*C_T(cell,gas))); real k6 = 85.1715*exp(-1.1627*10e4/(R*C_T(cell,gas))); */ /* if(Data_Valid_P()) { */ ce = C_R(cell,gas) * yi[0][3] / mw[0][3]; cd = C_R(cell,gas) * yi[0][2] / mw[0][2]; cb = C_R(cell,gas) * yi[0][1] / mw[0][1]; ca = C_R(cell,gas) * yi[0][0] / mw[0][0]; *rr = k1*ca*cb*(1.-void_g) ; /* } */ } |
|
November 25, 2015, 05:06 |
|
#2 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
From the Fluent Help:
Quote:
Solution: compile. |
||
November 26, 2015, 05:08 |
|
#3 |
New Member
Piyanat
Join Date: Nov 2015
Posts: 9
Rep Power: 11 |
i used both interpreted and compile function.there show error both
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem interpreted Reaction Code | oTopero | FLUENT | 11 | November 24, 2015 07:25 |
Interesting new problem/ trying to fix contacts using a porous zone | A.Jalal | FLUENT | 0 | September 24, 2015 16:40 |
Problem exporting line bodies form Design Modeler to Mesh Editor&Fluent | Rockda | ANSYS Meshing & Geometry | 0 | May 26, 2011 12:03 |
error in interpreted udf's for two macro | Asghari | FLUENT | 0 | August 7, 2006 03:10 |
entropy fix for Riemann problem | vivek kumar | Main CFD Forum | 3 | August 31, 2005 08:47 |