|
[Sponsors] |
May 18, 2017, 08:22 |
UDF for vapor pressure
|
#1 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
Hello friends,
I have a temperature profile file (not udf but boundary profile in tabular form)as my wall BC. I thought my profile file is working fineas I get the expected Temperature change at wall from T plots after convergence. I have written a UDF to vary vapour pressure as a function of temperature. I have hooked it to the vapour pressure option while activating mass transfer from liquid to vapour>cavitation. It gets interpreted neatly and solution converges also.Now, the solution obtained is not showing the expected improvement (rather change) when compared to a case where Pv=const. My UDF looks like this. #include "udf.h" /*for Vapour pressure*/ DEFINE_PROPERTY(Vapour_pressure,c,t) { real T = C_T(c,t); real p_v; p_v = (0.00329*exp(0.19039*T) - 0.05762)*1000000.0; return p_v; } How will I know if this is working fine? Do I need to write the UDF specifically in terms of SUB_THREAD, SUPER_THREAD etc. I assumed that since I am calling UDF from vapour pressure options, it will take appropriately. Is that right? To check if it is a problem with the UDF, I changed vapour pressure to a polynomial fit and temperature as explained before(as boundary profile)and tried. This is not working either. Now I doubt whether I can give Twall as boundary profile. How to confirm this? Fluent user's manual and udf manual are so abstract on this topic. Is there any source from which I can read more on boundary profile and udf for vapour pressure? Has anybody done something similar? Any help is greatly appreciated. PS:edited title and re-posted a previous thread material to get better visibility. Pardon me if it caused any inconvenience. |
|
May 18, 2017, 10:28 |
vapour pressure change not accepted by Fluent
|
#2 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
Simulation_check1: Vapour pressure kept constant; energy equation switched ON with a UDF written for Twall.
Result: Predicted inlet temperature matched with experiment. Plotted wall temperature showed correct profile. Simulation_Check2: Energy OFF; vapour pressure was assigned a real constant value using a UDF. Result: Plotted pressure profile showed 3.5 bar inlet pressure instead of the expected 2.5 bar. Simulation_check3: Enenry ON; Pv defined as piecewise linear. Result: Plotted pressure profile showed 3.3 bar inlet pressure instead of the expected 2.5 bar. Previously when vapour pressure was constant and Energy eqn OFF, I got the correct inlet pressure. The moment I change vapour pressure from constant value, something is going haywire. Any solution? |
|
October 10, 2019, 05:21 |
|
#3 |
Member
Dnyanesh Mirikar
Join Date: Jul 2019
Posts: 35
Rep Power: 7 |
Did you able write correct UDF for vapor pressure? If you have, could you please share it with me? much appreciated. dnyansohm@gmail.com
|
|
October 21, 2019, 09:17 |
|
#4 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
yes, I got the vapour pressure UDF correctly. I have sent that to you by email.
|
|
January 24, 2020, 21:08 |
|
#5 |
Member
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11 |
||
February 4, 2020, 07:27 |
Vapour pressure udf
|
#6 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
Please give your mail id.
|
|
May 20, 2020, 21:54 |
|
#7 |
New Member
Hyungyu Lee
Join Date: Nov 2016
Posts: 3
Rep Power: 10 |
||
July 2, 2020, 21:59 |
|
#8 |
New Member
wugui Jiang
Join Date: Nov 2019
Posts: 3
Rep Power: 7 |
||
July 14, 2020, 14:02 |
|
#9 |
Senior Member
Arun raj.S
Join Date: Jul 2011
Posts: 207
Rep Power: 16 |
could you share the udf kindly. arunraj.v2009@gmail.com
|
|
March 3, 2021, 09:16 |
Vapour pressure udf
|
#10 |
New Member
hanzao
Join Date: Jan 2020
Posts: 1
Rep Power: 0 |
Could you share this udf with me? My email is leo.insa.lyon@gmail.com
Thanks a lot |
|
December 18, 2021, 06:57 |
|
#11 |
New Member
Join Date: May 2021
Posts: 5
Rep Power: 5 |
Would you be kind enough to send me this UDF? Here's my email:
Thanks! Last edited by Jakubano; December 25, 2021 at 11:57. |
|
December 23, 2021, 12:04 |
|
#12 |
New Member
Join Date: Sep 2011
Posts: 15
Rep Power: 15 |
||
December 24, 2021, 11:12 |
|
#13 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Whoever reads this and has this UDF, please post it below here. Otherwise, people will continue to post their email addresses here, and spammers will find them.
If after my message somebody still puts their email address below, those persons are not very smart.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
June 23, 2024, 14:12 |
|
#14 |
New Member
Linan Guan
Join Date: Sep 2021
Posts: 2
Rep Power: 0 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
Parallelize UDF? Which kind of UDF? | Lilly | FLUENT | 5 | March 25, 2014 03:05 |
Help! Delete the UDM codes in the UDF | Messi | Fluent UDF and Scheme Programming | 2 | January 28, 2014 10:01 |
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 |