Connect a UDF file to the simulation results to calculate an index

  • 18 Views
  • Last Post 4 weeks ago
Nimaizadyar posted this 5 weeks ago

My question is about the interaction between Fluent and my UDF file. I have provided a UDF file based upon the Predicted Mean Vote (PMV) equation for finding thermal comfort. This index is calculated based on output wind speed and temperature (PMV= Function of [V(u, v, w), Temperature]).

I have interpreted this UDF file, and Fluent has accepted this file. However, I don't know how I should connect this UDF to the Fluent, to have the PMV results after simulation. Is it possible to find PMV as a new parameter based on wind speed and temperature in all spots, or at least a selected part of the model (indoor area)?

I have tried to use parameters & Customization to defined an Input and output. However, I don't know how I should connect the output wind speed and T from the simulation as the input of the PMV UDF file. It would be much appreciated if you could please advice me regarding this matter. 

 

Order By: Standard | Newest | Votes
rwoolhou posted this 4 weeks ago

It depends on how you implemented the model. Where did you store the result of the calculation? 

  • Liked by
  • Nimaizadyar
Nimaizadyar posted this 4 weeks ago

Thank you very much for your reply. I have written the results on a text file, including velocity vectors, the magnitude, and temperature.

Nimaizadyar posted this 4 weeks ago

I have interpreted the UDF file, but I have not made any variable or parameters. So, I reckon I should make a variable or connect UDF to my perspective V and T results before the simulation would be started.

rwoolhou posted this 4 weeks ago

There are two parts to this type of UDF. 

1) Take data from Fluent to create a new result

2) Output that result in a useful format.  

I'd suggest reading up on User Defined Memory (UDM) for part two. 

  • Liked by
  • Nimaizadyar
Close