|
[Sponsors] |
November 22, 2018, 08:29 |
user defined function
|
#1 |
New Member
sree charan teja
Join Date: Oct 2018
Posts: 8
Rep Power: 8 |
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) } |
|
November 22, 2018, 08:43 |
|
#2 |
Member
mohamed
Join Date: Apr 2016
Posts: 34
Rep Power: 10 |
see the udf manual
|
|
|
|
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 |