TAGGED: momentum-source, udf-fluent
-
-
February 17, 2022 at 9:14 pmloganszajneckiSubscriber
Dear colleagues,
I am trying to implement an x-momentum source term on a background grid using Fluent UDFs. See my source term below:
DEFINE_SOURCE(ALM,c,t,dS,eqn)
{
real xc[ND_ND];
real con, source;
C_CENTROID(xc,c,t);
source = C_UDSI(c,t,0);
dS[eqn] = 0;
return source;
}
Where C_UDSI(c,t,0) is a user defined scalar that is determined using an adjust macro. The value of C_UDSI(c,t,0) is a Gaussian distribution acting for a given region of cells and its implementation is presumably correct.
I am encountering issues with the source term implementation. Specifically, there is no change to the flow field when activating the source term. It is as if the source term is being neglected entirely; it introduces no change to the velocity of the flow in the defined region where UDS-0 acts. Any help would be appreciated. Thank you.
February 18, 2022 at 11:57 amRobForum ModeratorIf you plot the scalar what do you see? Remember the source you're adding is N/m3 so make sure the scalar value is big enough to be seen by the flow.
February 18, 2022 at 3:58 pmAmine Ben Hadj AliAnsys EmployeeIf you are not linearizing the source term so why not just using Fluent Expression to apply the source and here you can even visualize and easily debug....
Viewing 2 reply threads- The topic ‘X-momentum source using Fluent UDFs’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
Top Contributors-
1216
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-