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

i have uds's problem~~????

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2001, 22:00
Default i have uds's problem~~????
  #1
kevin
Guest
 
Posts: n/a
i writed C code to describe chemical phenomena , so i used macro"DEFINE_UDS_FLUX(name,f,t,i)"to calculate electro-chemical equation, for example

enum { AA, N_REQUIRED_UDS };

DEFINE_UDS_FLUX(cathode_uds1,f,t, q) { face_t f; int q=0; begin_f_loop(f,t) { Yo2=F_YI(f,t,0);

Pc=F_P(f,t);

Xo2=Yo2*(Xn2*Mn2-Xn2*Mw+Mw)/(Mo2+Yo2*Mw-Yo2*Mo2);

F_UDSI(f,t,AA)=Pc*Xo2; }end_f_loop(f,t) }

fluent give me error message is::: chip-exec: argument 3: incorrect type (5): pointer expected chip-exec:argument 4: incorrect type (0): int expected
  Reply With Quote

Old   November 8, 2001, 02:24
Default Re: i have uds's problem~~????
  #2
hampton
Guest
 
Posts: n/a
A "DEFINE_UDS_FLUX(cathode_uds1,f,t, q)" function should be used this form "DEFINE_UDS_FLUX(f,t, 0)" . Therefore, you have to define just 3 arguments. But , you defined 5 arguments(cathode_uds1,f,t, q) . So FLUENT gave you errors. To avoid this, you need to write like a following.

DEFINE_UDS_FLUX(f,t, 0)

{

F_UDSI(f,t,0)=Pc*Xo2;

}

Thanks.

  Reply With Quote

Old   November 8, 2001, 05:03
Default Re: i have uds's problem~~????
  #3
hampton
Guest
 
Posts: n/a
Sorry.I was wrong. The following is the right expression.

DEFINE_UDS_FLUX(aa,f,t, i)

{

F_UDSI(f,t,0)=Pc*Xo2;

return F_UDSI(f,t,0);

}

Thanks.

  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
uds's flux term in multiphase flow nonyear Fluent UDF and Scheme Programming 0 April 27, 2009 07:08
Unsteady and Flux UDFs for UDSs tom FLUENT 0 February 13, 2009 11:27
How can I get a uds's gradient? Haibin Li FLUENT 0 December 13, 2005 02:22
Sequential calculation of Temperature and mass tra J.W.Ryu FLUENT 7 June 18, 2002 08:12
i have UDS's problem?? kevin FLUENT 0 November 8, 2001 08:44


All times are GMT -4. The time now is 11:40.