writePatchGraph.C
Go to the documentation of this file.
1 #include "writePatchGraph.H"
2 #include "volFields.H"
3 #include "fvMesh.H"
4 #include "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 // ************************************************************************* //
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
uint8_t direction
Definition: direction.H:46
word graphFormat
Definition: createFields.H:34
Generic GeometricField class.
Class to create, store and output qgraph files.
Definition: graph.H:58
const Boundary & boundaryField() const
Return const-reference to the boundary field.
A class for handling words, derived from string.
Definition: word.H:59
const Time & time() const
Return time.
Definition: IOobject.C:227
const Mesh & mesh() const
Return mesh.
void writePatchGraph(const volScalarField &vsf, const label patchLabel, const direction d, const word &graphFormat)
fileName timePath() const
Return current time path.
Definition: Time.H:285
runTime write()
const word & name() const
Return name.
Definition: IOobject.H:260
Namespace for OpenFOAM.