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

Boundary mass flux interms of heat flux

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2024, 08:01
Default Boundary mass flux interms of heat flux
  #1
New Member
 
Neeraj
Join Date: Jul 2024
Posts: 3
Rep Power: 2
neerajpdh is on a distinguished road
Hello all,

I intent to find out heat flux at the inlet boundary and feed the mass flux that is the function of heat flux.
I have written a UDF for mass flux. I am not sure whether its correct or not as at each face cell i am getting the same heat flux.

#include "udf.h"

DEFINE_PROFILE(mass_flux_AP, t, i)
{
face_t f;
real NV_VEC(farea);
real mflux_ap;
real area_ap;
real heat_ap;
real heat_flux_ap;


begin_f_loop(f, t)
{


F_AREA(farea, f, t);
area_ap = NV_MAG(farea);
heat_ap = BOUNDARY_HEAT_FLUX(f, t);
heat_flux_ap= fabs(heat_ap /area_ap);

if ( heat_flux_ap >= 1200000)
{
mflux_ap = (heat_flux_ap * 0.0000002082) + 0.538;
}
else
{
mflux_ap = 5.9302;
}

F_PROFILE(f, t, i) = mflux_ap;
}
end_f_loop(f, t)
}


DEFINE_PROFILE(mass_flux_binder, t, i)
{
face_t f;
real NV_VEC(farea);
real mflux;
real area;
real heat;
real heat_flux;


begin_f_loop(f, t)
{

F_AREA(farea, f, t);
area = NV_MAG(farea);
heat = BOUNDARY_HEAT_FLUX(f, t);
heat_flux= fabs(heat / area);

if ( heat_flux >= 1200000)
{
mflux = (heat_flux * 0.00005374 )+ 1.82;
}
else
{
mflux =7.4;
}

F_PROFILE(f, t, i) = mflux;
}
end_f_loop(f, t)

}


Please help me in this regard.
neerajpdh is offline   Reply With Quote

Reply

Tags
heat flux udf, udf, udf customize

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
reverse flow in centrifugal fan blades kalm CFX 20 December 2, 2023 06:25
Centrifugal fan j0hnny CFX 13 October 1, 2019 13:55
Radiation interface hinca CFX 15 January 26, 2014 17:11
Low Mixing time Problem Mavier CFX 5 April 29, 2013 00:00
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05


All times are GMT -4. The time now is 07:31.