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

writePatchGraph.C

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