|
[Sponsors] | |||||
|
|
|
#1 |
|
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 |
|
|
||
|
|
|
#2 |
|
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. |
|
|
||
|
|
|
#3 |
|
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. |
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |