|November 19, 2010, 09:38||
Writing a wallGradT
Join Date: Oct 2010
Posts: 3Rep Power: 8
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:
volScalarField wallGradT ( IOobject ( "wallGradT", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar ( "wallGradT", T.dimensions()/dimLength, 0 ) );
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||
Join Date: Mar 2009
Location: Penn State Applied Research Laboratory
Posts: 146Rep Power: 9
That looks believable. You can find almost the same logic in applications/utilities/postProcessing/wall/wallGradU/wallGradU.C
David A. Boger
|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 05:27|
|An error has occurred when Writing backup file||tian||CFX||0||June 28, 2007 21:29|
|journal file command for writing mass flow rate||James||FLUENT||0||July 26, 2006 10:51|
|Fatal error error writing to tmp No space left on device||maka||OpenFOAM Installation||2||April 3, 2006 08:48|