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

Output position information

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2015, 03:46
Default Output position information
  #1
Member
 
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12
nwpukaka is on a distinguished road
Hello,

I wrote a wallGradT which is adpated from wallGradU, however, it only output GradT, is it possible that the position information will also be written? it will be something like:

temperature pos.x pos.y pos.z

Can you show me how to do that?

Thanks in advance!
Kan

const fvPatchList& patches = mesh.boundary();

forAll(wallGradT.boundaryField(), patchi)
{
const fvPatch& currPatch = patches[patchi];

if (isA<wallFvPatch>(currPatch))
{
wallGradT.boundaryField()[patchi] =
// -T.boundaryField()[patchi].snGrad();
T.boundaryField()[patchi];
}
}

wallGradT.write();
nwpukaka 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
ERROR #001100279 has occurred in subroutine ErrAction. smnaryal CFX 11 December 20, 2017 17:32
[ANSYS Meshing] ICEM output precision papis ANSYS Meshing & Geometry 4 July 9, 2013 10:54
running without a terminal output and saving time step information instead Sören Sander OpenFOAM Pre-Processing 2 November 30, 2012 10:03
interchanging face information with cell information/ radiation flux UDF ximik FLUENT 1 May 4, 2011 17:34
Combustion Convergence problems Art Stretton Phoenics 5 April 2, 2002 06:59


All times are GMT -4. The time now is 08:36.