OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

writePatchGraph.C

Go to the documentation of this file.
00001 #include "writePatchGraph.H"
00002 #include "volFields.H"
00003 #include "fvMesh.H"
00004 #include "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 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd