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

Access to wal temperature with turbulentHeatFluxTemperature bc

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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, 13:40
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 296
Rep Power: 9
jherb is on a distinguished road
I am not sure, but perhaps this helps: difference between U().boundaryField()[patchI] and U().boundaryField()[patchI].patchI

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

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
Static Temperature / Opening Temperature JulianP CFX 6 March 23, 2013 17:03
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 19:04
An issue with temperature change in unsteady prob Ashok kumar FLUENT 1 January 13, 2009 05:34


All times are GMT -4. The time now is 10:02.