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"

Domain *domain=Get_Domain(1);
Thread *t;
face_t f;

thread_loop_f (t,domain)
real effective_area_ratio = 1.5;
/* 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); }


This udf needs to be COMPILED. After compilation, initialize the
flowfield and then use :

Define-->User defined-->Execute on demand ---> increase area -->execute

Show Form
No comments yet. Be the first to add a comment!