initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / sampling / graphField / writeCellGraph.C
blobe502eccf2434dd9310c01c1bd9c17f5b6d93304f
1 #include "writeCellGraph.H"
2 #include "volFields.H"
3 #include "fvMesh.H"
4 #include "graph.H"
6 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
8 namespace Foam
11 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
13 void writeCellGraph
15     const volScalarField& vsf,
16     const word& graphFormat
19     graph
20     (
21         vsf.name(),
22         "x",
23         vsf.name(),
24         vsf.mesh().C().internalField().component(vector::X),
25         vsf.internalField()
26     ).write(vsf.time().timePath()/vsf.name(), graphFormat);
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 } // End namespace Foam
34 // ************************************************************************* //