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

2D Static Gaussian heat flux udf

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2022, 11:12
Default 2D Static Gaussian heat flux udf
  #1
New Member
 
Join Date: Jan 2022
Posts: 1
Rep Power: 0
thermal_joe is on a distinguished road
Hello,
I’m facing a problem with the implementation of a 2d gaussian heat distribution (static).
The setup is simple, a steel plate with a top surface (where the heat flux is applied and the other surfaces are treated as a wall with a constant heat transfer coefficient.


The used udf is subsequently announced:
#include "udf.h"
#define rb 0.00235
#define f1 3
#define Q 1900

DEFINE_PROFILE(gauss_heat_flux,t,i)
{
real x[ND_ND];
real y,y1;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
y1=x[0];
F_PROFILE(f,t,i) = (Q/rb*rb)*exp(-(f1*(y*y+y1*y1))/rb*rb);
}
end_f_loop(f,t)
}

The result should be a small heated spot (at X=0,Y=0) with a gaussian heat flux distribution but what I got is a plain heated area.

I don't know what is the problem with my udf, something should be wrong.
Maybe someone has a clue about this problem.


With best regards
Joe
thermal_joe is offline   Reply With Quote

Reply

Tags
fluent -udf, heat flux udf, udf code

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
Creating a heat Flux UDF with a temperature Dependent argument nagas Fluent UDF and Scheme Programming 3 March 20, 2018 07:14
Difficulty with UDF code for HEAT FLUX etudiant_IITB Fluent UDF and Scheme Programming 1 December 7, 2015 08:07
Udf for moving heat flux in 2D cylindrical geometry devia21 Fluent UDF and Scheme Programming 0 April 20, 2015 00:27
UDF for time dependent stepwise heat flux profile bugrasss Fluent UDF and Scheme Programming 0 April 15, 2015 06:32
UDF for Heat Flux kishan kumar jaiswal FLUENT 4 April 21, 2014 18:01


All times are GMT -4. The time now is 18:02.