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

Temp dependent emissivity udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2014, 09:06
Default Temp dependent emissivity udf
  #1
New Member
 
Ross Drummond
Join Date: Aug 2014
Posts: 1
Rep Power: 0
rossyd89 is on a distinguished road
Hi,

I need to write a UDF for temperature dependent emissivity in a continuous annealing rig. However i get this warning when building,
udf_names.c : warning C4113: 'void (*)()' differs in parameter lists from 'void (*)(void)'
it then loads without error, but when initialising i receive these errors,
Error: received a fatal signal (Segmentation fault).
Error Object: #f
I'm really struggling any help would be appreciated.

Ross
Attached Files
File Type: c eudf.c (387 Bytes, 31 views)
rossyd89 is offline   Reply With Quote

Old   September 25, 2014, 12:22
Default
  #2
New Member
 
Christina P.
Join Date: Oct 2012
Posts: 22
Rep Power: 14
cp703 is on a distinguished road
Hey Ross, I'm encountering this exact situation. Did you ever figure out what the problem was?
cp703 is offline   Reply With Quote

Old   October 1, 2014, 15:11
Default
  #3
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi,

For some reason (bug?), you have to run the model with a constant external emissivity first. Then you set the external emissivity to 'my_emissivity':
Code:
#include "udf.h"
DEFINE_PROFILE(my_emissivity,t,i)
{
	real tempe;
	face_t f;
	
	begin_f_loop(f,t)
		{
		tempe = F_T(f,t);
		F_PROFILE(f,t,i) = 2.54e-4*tempe;
		}
	end_f_loop(f,t)
}
P.S. don't use 'temp' as a variable name because it overrides a previous definition in Fluent
macfly is offline   Reply With Quote

Old   October 12, 2014, 08:31
Default
  #4
New Member
 
rasoul sogvar
Join Date: Feb 2014
Posts: 1
Rep Power: 0
rasoul is on a distinguished road
hello,how do I write non bosinesq for simulation of free convection of water?
I need for udf file,please help me
rasoul is offline   Reply With Quote

Old   December 10, 2018, 10:50
Default
  #5
Member
 
Oula
Join Date: Apr 2015
Location: United Kingdom
Posts: 81
Rep Power: 11
Oula is on a distinguished road
Hi everyone

In my model there are some boundaries (walls) that their emissivities change with temperature. For example

at a specific wall
at T=200 C emissivity = 0.80
T=400 C emissivity = 0.82
T=600 C emissivity = 0.84

How can I write the suitable UDF for this case?

Any help is much appreciated
Oula is offline   Reply With Quote

Reply

Tags
emissivity, temperature dependent, udf


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
Problem in UDF time dependent vloumetric heat source eng_yasser_2020 Fluent UDF and Scheme Programming 0 March 30, 2014 09:07
Help with UDF ashrawage Fluent UDF and Scheme Programming 0 November 30, 2012 18:02
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 03:21
unsteady pressure, temp profile without a udf mahi FLUENT 0 November 10, 2008 04:53
UDF for time dependent heat flux Rameshwar Ajja FLUENT 0 February 16, 2006 01:26


All times are GMT -4. The time now is 22:53.