TAGGED: #fluent-#ansys, udf
-
-
September 14, 2024 at 4:30 pm
194106015
SubscriberBelow is the UDF i am using. I am getting same heat flux at al the faces but which is not the case. Pls help in this regard
#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);
Message(" heat_flux_ap= %g \n", heat_flux_ap);if ( heat_flux_ap >= 12100000)
{
mflux_ap = (heat_flux_ap * 0.0000004082) + 0.4538;
}
else
{
mflux_ap = 5.39302;
}
F_PROFILE(f, t, i) = mflux_ap;
}
end_f_loop(f, t)
} -
September 16, 2024 at 1:08 pm
Rob
Forum ModeratorOK, so mass flux is a function of heat flux. How are you setting the heat flux on a massflow boundary?
-
- You must be logged in to reply to this topic.
-
5694
-
1891
-
1419
-
1305
-
1021
© 2026 Copyright ANSYS, Inc. All rights reserved.