ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / src / sampling / graphField / writeCellGraph.C
blob740e3172cd64e5bfcb6988b3ba29316a2d498d49
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     fileName path(vsf.time().path()/"graphs"/vsf.time().timeName());
20     mkDir(path);
22     graph
23     (
24         vsf.name(),
25         "x",
26         vsf.name(),
27         vsf.mesh().C().internalField().component(vector::X),
28         vsf.internalField()
29     ).write(path/vsf.name(), graphFormat);
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 } // End namespace Foam
37 // ************************************************************************* //