Problem with UDF (BC with refering other BC )
Dear users
When I trying to define BC(Inlet) which is temperature as a function of Outlet temperature. as follow T of Inlet = T of Outlet + 1.0 C I don't have any problem in interpreting. But when I try to initializing, I have an error by Fluent : Fatal signal (Access_Violation) Here is my UDF code #include "udf.h" DEFINE_PROFILE(temp, thread, i) { Thread *t; int ID = 13; /* Zone ID of Oulet */ Domain *domain = Get_Domain(1); face_t f; t = Lookup_Thread(domain, ID); begin_f_loop(f,thread) { F_PROFILE(f, thread, i) = F_T(f,t) + 1.0; } end_f_loop(f,thread) } I use a same shape of Inlet and Oulet face (mesh or number of grid). How can I modify my UDF to escape this situation? Is it possible to refer other Boundary Conditions such as temperature every steps? please help me.. I don't know what to do this moment. |
Initializing
If I initialize with constant Temperature not UDF at First. There is no problem. and then I changed BC with UDF as above.
Because I think there is no value to refer at the begining of analysis. But after analysis, it seems like UDF dose not effect. Outlet temperature decreased with iteration (physically temperature of Outlet should increase). How can I modify my UDF if I want to change Inlet temperature with every iteration? |
Quote:
|
All times are GMT -4. The time now is 11:06. |