TAGGED: #fluent-#ansys, udf
-
-
September 14, 2024 at 4:30 pm194106015Subscriber
Below 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 pmRobForum Moderator
OK, 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.
- Non-Intersected faces found for matching interface periodic-walls
- Script error Code: 800a000d
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Fluent fails with Intel MPI protocol on 2 nodes
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- error udf
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
-
1406
-
599
-
591
-
550
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.