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

Function update

src/sampling/sampledSurface/sampledPlane/sampledPlane.C:131–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131bool Foam::sampledPlane::update()
132{
133 if (!needsUpdate_)
134 {
135 return false;
136 }
137
138 sampledSurface::clearGeom();
139
140 labelList selectedCells = mesh().cellZones().findMatching(zoneKey_).used();
141
142 if (selectedCells.empty())
143 {
144 reCut(mesh(), triangulate_);
145 }
146 else
147 {
148 reCut(mesh(), triangulate_, selectedCells);
149 }
150
151 if (debug)
152 {
153 print(Pout);
154 Pout<< endl;
155 }
156
157 needsUpdate_ = false;
158 return true;
159}
160
161
162Foam::tmp<Foam::scalarField> Foam::sampledPlane::sample

Callers

nothing calls this directly

Calls 6

meshFunction · 0.85
reCutFunction · 0.85
usedMethod · 0.80
printFunction · 0.70
clearGeomFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected