|
[Sponsors] |
A UDF to stop an unsteady run calculation based on the pressure in the fluent |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 9, 2023, 09:41 |
A UDF to stop an unsteady run calculation based on the pressure in the fluent
|
#1 |
New Member
seyed mohammad
Join Date: Dec 2023
Location: tehran
Posts: 1
Rep Power: 0 |
Hello
I have an unsteady 2D simulation in Fluent that needs a UDF to stop an unsteady run. This UDF should calculate the minimum pressure (according to the pressure versus time diagram) and stop the run when it reaches the minimum pressure. I think it's not difficult to write the UDF code, but I can't find of a way to import it into Fluent. If anyone has information about this (writing the UDF code and importing it to Fluent), I would be grateful if you could help me. (I have attached a picture of the step that needs to be stopped.) |
|
December 11, 2023, 05:53 |
|
#2 |
New Member
Join Date: Sep 2020
Posts: 18
Rep Power: 6 |
Hi,
You must hook your UDF in the Execute on Demand. There you can see the options to start and stop the simulations. Best Regards, Prasant K |
|
January 1, 2024, 01:32 |
2D simulation in Fluent and require a UDF
|
#3 |
New Member
NO
Join Date: Nov 2023
Posts: 1
Rep Power: 0 |
Hello,
I'm working on an unsteady 2D simulation in Fluent and require a UDF to halt the run based on a minimum pressure threshold from a pressure versus time plot. While I'm confident in creating the UDF code, I'm struggling with the process of importing it into Fluent. Any guidance on both coding the UDF and importing it into Fluent would be immensely appreciated. Thank you. |
|
January 2, 2024, 06:14 |
|
#4 |
New Member
Join Date: Sep 2020
Posts: 18
Rep Power: 6 |
Hi,
It is a simple process, First of all, You should have Visual C++ installed on your computer. Ansys Fluent detects the VC++ software if it is installed on your computer. Once this process is done, then you need to compile your UDF in fluent. If no errors are found while compiling, Then your UDF works perfectly. I don't have the software now. If you have the software, please reach out to me on prasant.karedla@outlook.com. I will show you how to compile the UDF in Ansys Fluent via Teams calling or Google meet. Fastest way is to refere Ansys Fluent Documentation on How to compile UDF. Ansys have perfect documentation on Compiling UDF's and explanation of different Macro's. Best Regards, Prasant Karedla |
|
Tags |
compile a udf, fluent, udf, unsteady |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
viscosity udf don't use correct temperature and strain rate | rezvani | Fluent UDF and Scheme Programming | 8 | May 27, 2021 06:40 |
How can I stop the calculation in UDF | Seyoung Oh | Fluent UDF and Scheme Programming | 1 | September 24, 2013 08:44 |
UDF to define or adjust pressure??? | engahmed | FLUENT | 0 | July 6, 2010 18:19 |
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) | HB &DS | CFX | 0 | January 9, 2000 14:19 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 16:00 |