|
[Sponsors] |
October 31, 2003, 05:33 |
UDS DIFFUSIVITY
|
#1 |
Guest
Posts: n/a
|
I like te difine the UDS Diffusivity with a UDF but i have some problems. so, I used the udf given by fluent :
# include "udf.h" DEFINE_DIFFUSIVITY(mean_age_diff, c, t, i) { return C_R(c,t) * 2.88e-05 + C_MU_EFF(c,t) / 0.7; } also with this udf(fluent) ihave the same error : Error: C:\work\tt.c: line 1: parse error. I'd appreciate your help, think you |
|
October 31, 2003, 06:12 |
Re: UDS DIFFUSIVITY
|
#2 |
Guest
Posts: n/a
|
Hi, This has nothing to do with your UDS. You just have certainly not well placed or simply forgotten a ';' somewhere. Check all your ';' and your parse error will disappear. Where are you from in France ? thomas
|
|
November 3, 2003, 03:48 |
Re: UDS DIFFUSIVITY
|
#3 |
Guest
Posts: n/a
|
In the UDF I sent , there is only one ";". I've checked it again and it doesn't work no more! Any other suggestions Thanks
|
|
November 3, 2003, 04:39 |
Re: UDS DIFFUSIVITY
|
#4 |
Guest
Posts: n/a
|
Hi, You should also check everything which you make your syntax wrong like ';' ',' '('. I would suggest to put your mathematical expression between brackets '()' after the command return. Like return ( C_R(c,t)*2.88e-05+C_MU_EFF(c,t)/0.7 ); You could also declare a UDMI variable to stock this operation result and then return it. Hope this help. thomas
|
|
November 3, 2003, 17:57 |
Re: UDS DIFFUSIVITY
|
#5 |
Guest
Posts: n/a
|
I believe your error is in the line
# include "udf.h" there should be no space between # and include, also udf.h should not be in quotations it should be enclosed by <>. I would type the line exactly as it should appear, but for some reason it won't display properly. Cheers, Devin |
|
November 4, 2003, 04:07 |
Re: UDS DIFFUSIVITY
|
#6 |
Guest
Posts: n/a
|
Thanks for your suggestions, that i tried, but it doesn't work, I don't know why!!!
|
|
November 4, 2003, 04:56 |
Re: UDS DIFFUSIVITY
|
#7 |
Guest
Posts: n/a
|
Dear Miss Reaaly, I don't know where is your problem, because I have the same message!!! oh my god, Does any one tried to use the same expression of naima in his station!!!
|
|
November 4, 2003, 05:14 |
Re: UDS DIFFUSIVITY
|
#8 |
Guest
Posts: n/a
|
I tried it me also, and it gives me the same error message!!! May be because I'm a beginner with UDF. But this one seems very easy and despite of that, it doesn't work! Does any one other tried it? Mohamed
|
|
November 5, 2003, 06:20 |
Re: UDS DIFFUSIVITY
|
#9 |
Guest
Posts: n/a
|
Thanks for all of you.
Finally I can interpret my UDF. I'm not sure about the raison but it seems that it was a problem of file source format (bin or ascii or informatics mystery!!). Indeed, since I've rewritten the same UDF in a C Compiler Editor, it became possible to compile it successfully. Thanks |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PEM modeling UDS diffusivity in mixture | gemini | FLUENT | 6 | August 7, 2012 07:37 |
What is UDS diffusivity of a self-defined material? | aleisia | FLUENT | 0 | March 5, 2011 22:08 |
Fluent 6.3 pemfc module, UDS diffusivity | yerem3 | FLUENT | 0 | January 19, 2010 03:10 |
Directional Diffusivity of UDS Source | Greg Perkins | FLUENT | 2 | September 4, 2003 03:02 |
UDS DIffusivity... | up | FLUENT | 4 | July 16, 2001 08:11 |