-
-
May 19, 2020 at 7:27 pm
Leen
SubscriberHi everyone,
I'm trying to implement a parabolic velocity profile at the inlet of a 3D pipe (for a steady flow case), the inlet itself is not perpendicular to any of the primary axes.
I used the following UDF:
After running the simulation, the result was a plug flow at the inlet of 7.07[m/s] as I implemented instead of parabolic profile. Furthermore, changing the radius units to [m] led to non-converged solution. I also tried implementing the UDF as a velocity magnitude (which gave a plug flow that developed to parabolic at the outlet) and as an axial velocity in cylindrical coordinates (gave reversed flow for all iterations).Â
I've tried other manipulations but nothing worked.
Finally, the easiest way to deal with this situation is to elongate the pipe and insert a constant velocity, then get the profile to develop, but in this case, the profile I get is not precise enough, Not to mention that it takes additional computational time which I'm trying to avoid due the complex geometry.Â
I'd appreciate your help,
Thanks,
-
May 19, 2020 at 8:43 pm
Kalyan Goparaju
Ansys EmployeeHello,Â
Since you know the equation of the parabola, you can use Expressions to directly input the velocity profile at the inlet, instead of using a UDF. Expressions are tailor-made for situations like.Â
Thanks,Â
Kalyan
-
May 19, 2020 at 8:51 pm
Leen
SubscriberHi Kalyan,
Â
I've tried doing so and got reversed flow for all the iterations.
-
May 19, 2020 at 8:55 pm
Kalyan Goparaju
Ansys EmployeeHello,Â
Can you share the screenshot of how you setup the expression at the inlet?Â
Thanks,
Kalyan
-
May 19, 2020 at 8:57 pm
Leen
Subscriber7.07[m/s]*(1-(x**2+y**2+z**2)/(1.5[mm])**2)
I tried inserting the expression into velocity magnitude and axial velocity (cylindrical coordinates)
-
May 21, 2020 at 1:08 pm
Leen
SubscriberHi everyone,
I found the problem, it looks like it is happening because my tube centroid wasn't at (0,0,0).
Does anyone how can I modify my UDF in order to calculate the inlet centroid? I tried using "begin_f_loopend_f_loop" twice, first I called it and searched for min and max f_centroid over all the faces and then I called it again in order to implement the profile over all the faces.Â
The UDF had no errors when interpreted but it gave me an error during initializing, I tried other UDF that worked previously and there was no issue, that is why I'm sure something is wrong with the current UDF.Â
Can anyone please help me?
Â
Thanks,Â
-
May 21, 2020 at 2:49 pm
Rob
Forum ModeratorYou just need to provide an offset to the coordinate, or move the mesh.Â
-
May 21, 2020 at 2:54 pm
Leen
SubscriberI know how to do that manually, but it would take a lot of time to do that for all the meshes. In addition, the tube is a part of complex geometries which makes it hard to transform the mesh. Â
-
July 10, 2023 at 1:38 pm
peppers
Subscriberhello leen,
Have you found a solution, how to overcome it so that the parabolic velocity profile does not occur reversed flow? because I also experienced that and when changing at a constant velocity reversed flow did not occurÂThank You -
July 10, 2023 at 1:59 pm
Rob
Forum ModeratorAnsys will answer in /forum/forums/topic/parabolic-velocity-profile-causes-reversed-flow/ but I'll leave this open for Leen if they're still monitoring the forum.Â
-
- The topic ‘getting a plug flow when implementing a parabolic velocity profile UDF in a 3D pipe’ is closed to new replies.
-
3407
-
1057
-
1051
-
896
-
887
© 2025 Copyright ANSYS, Inc. All rights reserved.