|
[Sponsors] |
Syntax errors with Thread Types and Wall Heat Transfer calculation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 22, 2011, 05:55 |
Syntax errors with Thread Types and Wall Heat Transfer calculation
|
#1 |
New Member
Jesus Contreras Espada
Join Date: Aug 2011
Location: Switzerland
Posts: 12
Rep Power: 15 |
Hello,
I am trying to let Fluent calculate the temperature of a wall that gives a certain heat flux at the end of the calculation. First i run some iterations with a constant temperature at the wall and then I compile (interpreted) the udf and assign it to the wall temperature. The code looks like this: #include"udf.h"The line "if(THREAD_TYPE(f_thread) == THREAD_F_WALL)" does not work. I thought it should be quite easy to verify if a thread is a wall, but I always get the error message "structure reference not implemented". Maybe it has something to do with the installation or the version. I use Fluent 13.0.0. The macro BOUNDARY_HEAT_FLUX(f,f_thread); gives after 1 iteration "access violation" as output and I have to restart FLUENT. Finally abs() doesn't work either, since there is no math.h file in the src directory. Any idea how to overcome this? I would be very thankful, if someone could help. Thanks in advance and best regards. J. |
|
August 22, 2011, 06:24 |
Correction
|
#2 |
New Member
Jesus Contreras Espada
Join Date: Aug 2011
Location: Switzerland
Posts: 12
Rep Power: 15 |
Sorry, the calculation of the correction factor is missing in the code.
There is a line looking like this between the two big loops: alpha = curr_heat / end_heat; |
|
March 16, 2012, 03:23 |
|
#3 |
Member
Join Date: Mar 2011
Posts: 50
Rep Power: 15 |
what does this statement mean?
if(THREAD_TYPE(f_thread) == THREAD_F_WALL) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf problem | jane | Fluent UDF and Scheme Programming | 37 | February 20, 2018 05:17 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
how to impose experimental dat as boundary conditi | Rogerio Fernandes Brito | FLUENT | 14 | November 25, 2008 06:47 |
heat transfer fluid-wall | marco | FLUENT | 7 | November 20, 2005 12:34 |
Pipe wall temperature | Fred Uckfield | Main CFD Forum | 25 | May 22, 2000 15:37 |