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

Problems in the UDF for DPM erosion

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2014, 06:29
Default Problems in the UDF for DPM erosion
  #1
New Member
 
Happy_weekend
Join Date: Jan 2014
Posts: 21
Rep Power: 12
Messi is on a distinguished road
Hi, I am using DEFINE_UDF_EROSION to compute the deposition rate in the wall.

However, there are several codes in the UDF I could not understand. Could you help me for this?

1, It has defined for the 'WALL_CONDITION =2' in the UDF code. So, how could the wall condition=1 or 0??

2, I have shown all codes that contain 'WALL_CONDITION' underneath.

3, I don't understand what does 'WALL_CONDITION' mean? Is it come from the settings in the fluent or is it come from the computation results in the fluent?

4, The author explained what 0, 1,2 mean in the code
/* 0 for none stick new wall
1 for old wall that has deposit on and use the T_melt_wall given above
2 for old wall that has deposit on and the T_melt_wall will calculated as a function of the compositions of wall deposition using the same equations as for particles*/



Any help would be appreciated. Thanks in advance.

Code:
/*Wall sticking condition*/

#define WALL_CONDITION 2	
       eta3 = 0;
	if (WALL_CONDITION == 1)  /* what does wall condition==1 mean? */
	{
		if (F_T(f,t) > T_shift_wall)
			eta3 = 1;
	}

	if (WALL_CONDITION == 2) /* what does wall condition==2 mean? */
	{
		T_shift_wall = F_T(f,t);
		m = 0.00835 * SiO2 + 0.00601 * Al2O3 - 0.109;
		c = 0.0415 * SiO2 + 0.0192 * Al2O3 + 0.0276 * Fe2O3 + 0.016 * CaO - 3.92;
		y = pow(10, 7) * m / T_shift_wall + c;
		muw = pow(10, y) / 10;
		
		if ((F_T(f,t) <= T_shift_wall) && (muw <= muc))
		{
			eta3 = 1;
		}
	}

	if (WALL_CONDITION == 0) /* what does wall condition==0 mean? */
	{
		eta3 = 0;
	}
Messi is offline   Reply With Quote

Reply

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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
Windows Environment variables- to solve problems in compiling UDF in Fluent Modest Cat Fluent UDF and Scheme Programming 39 May 18, 2016 11:33
Erosion UDF in Eulerian approach sravan451 FLUENT 0 September 16, 2010 23:52
problems with UDF to set contact angle poiuy219 Main CFD Forum 0 April 30, 2009 11:43
udf begin_c_loop problems Abigail FLUENT 0 September 27, 2006 10:41


All times are GMT -4. The time now is 01:05.