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

user defined function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2018, 08:29
Default user defined function
  #1
New Member
 
sree charan teja
Join Date: Oct 2018
Posts: 8
Rep Power: 8
ASCT is on a distinguished road
Hi guys, I am new to udf flent. i wanted to give a temperature profile along the wall, so I wanted to create a udf for temperature change along the wall as a function of length of the nozzle. I have created one, can anyone please tell me if its correct

#include "udf.h"

DEFINE PROFILE(temp,t,i)
{
real x[ND_ND];
real x0;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
x0=x[0];

F_PROFILE(f,thread,position)=T_n+(T_(n+1)-T_n)*(z-z_n)/(z_(n+1)-z_n);
}
end_f_loop(f,t)
}
ASCT is offline   Reply With Quote

Old   November 22, 2018, 08:43
Default
  #2
Member
 
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10
moh_zain is on a distinguished road
see the udf manual
moh_zain 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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
How to use date from previous time step in user defined field function? samantkumarnagraj STAR-CCM+ 2 December 12, 2014 07:08
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Help: user defined function alice FLUENT 3 December 13, 2000 01:10


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