|
[Sponsors] |
Time and Temperature dependant heat source term |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 15, 2018, 03:19 |
Time and Temperature dependant heat source term
|
#1 |
New Member
Join Date: Sep 2018
Posts: 6
Rep Power: 8 |
Dear all
I'm new with fluent macros and i was wondering is there a way to write a both time and temperature dependant heat source term? i have already used a time dependant one but what i wanted to know is that is it possible to use a temperature dependent term in my code or not,, Tnx in advance |
|
September 16, 2018, 04:51 |
|
#3 |
New Member
Join Date: Sep 2018
Posts: 6
Rep Power: 8 |
Dear blackmask
thanks for your reply but is it possible to use C_T macro for a solid zone? |
|
September 17, 2018, 11:14 |
|
#4 |
New Member
Join Date: Sep 2018
Posts: 6
Rep Power: 8 |
#include "udf.h"
#define C1 -6.097e+05 #define C2 113.6 #define C3 2187 #define C4 0.004097 #define C5 -0.276 DEFINE_SOURCE(heat_gen,cell,thread,dS,eqn) { real source; real time; time = CURRENT_TIME; source =C1+C2*time+C3*C_T(cell,thread)+C4*pow(time,2)+C5* time*C_T(cell,thread) dS[eqn] = 0; return source; } I have used this code for a time & temperature dependent heat source but when i compile it i get C:/Users/Farshad/AppData/Local/Temp/osso.c.7728.0.c: line 13: parse error. i dont know what's wrong with it,can anyone help me out please? |
|
September 18, 2018, 08:28 |
|
#6 |
New Member
Join Date: Sep 2018
Posts: 6
Rep Power: 8 |
God bless you dear blackmask what a simple mistake...
thanks for answering me |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion | faizan_habib7 | CFX | 4 | February 1, 2016 18:00 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |