FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

writeCellGraph.C

Go to the documentation of this file.
00001 #include "writeCellGraph.H"
00002 #include <finiteVolume/volFields.H>
00003 #include <finiteVolume/fvMesh.H>
00004 #include <OpenFOAM/graph.H>
00005 
00006 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00007 
00008 namespace Foam
00009 {
00010 
00011 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00012 
00013 void writeCellGraph
00014 (
00015     const volScalarField& vsf,
00016     const word& graphFormat
00017 )
00018 {
00019     graph
00020     (
00021         vsf.name(),
00022         "x",
00023         vsf.name(),
00024         vsf.mesh().C().internalField().component(vector::X),
00025         vsf.internalField()
00026     ).write(vsf.time().timePath()/vsf.name(), graphFormat);
00027 }
00028 
00029 
00030 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00031 
00032 } // End namespace Foam
00033 
00034 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines