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

Function readCurves

src/OpenFOAM/graph/graph.C:55–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55void Foam::graph::readCurves(Istream& is)
56{
57 List<xy> xyData(is);
58
59 x_.setSize(xyData.size());
60 scalarField y(xyData.size());
61
62 forAll(xyData, i)
63 {
64 x_[i] = xyData[i].x_;
65 y[i] = xyData[i].y_;
66 }
67
68 insert
69 (
70 wordify(yName_),
71 new curve(wordify(yName_), curve::curveStyle::CONTINUOUS, y)
72 );
73}
74
75
76// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //

Callers 1

graph.CFile · 0.85

Calls 5

curveClass · 0.85
forAllFunction · 0.50
insertFunction · 0.50
setSizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected