|
[Sponsors] |
September 24, 2013, 05:22 |
udf temperature
|
#1 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13 |
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) } |
|
September 24, 2013, 16:13 |
|
#2 |
New Member
Join Date: Jun 2013
Posts: 15
Rep Power: 13 |
Hi,
two things I noticed: 1. Try changing the 2nd if statement into conjuction of conditions, i.e. Code:
10 < dt && dt <= 50 Hope this helps, Regards, kornetka |
|
September 25, 2013, 09:57 |
|
#3 |
Member
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13 |
Yes! good
Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for Temperature Dependent Energy Source | er.mkumar | Fluent UDF and Scheme Programming | 9 | March 14, 2024 05:01 |
UDF temperature profile | asal | Fluent UDF and Scheme Programming | 67 | August 7, 2018 13:41 |
UDF slip and temperature jump from IFRT | abir | Fluent UDF and Scheme Programming | 1 | July 30, 2012 06:44 |
UDF or any approach for Bulk Temperature calculation | vemps | FLUENT | 0 | May 1, 2009 02:09 |
UDF reading the temperature gradient | Fabian | FLUENT | 1 | May 29, 2003 21:18 |