CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to select just the wall between Fluid and solid?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2017, 10:42
Default How to select just the wall between Fluid and solid?
  #1
Member
 
Join Date: Nov 2016
Posts: 73
Rep Power: 7
h0rst is on a distinguished road
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
h0rst is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 01:04
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


All times are GMT -4. The time now is 04:23.