CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Help me to solve this problem !!! (http://www.cfd-online.com/Forums/fluent/30562-help-me-solve-problem.html)

 kevin -Chang November 22, 2002 12:45

Help me to solve this problem !!!

Today , i have a very thorny problem . My model has a parameter was used to predict the binary diffusion coefficient (Dij) at species transport equation . For example Dij = 3.64*e-8* T**2.334*(Pci*Pcj)**0.416*(Tci*Tcj)**-0.48625 {Pci---critical pressure of species i Pcj---critical pressure of species j Tci---critical temperature of species i Tcj---critical temperature of species j } In my model ,five species was be existed indie the model . H2,O2,H2O,CO2,N2 i want to solve the Dij from above equation . so. i also wrote a program of UDF by visual C++ Unfortunately , this program is wrong in FLUENT . Who can assist to modify this thorny program....??? Best regrad to you

Kevin-Chang

}

 kevin -Chang November 22, 2002 12:56

Re: Help me to solve this problem !!!

Today , i have a very thorny problem .

My model has a parameter was used to predict the binary diffusion coefficient (Dij) at species transport equation .

For example Dij = 3.64*e-8* T^2.334*(Pci*Pcj)^0.3333*(Tci*Tcj)^-0.48625*(1/Mi+1/Mj)^0.5

{Pci---critical pressure of species i Pcj---critical pressure of species j Tci---critical temperature of species i Tcj---critical temperature of species j }

In my model ,five species was be existed indie the model . H2,O2,H2O,CO2,N2

i want to solve the Dij from above equation . so. i also wrote a program of UDF by visual C++

Unfortunately , this program is wrong in FLUENT . Who can assist to modify this thorny program ??

Kevin-Chang

{ int i,j;

real Dij;

if(i==0. || j==1.)

else if(i==0. || j==2.)

else if(i==0. || j==3.)

else if(i==0. || j==4.)

else

return Dij; }

 ravi varma November 23, 2002 14:35

Re: Help me to solve this problem !!!

why are you defining the diffusion equation 5 for each species? you could use a for loop statement: for (i=1, i<=n, i++)

 mahdi saniee nezhad November 24, 2002 01:43

Re: Help me to solve this problem !!!

Dear sir I have a problem with this title. If it's possible for you please send me your received responses. Very thanks for your attention to my request. With the best regards. Mahdi saniee nezhad

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