|
[Sponsors] |
September 24, 2013, 04:16 |
impose temperature udf
|
#1 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 12 |
Hi,
I want to impose a different temperature a different time, i want to impose 700K between t=0 and t=10s and T=400 K between t=10s and t=50s, can you see this udf and suggest me a correction, please? Code:
#include "udf.h" DEFINE_PROFILE(inlet_temperature,t,i) { real x[ND_ND]; real r; face_t f; real dt=CURRENT_TIME; begin_f_loop(f,t) { F_CENTROID(x,f,t); if ( dt <= 10) F_PROFILE(f,t,i) =700; } if (10 < dt <= 50) F_PROFILE(f,t,i) =400; end_f_loop(f,t) } |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Temperature boundaries Condition | sylvix48 | Fluent UDF and Scheme Programming | 3 | July 20, 2012 12:26 |
UDF for heat convection coefficient with fixed surface temperature | Boo85 | Fluent UDF and Scheme Programming | 2 | July 10, 2012 18:43 |
Please Help! Temperature profile UDF for 3D geometry | subhankar_bhandari | FLUENT | 2 | April 16, 2011 05:30 |
how to write a 3D linear temperature of UDF | venus | FLUENT | 1 | October 28, 2008 02:46 |
ho to input a computed temperature value in a UDF | mcb | FLUENT | 0 | March 7, 2007 06:06 |