CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF need Help

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2023, 04:12
Question UDF need Help
New Member
Join Date: Aug 2023
Posts: 5
Rep Power: 2
Dinghc is on a distinguished road
Hello everyone!

I read a data table of saturated pressure and saturated temperature in Fluent. This table determines the corresponding temperature or pressure for a saturated state using linear interpolation. However, how can I obtain a pointer to this table in a User-Defined Function (UDF)?

In the UDF documentation, I came across a macro that returns the corresponding saturated pressure in the table based on temperature:
`Get_Tabular_P_Given_T(tabular_data, T)`

However, this macro requires a pointer to the data table `tabular_data` as an input. How can I obtain this pointer within the UDF?

Alternatively, are there other methods, such as directly defining this data table within the UDF? If so, how would I go about doing that?

Dinghc is offline   Reply With Quote

Old   August 22, 2023, 02:34
Senior Member
Join Date: Apr 2013
Posts: 2,342
Rep Power: 33
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
DEFINE_MASS_TR_PROPERTY (name, f, tf, c, tc, from_phase_index, from_species_index,to_phase_index, to_species_index, mass_transfer_index, tabular_data)
best regards

press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
udf for one dimensional linear motion based on force maccheese Fluent UDF and Scheme Programming 2 September 1, 2019 03:18
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 13:43
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 09:27.