|
[Sponsors] |
February 25, 2015, 03:46 |
Output position information
|
#1 |
Member
Kan
Join Date: Feb 2014
Location: Australia
Posts: 54
Rep Power: 12 |
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(); |
|
|
|
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 |