CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to control the boiling zone

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2022, 10:03
Default How to control the boiling zone
  #1
New Member
 
Hengyuan Zhang
Join Date: Jun 2022
Location: Hangzhou,Zhejiang Province,China
Posts: 1
Rep Power: 0
ZhangHengyuan is on a distinguished road
I am modelling a gas-liquid two-phase model with a boiling process(VOF model for now),and I want to keep the boiling process in a fixed area.
I set the overheat temperature to 374K, and I hope to get a steady boiling height. I have tried to define the relationship between saturation pressure and boiling point in a table or UDF. But in this way, I still cannot control the boiling height precisely.
Then I am wondering if I can defining the relationship between property and position.

The original udf is shown below:

#include "udf.h"
DEFINE_PROPERTY(saturation_temp,c,t)
{
real sat_t;
real vapor_p;
real static_p;
real operating_p;
static_p=C_P(c,t);
operating_p = RP_Get_Float("operating-pressure");
vapor_p = static_p + operating_p;
sat_t = 1723.6425/(8.05573-log(vapor_p/133.322))-233.08+273.15;
return sat_t;
}

Then I want to define the property changing with height in order to control the bioing zone(represented by height Y), so I changed the UDF then it comes to a failure:

#include "udf.h"
DEFINE_PROPERTY(saturation_temp,c,t)
{
cell_t c;
Thread *t;
real xc[ND_ND];
real x;
real y;
real sat_t;
real vapor_p;
real static_p;
real operating_p;
thread_loop_c(t,d)
{
begin_c_loop_all(c,t)
{
x=xc[0];
y=yc[1];
if (y<0.6||y>0.8)
sat_t = 500
else
static_p=C_P(c,t);
operating_p = RP_Get_Float("operating-pressure");
vapor_p = static_p + operating_p;
sat_t = 1723.6425/(8.05573-log(vapor_p/133.322))-233.08+273.15;
return sat_t;
}
end_f_loop(c,t);
}
}


So, if it possible to define the property, saturation temp, changing with location?And if there's any other way to control the boiling height exactly?
ZhangHengyuan is offline   Reply With Quote

Old   July 1, 2022, 03:51
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
i recommend you to compile your code always, so you would see where the problem is
xc is not defined in your code

Code:
C_CENTROID(xc,c,t);
x=xc[0];
y=xc[1];
part of code after esle should be in brackets
Code:
{static_p=C_P(c,t);
operating_p = RP_Get_Float("operating-pressure");
vapor_p = static_p + operating_p;
sat_t = 1723.6425/(8.05573-log(vapor_p/133.322))-233.08+273.15;}
ZhangHengyuan likes this.
__________________
best regards


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

Reply


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
CFX FSI Fatal Error unbanana CFX 0 October 3, 2015 05:57
Error in solution using "Grid Interface" agustinvo FLUENT 4 January 20, 2015 12:03
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 01:08


All times are GMT -4. The time now is 00:38.