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

Function read

src/sampling/probes/probes.C:336–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
335
336bool Foam::probes::read(const dictionary& dict)
337{
338 dict.lookup("probeLocations") >> *this;
339 dict.lookup("fields") >> fieldSelection_;
340
341 dict.readIfPresent("fixedLocations", fixedLocations_);
342 if (dict.readIfPresent("interpolationScheme", interpolationScheme_))
343 {
344 if (!fixedLocations_ && interpolationScheme_ != "cell")
345 {
346 WarningInFunction
347 << "Only cell interpolation can be applied when "
348 << "not using fixedLocations. InterpolationScheme "
349 << "entry will be ignored";
350 }
351 }
352
353 // Initialise cells to sample from supplied locations
354 findElements(mesh_);
355
356 prepare();
357
358 return true;
359}
360
361
362bool Foam::probes::execute()

Callers 2

probes.CFile · 0.70
UIPread.CFile · 0.50

Calls 4

prepareFunction · 0.85
lookupMethod · 0.80
readIfPresentMethod · 0.80
findElementsFunction · 0.70

Tested by

no test coverage detected