TAGGED: fluent, user-defined-functions
-
-
August 2, 2023 at 6:05 pm
Ayaaz Yasin
SubscriberIs there a way to set the temperature of the new mass being added by a UDF mass source? I ran a simple test case and it looks like the UDF mass source adds new mass at a constant 298.15 K. However, I could not find a way to change this temperature. The only solution I have is to add a heat sink UDF to the same domain and remove enough heat to cool the new mass to the desired temperature (~21 K). This does not work as intended and cools the neighboring region as well. Is there a way to directly change/set the temperature of the UDF mass source without the need for additional UDFs?
-
August 3, 2023 at 10:20 am
Atharva Nagarkar
SubscriberHello
The temperature can be set by specifying the appropriate energy source. For the energy equation, add a source that is to be calculated from the mass source, the heat capacity (Cp) and the desired temperature. If no adjustment to the energy equation is made, the species sources are treated as entering at T_ref = 298.15 K. Here is the link from the Ansys manual on how to add a source term in a UDF.
2.3. Model-Specific DEFINE Macros (ansys.com) - Check section 2.3.43
Note that you should add momentum sources unless the mass that enters is at rest.
If you are not able to access the link, please refer to this forum discussion: Using Help with links (ansys.com)
Thanks!
-
- 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.
- License Error
- Error with workbench SceneGraphChart
- Sizing on Ansys Workbench 19.2
- Workbench not opening
- Error: Exception of type ‘Ansys.Fluent.Cortex.Cortex not availableException’ was thrown
- Workbench error
- how to open DesignModeler
- FlexNet Licensing – Not running
- Problem with FlexNet Licensing
- An error occurred when the post processor attempted to load a specific result.
-
7658
-
4476
-
2957
-
1433
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.