FreeFOAM The Cross-Platform CFD Toolkit
writeCellGraph.C
Go to the documentation of this file.
1 #include "writeCellGraph.H"
3 #include <finiteVolume/fvMesh.H>
4 #include <OpenFOAM/graph.H>
5 
6 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
7 
8 namespace Foam
9 {
10 
11 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
12 
13 void writeCellGraph
14 (
15  const volScalarField& vsf,
16  const word& graphFormat
17 )
18 {
19  graph
20  (
21  vsf.name(),
22  "x",
23  vsf.name(),
25  vsf.internalField()
26  ).write(vsf.time().timePath()/vsf.name(), graphFormat);
27 }
28 
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 } // End namespace Foam
33 
34 // ************************ vim: set sw=4 sts=4 et: ************************ //