CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   How to select just the wall between Fluid and solid? (https://www.cfd-online.com/Forums/fluent-udf/187471-how-select-just-wall-between-fluid-solid.html)

h0rst May 7, 2017 09:42

How to select just the wall between Fluid and solid?
 
Hello everyone,

I try to apply some own heat transfer coefficients between tube and fluid and therefore I need to select just the wall between.

In the boundary conditions, the wall is "zone_id 5" and the shadow wall is "zone id 10".

Now I want to see if the wallzone is selected right before I do some tests with own HTC. Therefore, I am writing the xyz coordinates to check. Unfortunately, too many zones are selected.*



My UDF is:


DEFINE_HEAT_FLUX(heat_flux, f, t, c0, t0, cid, cir)
{
real x[ND_ND];
Domain *d = Get_Domain(1);
Thread *thread = Lookup_Thread(d, 5);

begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
printf("x= %f y = %f z = %f\n", x[0], x[1], x[2]);
}
end_f_loop(f,thread)


Does someone see the problem?


Best regards
h0rst


All times are GMT -4. The time now is 06:49.