March 10, 2022 at 4:16 amskdubeySubscriber
I am trying to learn about the "UDF" in my application. I used the simple pipe case, at the initial inlet Pressure will increase with the flow-time and later on become a steady state. Outlet pressure is at 0 pa (gauge pressure). I am trying to plot the Inlet face pressure vs flow time, which should be a simple ramp-step function. I am not sure, I am not getting the desired ramp-step when I plot. I am not sure why my for loop is not read, is there anything wrong with the codes any suggestionsMarch 10, 2022 at 2:27 pmDrAmineAnsys EmployeeDo you require an UDF for that? Actually a simple Fluent Expression will fit in. Even a transient table or profile will fit in.
Other point: Where are you hooking the UDF? Screenshot of panel, please.
March 10, 2022 at 2:30 pmRobAnsys EmployeeI tend to use IF statements and keep things simple. So,
IF time< 10 pressure = whatever
ELSE pressure=something else
March 10, 2022 at 2:55 pmDrAmineAnsys Employeethe slope is better handle via something like
myvalue= Current_Time*max_value/max_time that value to be hooked as Total Pressure in the Inlet Panel (assuming subsonic inlet where only that input is required).
And again better to use Expressions...
March 10, 2022 at 5:12 pmMarch 11, 2022 at 7:18 amDrAmineAnsys Employee:)
Viewing 5 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Earth Rescue – An Ansys Online Series
Ansys BlogTrending discussions
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
© 2023 Copyright ANSYS, Inc. All rights reserved.