increasing the face area by a factor.
Heat exchangers may have fairly complicated fins associate with it. Clients prefer to model such heat exchanger by assuming it as a straight tube bundle but with increase surface areas. Is there anyway to increase the surface area by overwriting it? Following DEFINE_ON_DEMAND UDF can be used for this purpose. However, user should be aware that such modifications of face area may affect the flow-field near the walls. ***************************************************************************** #include "udf.h" #include "sg.h" #include "mem.h" #include "metric.h" DEFINE_ON_DEMAND(increase_area) { Domain *domain=Get_Domain(1); Thread *t; face_t f; thread_loop_f (t,domain) if(THREAD_TYPE(t) == THREAD_F_WALL) { real effective_area_ratio = 1.5; begin_f_loop(f,t) { /* NV_V(F_AREA_CACHE(f,t), *=, effective_area_ratio);*/ NV_VS(F_AREA_CACHE(f,t), =, F_AREA_CACHE(f,t),*,effective_area_ratio); } end_f_loop(f,t) } } ***************************************************** This udf needs to be COMPILED. After compilation, initialize the flowfield and then use : Define-->User defined-->Execute on demand ---> increase area -->execute |
||
![]()
|