CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Cell Centre to Cell Face Distances (http://www.cfd-online.com/Forums/openfoam-post-processing/104420-cell-centre-cell-face-distances.html)

iamed18 July 9, 2012 09:50

Cell Centre to Cell Face Distances
 
I'm in need of finding the distance from every cell center to the center of each of its faces. I've been able to use the utility in
Code:

$FOAM_APP/utilities/postProcessing/miscellaneous/writeCellCentres
to write out the XYZ cell center vector, but my attempts to find the cell face vectors have been unfruitful. My current attempt was merely to mimic the former:

Code:

        surfaceVectorField cf
        (
            IOobject
            (
                "cellFaces",
                runTime.timeName(),
                mesh,
                IOobject::NO_READ,
                IOobject::AUTO_WRITE
            ),
            mesh.Cf()
        );

        cf.write();

This doesn't compile, leading me to believe that I'm missing something with how I'm trying to access the Cf() method of mesh. Any ideas?


All times are GMT -4. The time now is 09:07.