|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Haocheng_Ding
Join Date: Aug 2023
Posts: 5
Rep Power: 2 ![]() |
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? Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,342
Rep Power: 33 ![]() ![]() |
Code:
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 |
|
![]() |
![]() |
![]() |
Tags |
udf;saturation;tabular |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |