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// ************************************************************************* //
const Mesh & mesh() const
Return mesh.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const word & name() const noexcept
Return the object name.
Definition: IOobjectI.H:65
const Time & time() const
Return Time associated with the objectRegistry.
Definition: IOobject.C:506
fileName timePath() const
Return current time path.
Definition: Time.H:375
Class to create, store and output qgraph files.
Definition: graph.H:62
void write(Ostream &, const word &format) const
Write graph to stream in given format.
Definition: graph.C:266
A class for handling words, derived from Foam::string.
Definition: word.H:68
uint8_t direction
Definition: direction.H:56
void writePatchGraph(const volScalarField &vsf, const label patchLabel, const direction d, const word &graphFormat)