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

Boundary condition profiles for temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2014, 22:39
Red face Boundary condition profiles for temperature
  #1
Member
 
Mohamed
Join Date: Jan 2011
Location: Algeria
Posts: 46
Rep Power: 15
B.Hamada is on a distinguished road
please, can anyone help me to make BC profile file for temperature data exist, i have the data file for temperature variation with time.

HTML Code:
Time (s)	        Temperature (K)
0			307,5
60			307,5
120			307,5
180			307,5
240			307,5
300			307,4
360			307,4
420			307,3
480			307,2
540			307,2
600			307,1
660			307,1
720			307,1
780			307,1
840			307,1
900			307,1
960			307,1
1020			307,1
1080			307,1
1140			307,1
1200			307,1
1260			307,1
1320			307,1
1380			307,2
1440			307,2
1500			307,2
1560			307,2
1620			307,2
1680			307,2
1740			307,1
1800			307,1
1860			307,1
1920			307,1
1980			307,2
2040			307,2
2100			307,2
2160			307,2
2220			307,1
2280			307,1
2340			307,1
2400			307
2460			307
2520			307
2580			307
2640			307
2700			307
2760			306,9
2820			306,8
2880			306,8
2940			306,9
3000			306,9
3060			306,9
3120			306,8
3180			306,8
3240			306,8
3300			306,8
3360			306,8
3420			306,8
3480			306,7
3540			306,7
3600			306,7
Attached Files
File Type: txt Data.txt (726 Bytes, 2 views)
B.Hamada is offline   Reply With Quote

Old   July 9, 2014, 07:48
Default
  #2
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
something like this:
Code:
#include "udf.h"

DEFINE_PROFILE(T_in, thread, position) 
{
	face_t f;
	real t = CURRENT_TIME;
	begin_f_loop(f, thread)
	{
	if (t <= 240)
		F_PROFILE(f, thread, position) = 307.5;
	else if (t <= 360)
		F_PROFILE(f, thread, position) = 307.4;
        ...
        ...
        ...
	else
		F_PROFILE(f, thread, position) = 306.7;
	}
	end_f_loop(f, thread)
}
macfly 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Outflow boundary condition in cartesian grid SIMPLE velocity-pressure coupling ghobold Main CFD Forum 9 September 19, 2015 02:50
Radiation interface hinca CFX 15 January 26, 2014 17:11
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 04:13
asking for Boundary condition in FLUENT Destry FLUENT 0 July 27, 2010 00:55


All times are GMT -4. The time now is 17:20.