CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Access to wal temperature with turbulentHeatFluxTemperature bc

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2013, 07:38
Default Access to wal temperature with turbulentHeatFluxTemperature bc
  #1
New Member
 
Join Date: May 2013
Posts: 1
Rep Power: 0
nailzee is on a distinguished road
Hi Foamers,

I'm new to OpenFoam and have no idea about C++ but I was still able to put together a postprocessing tool that calculates the y+, u+ and T+ values in a channel stream for isothermal boundary conditions.

Now I'm trying to modify this tool so it can be used for isoflux boundary conditions but it failed to output the correct wall temperature.

The boundaryField for T in my final time folder looks like this

Quote:
wall
{
type turbulentHeatFluxTemperature;
gradient uniform 33490.6;
heatSource flux;
q uniform 1000;
alphaEff kappaEff;
value nonuniform List<scalar>
125
(
3535.19
3535.37
3535.5
3535.54
3535.55
3535.56
3535.56
(several similar values)
)
;
but when I try to access in it in my tool with T.boundaryField() it displays following results

Quote:
type turbulentHeatFluxTemperature;
gradient uniform 0;
heatSource flux;
q uniform 1000;
alphaEff kappaEff;
value nonuniform List<scalar>
125
(
3367.74
3367.92
3368.04
3368.09
3368.09
(several similar values)
I noticed that the 33xx values are the ones of the first cell near the wall. So I tried the sample tool with

Quote:
surfaceFormat raw;

surfaces
(
wall
{
type patch;
patches ("wall");
}
and it writes out the correct values for the wall. Then I tried to look up how the sample tool accesses the values of a surface but couldn't find anything with my non existing C++ knowledge.
Anyone has any idea how to do that?

Thanks in advance.
nailzee is offline   Reply With Quote

Old   January 21, 2014, 12:40
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
I am not sure, but perhaps this helps: http://www.cfd-online.com/Forums/ope...hi-patchi.html

Are you really using always the surface values? Is your tool using boundary.correct() (or what happens if you add it)?
jherb is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Temperature / Opening Temperature JulianP CFX 12 April 10, 2019 18:00
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Can we have access temperature derivatives??? behrang2009 Fluent UDF and Scheme Programming 0 July 29, 2010 19:21
High temperature methane+air Peter FLUENT 5 January 26, 2009 18:04
An issue with temperature change in unsteady prob Ashok kumar FLUENT 1 January 13, 2009 04:34


All times are GMT -4. The time now is 15:28.