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 
9 (
10  const volScalarField& vsf,
11  const label patchLabel,
12  const direction d,
13  const word& graphFormat
14 )
15 {
16  graph
17  (
18  vsf.name(),
19  "position",
20  vsf.name(),
21  vsf.mesh().boundary()[patchLabel].Cf().component(d),
22  vsf.boundaryField()[patchLabel]
23  ).write(vsf.time().timePath()/vsf.name(), graphFormat);
24 }
25 
26 
27 // ************************************************************************* //
uint8_t direction
Definition: direction.H:46
fileName timePath() const
Return current time path = path/timeName.
Definition: Time.H:520
const word & name() const noexcept
Return the object name.
Definition: IOobjectI.H:195
Class to create, store and output qgraph files.
Definition: graph.H:53
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
A class for handling words, derived from Foam::string.
Definition: word.H:63
void writePatchGraph(const volScalarField &vsf, const label patchLabel, const direction d, const word &graphFormat)
const Time & time() const noexcept
Return Time associated with the objectRegistry.
Definition: IOobject.C:456
const Mesh & mesh() const noexcept
Return mesh.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.