CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Help !!! (https://www.cfd-online.com/Forums/fluent/34116-help.html)

kethireddy July 5, 2004 12:05

Help !!!
 
Hello i am trying to solve a transport equation using user defined scalar.In this equation i want to customorise the differential transport equation by using userdefined function DEFINE_UDS_FLUX (please see 4.3.19). my function is as follows-------------------------------------------------------------------- ---------------------------------- DEFINE_UDS_FLUX(UDS_flux, f, t, i) { real rho; rho = C_R(f,t); return F_FLUX(f, t)/rho; }

------------------------- THe problem is it gives segmentation error duing solution process. I guess there is problem at boundaries. How can i correct it. please help me in inroducing some additional loops like if (NULL != THREAD_T1(f,t)) etc or else give me some suggestions.

bye kethireddy

ap July 5, 2004 14:51

Re: Help !!!
 
The error is here:

rho = C_R(f,t);

you're using a C_ macro, which reads a *cell* data, passing to it a face (f) argument.

Hi :)

ap

kethireddy July 6, 2004 05:17

Re: Help !!!
 
Hello thanks for your email. i am sorry to say that i typed here incorrectly. I used rho= F_R(f,t) even then there is an error please guide me bye kethireddy


All times are GMT -4. The time now is 13:26.