MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writeCellGraph

Function writeCellGraph

src/sampling/graphField/writeCellGraph.C:13–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
12
13void writeCellGraph
14(
15 const volScalarField& vsf,
16 const word& graphFormat
17)
18{
19 fileName path(vsf.time().path()/"graphs"/vsf.time().timeName());
20 mkDir(path);
21
22 graph
23 (
24 vsf.name(),
25 "x",
26 vsf.name(),
27 vsf.mesh().C().primitiveField().component(vector::X),
28 vsf.primitiveField()
29 ).write(path/vsf.name(), graphFormat);
30}
31
32
33// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Callers 1

mainFunction · 0.85

Calls 7

timeMethod · 0.80
primitiveFieldMethod · 0.80
mkDirFunction · 0.50
graphClass · 0.50
writeMethod · 0.45
nameMethod · 0.45
componentMethod · 0.45

Tested by

no test coverage detected