CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF problem~?????? (

kevin November 8, 2001 09:46

UDF problem~??????
i have one complex equation , include(main-program, subroutine). main-program is puted in source terms of momentum equation , subroutine is calculated for electro-chemical reaction ,for example subroutine is : DEFINE_UDSI_FLUX(aa,f,t,i) { face_t f; Thread *t; Yo2=F_YI(f,t,0); Pc=C_P(f,t); Xo2=Yo2*Pc; F_UDSI(f,t,0)=Pc*Xo2; return F_UDSI(f,t,0); } " i wish the UDS's data to return main program "

main program is: DEFINE_SOURCE(bb,c,t,ds,eqn) { cell_t c; face_t f; real q=F_UDSI(f,t,0); source=q*12; ds[eqn]=12; return source; } " i wish the UDF put in source terms of momentum equation" fluent's solver occur error message

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