|
[Sponsors] |
November 19, 2010, 09:38 |
Writing a wallGradT
|
#1 |
New Member
Join Date: Oct 2010
Posts: 3
Rep Power: 16 |
Hello fellow openfoam-users,
I'm trying to modify wallGradU to write the sn-gradient of scalar T at the wall calculated by scalarTransportFoam. It seems to be very straightforward, it compiles and runs but I want to make sure the results are correct. Here is what I did: Im creating an IOObject, and an object wallGradT: Code:
volScalarField wallGradT ( IOobject ( "wallGradT", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar ( "wallGradT", T.dimensions()/dimLength, 0 ) ); Code:
wallGradT.boundaryField()[patchi] = -T.boundaryField()[patchi].snGrad(); I want to make sure I'm getting correct results.. Thanks in advance! |
|
November 20, 2010, 10:47 |
|
#2 |
Senior Member
David Boger
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146
Rep Power: 17 |
That looks believable. You can find almost the same logic in applications/utilities/postProcessing/wall/wallGradU/wallGradU.C
__________________
David A. Boger |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
solid to fluid heattransfer with chtMultiRegionFoam | nakor | OpenFOAM | 11 | March 21, 2011 09:28 |
Writing data from monitors | L3munoz | FLUENT | 0 | July 24, 2009 06:27 |
An error has occurred when Writing backup file | tian | CFX | 0 | June 28, 2007 22:29 |
journal file command for writing mass flow rate | James | FLUENT | 0 | July 26, 2006 11:51 |
Fatal error error writing to tmp No space left on device | maka | OpenFOAM Installation | 2 | April 3, 2006 09:48 |