CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   quite surprising,dose anyone know the reason? (http://www.cfd-online.com/Forums/fluent/39866-quite-surprising-dose-anyone-know-reason.html)

shuqin February 27, 2006 23:44

quite surprising,dose anyone know the reason?
 
hi,everybody!dose any one know the reason?

I defined a uds and a define_profile udf for it ,after selecting the flow and specie equations, I initialized,access violation ccame out and I could not go on solving.

and then I selected only the flow and specie equations without applying uds's profiles and it works well,when converged ,I apply the udf profile and select to solve the uds equation.it works and no error came.

It is rather confusing for me,Does anyone know why I have to select the uds equation later,since all these cases are taken under segregated solver bye the way,the code is below:

DEFINE_PROFILE(potential_bc, t, i)

{

face_t f;

cell_t c;

begin_f_loop(f,t)

{

F_UDMI(f,t,1)=0.9757;/* a function to be changed */

}end_f_loop(f,t)

begin_f_loop(f,t)

{

F_PROFILE(f,t,i) =F_UDMI(f,t,1);

}end_f_loop(f,t)

}



All times are GMT -4. The time now is 07:36.