CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > CFD Freelancers

A UDF to stop an unsteady run calculation based on the pressure in the fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2023, 09:41
Default 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
smh7 is on a distinguished road
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.)
Attached Images
File Type: jpg Screenshot 2023-12-09 171635.jpg (100.9 KB, 12 views)
smh7 is offline   Reply With Quote

Old   December 11, 2023, 05:53
Default
  #2
New Member
 
Join Date: Sep 2020
Posts: 18
Rep Power: 6
PrasantKaredla is on a distinguished road
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
PrasantKaredla is offline   Reply With Quote

Old   January 1, 2024, 01:32
Default 2D simulation in Fluent and require a UDF
  #3
New Member
 
NO
Join Date: Nov 2023
Posts: 1
Rep Power: 0
Julian758 is on a distinguished road
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.
Julian758 is offline   Reply With Quote

Old   January 2, 2024, 06:14
Default
  #4
New Member
 
Join Date: Sep 2020
Posts: 18
Rep Power: 6
PrasantKaredla is on a distinguished road
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
PrasantKaredla is offline   Reply With Quote

Reply

Tags
compile a udf, fluent, udf, unsteady

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:42.