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

Temp dependent emissivity udf

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 5, 2014, 08: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, 15 views)
rossyd89 is offline   Reply With Quote

Old   September 25, 2014, 11:22
Default
  #2
New Member
 
Christina P.
Join Date: Oct 2012
Posts: 22
Rep Power: 5
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, 14:11
Default
  #3
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Laval University, Canada
Posts: 380
Rep Power: 9
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, 07: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

Reply

Tags
emissivity, temperature dependent, udf

Thread Tools
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 On
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 08: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 02: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 16:45.