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