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 // ************************************************************************* //
volFields.H
Foam::GeometricField::component
tmp< GeometricField< cmptType, PatchField, GeoMesh > > component(const direction) const
Return a component of the field.
Foam::graph
Class to create, store and output qgraph files.
Definition: graph.H:61
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::writePatchGraph
void writePatchGraph(const volScalarField &vsf, const label patchLabel, const direction d, const word &graphFormat)
Definition: writePatchGraph.C:9
fvMesh.H
writePatchGraph.H
Foam::direction
uint8_t direction
Definition: direction.H:52
graph.H
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Definition: foamVtkOutputTemplates.C:36
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::GeometricField::boundaryField
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Definition: GeometricFieldI.H:62