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 |
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 |
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. |