KR401: How can we read the experimental/tabulated values of material properties or profiles using a UDF? (Solution ID: 1338)


FLUENT provides for a variety of methods for specifying material properties, including polynomial functions, piece-wise linear functions, etc. User-defined functions can also be used to specify material properties and variable profiles. However, using tabulated experimental data or complicated functions that cannot be easily expressed analytically is difficult.

The attached user-defined function demonstrates how tabulated data can be read into FLUENT and used to specify a material property in a UDF. The example corresponds to specifying the viscosity as a function of temperature. The tabulated data should be in an ascii file (two column format) and the number of rows in the file is specified in the UDF. In this example, the data file is called "viscosity.dat" and there are 53 rows (pairs) of data. The viscosity will be linearly interpolated between the tabulated values.





Show Form
No comments yet. Be the first to add a comment!