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

UDS DIFFUSIVITY

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 31, 2003, 06:33
Default UDS DIFFUSIVITY
  #1
naima
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
  Reply With Quote

Old   October 31, 2003, 07:12
Default Re: UDS DIFFUSIVITY
  #2
thomas
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
  Reply With Quote

Old   November 3, 2003, 04:48
Default Re: UDS DIFFUSIVITY
  #3
naima
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
  Reply With Quote

Old   November 3, 2003, 05:39
Default Re: UDS DIFFUSIVITY
  #4
thomas
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
  Reply With Quote

Old   November 3, 2003, 18:57
Default Re: UDS DIFFUSIVITY
  #5
Devin
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
  Reply With Quote

Old   November 4, 2003, 05:07
Default Re: UDS DIFFUSIVITY
  #6
naima
Guest
 
Posts: n/a
Thanks for your suggestions, that i tried, but it doesn't work, I don't know why!!!
  Reply With Quote

Old   November 4, 2003, 05:56
Default Re: UDS DIFFUSIVITY
  #7
nounou
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!!!
  Reply With Quote

Old   November 4, 2003, 06:14
Default Re: UDS DIFFUSIVITY
  #8
Mohamed
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
  Reply With Quote

Old   November 5, 2003, 07:20
Default Re: UDS DIFFUSIVITY
  #9
Naima
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
  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
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 23:08
Fluent 6.3 pemfc module, UDS diffusivity yerem3 FLUENT 0 January 19, 2010 04: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


All times are GMT -4. The time now is 05:30.