-
-
November 16, 2018 at 11:51 am
Max4
SubscriberHi everyone,
As an attachment, an illustration of the problem. This models a cylinder with an inlet and outlet and piston movement.
- Case 1: When the piston goes down, we have mass flow at intlet and a closed outlet.
- Case 2: When the piston goes up, we have a closed inlet and a pressure at outlet.
I have write the UDF for the movement of the piston.
I want to write a UDF for the inlet and outlet depending on the movement of the piston, i.e. when the acceleration is negativ (Case 1) -> mass flow of x kg/s ; when the acceleration is positiv (Case 2) -> pressure of X Pa
Do i have to use UDM Macros ? In order to change the type of the boundary (mass flow inlet to wall), may I have to use a Scheme file and the TUI-Command or use a journal file?
Thank you.
Regards,
Maxime -
November 16, 2018 at 12:12 pm
DrAmine
Ansys EmployeeYes to change the kind of boundary you need to use scheme. So mixture of UDF and Scheme is required here. Or just use Dynamic Mesh Events to change a boundary type after certain time lasted.
-
November 16, 2018 at 12:25 pm
Max4
SubscriberThank you for your reply. I can´t use Events because I want to do it for a random velocity profil, but good to know that it exists.
In the UDF for the movement of the piston, I have defined the velocity. Can I just define a variable (e.g. acceleration = -sin(..*time)) which has no effect for this UDF, but which is mandatory for the inlet/outlet boundaries UDF? In order to use this variable (acceleration) for the UDF of inlet/outlet, may I have to use UDM?
Regards,
Maxime
-
November 16, 2018 at 12:58 pm
DrAmine
Ansys EmployeeYes you can use the UDM's as placeholder for that.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- 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
-
2688
-
2138
-
1355
-
1140
-
462
© 2023 Copyright ANSYS, Inc. All rights reserved.