sampledIsoSurface.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9  Copyright (C) 2016-2019 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "sampledIsoSurface.H"
30 #include "dictionary.H"
31 #include "volFields.H"
32 #include "volPointInterpolation.H"
34 
35 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
36 
37 namespace Foam
38 {
39  defineTypeNameAndDebug(sampledIsoSurface, 0);
41  (
42  sampledSurface,
43  sampledIsoSurface,
44  word,
45  isoSurface
46  );
47 }
48 
49 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
50 
51 void Foam::sampledIsoSurface::getIsoFields() const
52 {
53  const fvMesh& fvm = static_cast<const fvMesh&>(mesh());
54 
55  // Get volField
56  // ~~~~~~~~~~~~
57 
58  volFieldPtr_ = fvm.getObjectPtr<volScalarField>(isoField_);
59 
60  if (volFieldPtr_)
61  {
63  << "Lookup volField " << isoField_ << endl;
64 
65  storedVolFieldPtr_.clear();
66  }
67  else
68  {
69  // Bit of a hack. Read field and store.
70 
72  << "Checking " << isoField_
73  << " for same time " << fvm.time().timeName() << endl;
74 
75  if
76  (
77  storedVolFieldPtr_.empty()
78  || (fvm.time().timeName() != storedVolFieldPtr_().instance())
79  )
80  {
82  << "Reading volField " << isoField_
83  << " from time " << fvm.time().timeName() << endl;
84 
85  IOobject vfHeader
86  (
87  isoField_,
88  fvm.time().timeName(),
89  fvm,
92  false
93  );
94 
95  if (vfHeader.typeHeaderOk<volScalarField>(true))
96  {
97  storedVolFieldPtr_.reset
98  (
99  new volScalarField
100  (
101  vfHeader,
102  fvm
103  )
104  );
105  volFieldPtr_ = storedVolFieldPtr_.get(); // get(), not release()
106  }
107  else
108  {
110  << "Cannot find isosurface field " << isoField_
111  << " in database or directory " << vfHeader.path()
112  << exit(FatalError);
113  }
114  }
115  }
116 
117 
118  // Get pointField
119  // ~~~~~~~~~~~~~~
120 
121  // In case of multiple iso values we don't want to calculate multiple e.g.
122  // "volPointInterpolate(p)" so register it and re-use it. This is the
123  // same as the 'cache' functionality from volPointInterpolate but
124  // unfortunately that one does not guarantee that the field pointer
125  // remain: e.g. some other functionObject might delete the cached version.
126  // (volPointInterpolation::interpolate with cache=false deletes any
127  // registered one or if mesh.changing())
128 
129  if (subMeshPtr_.empty())
130  {
131  const word pointFldName =
132  "volPointInterpolate_"
133  + type()
134  + "("
135  + isoField_
136  + ')';
137 
138 
139  pointFieldPtr_ = fvm.getObjectPtr<pointScalarField>(pointFldName);
140 
141  if (pointFieldPtr_)
142  {
144  << "lookup pointField " << pointFldName << endl;
145 
146  if (!pointFieldPtr_->upToDate(*volFieldPtr_))
147  {
149  << "updating pointField " << pointFldName << endl;
150 
151  // Update the interpolated value
153  (
154  *volFieldPtr_,
155  const_cast<pointScalarField&>(*pointFieldPtr_)
156  );
157  }
158  }
159  else
160  {
161  // Not in registry. Interpolate.
162 
164  << "creating pointField " << pointFldName << endl;
165 
166  // Interpolate without cache. Note that we're registering it
167  // below so next time round it goes into the condition
168  // above.
169  pointFieldPtr_ =
171  (
172  *volFieldPtr_,
173  pointFldName,
174  false
175  ).ptr();
176 
177  const_cast<pointScalarField*>(pointFieldPtr_)->store();
178  }
179 
180 
181  // If averaging redo the volField.
182  // Can only be done now since needs the point field.
183  if (average_)
184  {
185  storedVolFieldPtr_.reset
186  (
187  pointAverage(*pointFieldPtr_).ptr()
188  );
189  volFieldPtr_ = storedVolFieldPtr_.get(); // get(), not release()
190  }
191 
192 
194  << "volField " << volFieldPtr_->name()
195  << " min:" << min(*volFieldPtr_).value()
196  << " max:" << max(*volFieldPtr_).value() << nl
197  << "pointField " << pointFieldPtr_->name()
198  << " min:" << gMin(pointFieldPtr_->primitiveField())
199  << " max:" << gMax(pointFieldPtr_->primitiveField()) << endl;
200  }
201  else
202  {
203  // Get subMesh variants
204  const fvMesh& subFvm = subMeshPtr_().subMesh();
205 
206  // Either lookup on the submesh or subset the whole-mesh volField
207 
208  volSubFieldPtr_ = subFvm.getObjectPtr<volScalarField>(isoField_);
209 
210  if (volSubFieldPtr_)
211  {
213  << "Sub-mesh lookup volField " << isoField_ << endl;
214 
215  storedVolSubFieldPtr_.clear();
216  }
217  else
218  {
220  << "Sub-setting volField " << isoField_ << endl;
221 
222  storedVolSubFieldPtr_.reset
223  (
224  subMeshPtr_().interpolate
225  (
226  *volFieldPtr_
227  ).ptr()
228  );
229  storedVolSubFieldPtr_->checkOut();
230  volSubFieldPtr_ = storedVolSubFieldPtr_.get(); // not release()
231  }
232 
233 
234  // The point field on subMesh
235 
236  const word pointFldName =
237  "volPointInterpolate_"
238  + type()
239  + "("
240  + volSubFieldPtr_->name()
241  + ')';
242 
243 
244  pointFieldPtr_ = subFvm.getObjectPtr<pointScalarField>(pointFldName);
245 
246  if (pointFieldPtr_)
247  {
249  << "Sub-mesh lookup pointField " << pointFldName << endl;
250 
251  if (!pointFieldPtr_->upToDate(*volSubFieldPtr_))
252  {
254  << "Updating submesh pointField " << pointFldName << endl;
255 
256  // Update the interpolated value
258  (
259  *volSubFieldPtr_,
260  const_cast<pointScalarField&>(*pointFieldPtr_)
261  );
262  }
263  }
264  else
265  {
267  << "Interpolating submesh volField "
268  << volSubFieldPtr_->name()
269  << " to get submesh pointField " << pointFldName << endl;
270 
271  pointSubFieldPtr_ =
273  (
274  subFvm
275  ).interpolate(*volSubFieldPtr_).ptr();
276 
277  const_cast<pointScalarField*>(pointSubFieldPtr_)->store();
278  }
279 
280 
281  // If averaging redo the volField. Can only be done now since needs the
282  // point field.
283  if (average_)
284  {
285  storedVolSubFieldPtr_.reset
286  (
287  pointAverage(*pointSubFieldPtr_).ptr()
288  );
289  volSubFieldPtr_ = storedVolSubFieldPtr_.get(); // not release()
290  }
291 
292 
294  << "volSubField "
295  << volSubFieldPtr_->name()
296  << " min:" << min(*volSubFieldPtr_).value()
297  << " max:" << max(*volSubFieldPtr_).value() << nl
298  << "pointSubField "
299  << pointSubFieldPtr_->name()
300  << " min:" << gMin(pointSubFieldPtr_->primitiveField())
301  << " max:" << gMax(pointSubFieldPtr_->primitiveField()) << endl;
302  }
303 }
304 
305 
306 bool Foam::sampledIsoSurface::updateGeometry() const
307 {
308  const fvMesh& fvm = static_cast<const fvMesh&>(mesh());
309 
310  // No update needed
311  if (fvm.time().timeIndex() == prevTimeIndex_)
312  {
313  return false;
314  }
315 
316  // Get sub-mesh if any
317  if
318  (
319  (-1 != mesh().cellZones().findIndex(zoneNames_))
320  && subMeshPtr_.empty()
321  )
322  {
323  const polyBoundaryMesh& patches = mesh().boundaryMesh();
324 
325  // Patch to put exposed internal faces into
326  const label exposedPatchi = patches.findPatchID(exposedPatchName_);
327 
328  DebugInfo
329  << "Allocating subset of size "
330  << mesh().cellZones().selection(zoneNames_).count()
331  << " with exposed faces into patch "
332  << patches[exposedPatchi].name() << endl;
333 
334  subMeshPtr_.reset
335  (
336  new fvMeshSubset
337  (
338  fvm,
339  mesh().cellZones().selection(zoneNames_),
340  exposedPatchi
341  )
342  );
343  }
344 
345 
346  prevTimeIndex_ = fvm.time().timeIndex();
347  getIsoFields();
348 
349  // Clear any stored topo
350  surfPtr_.clear();
351 
352  // Clear derived data
353  clearGeom();
354 
355  if (subMeshPtr_.valid())
356  {
357  const volScalarField& vfld = *volSubFieldPtr_;
358 
359  surfPtr_.reset
360  (
361  new isoSurface
362  (
363  vfld,
364  *pointSubFieldPtr_,
365  isoVal_,
366  filter_,
367  bounds_,
368  mergeTol_
369  )
370  );
371  }
372  else
373  {
374  const volScalarField& vfld = *volFieldPtr_;
375 
376  surfPtr_.reset
377  (
378  new isoSurface
379  (
380  vfld,
381  *pointFieldPtr_,
382  isoVal_,
383  filter_,
384  bounds_,
385  mergeTol_
386  )
387  );
388  }
389 
390 
391  if (debug)
392  {
393  Pout<< "sampledIsoSurface::updateGeometry() : constructed iso:"
394  << nl
395  << " filter : " << Switch(bool(filter_)) << nl
396  << " average : " << Switch(average_) << nl
397  << " isoField : " << isoField_ << nl
398  << " isoValue : " << isoVal_ << nl;
399  if (subMeshPtr_.valid())
400  {
401  Pout<< " zone size : " << subMeshPtr_().subMesh().nCells()
402  << nl;
403  }
404  Pout<< " points : " << points().size() << nl
405  << " faces : " << surface().size() << nl
406  << " cut cells : " << surface().meshCells().size()
407  << endl;
408  }
409 
410  return true;
411 }
412 
413 
414 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
415 
417 (
418  const word& name,
419  const polyMesh& mesh,
420  const dictionary& dict
421 )
422 :
424  isoField_(dict.get<word>("isoField")),
425  isoVal_(dict.get<scalar>("isoValue")),
426  mergeTol_(dict.getOrDefault<scalar>("mergeTol", 1e-6)),
427  filter_
428  (
430  (
431  dict,
433  )
434  ),
435  average_(dict.getOrDefault("average", false)),
436  bounds_(dict.getOrDefault("bounds", boundBox::invertedBox)),
437  zoneNames_(),
438  exposedPatchName_(),
439  surfPtr_(nullptr),
440  prevTimeIndex_(-1),
441  storedVolFieldPtr_(nullptr),
442  volFieldPtr_(nullptr),
443  pointFieldPtr_(nullptr)
444 {
446  {
448  << "Non-interpolated iso surface not supported since triangles"
449  << " span across cells." << exit(FatalIOError);
450  }
451 
452 
453  if (!dict.readIfPresent("zones", zoneNames_) && dict.found("zone"))
454  {
455  zoneNames_.resize(1);
456  dict.readEntry("zone", zoneNames_.first());
457  }
458 
459  if (-1 != mesh.cellZones().findIndex(zoneNames_))
460  {
461  dict.readEntry("exposedPatchName", exposedPatchName_);
462 
463  if (mesh.boundaryMesh().findPatchID(exposedPatchName_) == -1)
464  {
466  << "Cannot find patch " << exposedPatchName_
467  << " in which to put exposed faces." << endl
468  << "Valid patches are " << mesh.boundaryMesh().names()
469  << exit(FatalIOError);
470  }
471 
472  DebugInfo
473  << "Restricting to cellZone(s) " << flatOutput(zoneNames_)
474  << " with exposed internal faces into patch "
475  << exposedPatchName_ << endl;
476  }
477 }
478 
479 
480 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
481 
483 {}
484 
485 
486 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
487 
489 {
490  const fvMesh& fvm = static_cast<const fvMesh&>(mesh());
491 
492  return fvm.time().timeIndex() != prevTimeIndex_;
493 }
494 
495 
497 {
498  surfPtr_.clear();
499  subMeshPtr_.clear();
500 
501  // Clear derived data
502  clearGeom();
503 
504  // Already marked as expired
505  if (prevTimeIndex_ == -1)
506  {
507  return false;
508  }
509 
510  // Force update
511  prevTimeIndex_ = -1;
512  return true;
513 }
514 
515 
517 {
518  return updateGeometry();
519 }
520 
521 
523 (
524  const interpolation<scalar>& sampler
525 ) const
526 {
527  return sampleOnFaces(sampler);
528 }
529 
530 
532 (
533  const interpolation<vector>& sampler
534 ) const
535 {
536  return sampleOnFaces(sampler);
537 }
538 
539 
541 (
542  const interpolation<sphericalTensor>& sampler
543 ) const
544 {
545  return sampleOnFaces(sampler);
546 }
547 
548 
550 (
551  const interpolation<symmTensor>& sampler
552 ) const
553 {
554  return sampleOnFaces(sampler);
555 }
556 
557 
559 (
560  const interpolation<tensor>& sampler
561 ) const
562 {
563  return sampleOnFaces(sampler);
564 }
565 
566 
568 (
569  const interpolation<scalar>& interpolator
570 ) const
571 {
572  return sampleOnPoints(interpolator);
573 }
574 
575 
577 (
578  const interpolation<vector>& interpolator
579 ) const
580 {
581  return sampleOnPoints(interpolator);
582 }
583 
585 (
586  const interpolation<sphericalTensor>& interpolator
587 ) const
588 {
589  return sampleOnPoints(interpolator);
590 }
591 
592 
594 (
595  const interpolation<symmTensor>& interpolator
596 ) const
597 {
598  return sampleOnPoints(interpolator);
599 }
600 
601 
603 (
604  const interpolation<tensor>& interpolator
605 ) const
606 {
607  return sampleOnPoints(interpolator);
608 }
609 
610 
612 {
613  os << "sampledIsoSurface: " << name() << " :"
614  << " field :" << isoField_
615  << " value :" << isoVal_;
616 }
617 
618 
619 // ************************************************************************* //
Foam::expressions::patchExpr::debug
int debug
Static debugging option.
Foam::IOobject::NO_WRITE
Definition: IOobject.H:130
volFields.H
Foam::IOobject::name
const word & name() const
Return name.
Definition: IOobjectI.H:46
Foam::isoSurfaceBase::filterType::DIAGCELL
Remove points from pyramid edges and face-diagonals.
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::sampledIsoSurface::needsUpdate
virtual bool needsUpdate() const
Does the surface need an update?
Definition: sampledIsoSurface.C:488
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::dictionary::found
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
Definition: dictionary.C:359
Foam::boundBox::invertedBox
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
Definition: boundBox.H:86
Foam::GeometricField::primitiveField
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Definition: GeometricFieldI.H:53
Foam::MeshObject< fvMesh, UpdateableMeshObject, volPointInterpolation >::New
static const volPointInterpolation & New(const fvMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
Definition: MeshObject.C:48
sampledIsoSurface.H
Foam::polyMesh::cellZones
const cellZoneMesh & cellZones() const
Return cell zone mesh.
Definition: polyMesh.H:483
Foam::ZoneMesh::findIndex
label findIndex(const keyType &key) const
Return zone index for the first match, return -1 if not found.
Definition: ZoneMesh.C:449
Foam::FatalIOError
IOerror FatalIOError
Foam::polyMesh::boundaryMesh
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Definition: polyMesh.H:435
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:337
Foam::dictionary::get
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Definition: dictionaryTemplates.C:81
Foam::sampledIsoSurface::update
virtual bool update()
Update the surface as required.
Definition: sampledIsoSurface.C:516
Foam::Pout
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
Foam::volPointInterpolation::interpolate
tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
Interpolate volField using inverse distance weighting.
Foam::sampledSurface::pointAverage
static tmp< GeometricField< Type, fvPatchField, volMesh > > pointAverage(const GeometricField< Type, pointPatchField, pointMesh > &pfld)
Create cell values by averaging the point values.
Foam::sampledIsoSurface::print
virtual void print(Ostream &) const
Write.
Definition: sampledIsoSurface.C:611
Foam::bitSet::count
unsigned int count(const bool on=true) const
Count number of bits set.
Definition: bitSetI.H:491
Foam::min
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:33
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::polyBoundaryMesh::names
wordList names() const
Return a list of patch names.
Definition: polyBoundaryMesh.C:593
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:62
Foam::sampledIsoSurface::sample
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
Definition: sampledIsoSurface.C:523
DebugInFunction
#define DebugInFunction
Report an information message using Foam::Info.
Definition: messageStream.H:356
Foam::name
word name(const complex &c)
Return string representation of complex.
Definition: complex.C:76
Foam::addNamedToRunTimeSelectionTable
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
Foam::dictionary::readEntry
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Definition: dictionaryTemplates.C:314
Foam::sampledSurface
An abstract class for surfaces with sampling.
Definition: sampledSurface.H:120
Foam::volScalarField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:57
Foam::polyBoundaryMesh::findPatchID
label findPatchID(const word &patchName, const bool allowNotFound=true) const
Find patch index given a name, return -1 if not found.
Definition: polyBoundaryMesh.C:766
Foam::max
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Definition: hashSets.C:47
Foam::interpolation< scalar >
Foam::sampledIsoSurface::expire
virtual bool expire()
Mark the surface as needing an update.
Definition: sampledIsoSurface.C:496
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::pointScalarField
GeometricField< scalar, pointPatchField, pointMesh > pointScalarField
Definition: pointFields.H:51
Foam::exit
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:130
volPointInterpolation.H
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:355
DebugInfo
#define DebugInfo
Report an information message using Foam::Info.
Definition: messageStream.H:350
Foam::nl
constexpr char nl
Definition: Ostream.H:372
Foam::flatOutput
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
Definition: FlatOutput.H:85
Foam::type
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:590
points
const pointField & points
Definition: gmvOutputHeader.H:1
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: createFields.H:11
dictionary.H
Foam::isoSurfaceBase::getFilterType
static filterType getFilterType(const dictionary &dict, const isoSurfaceBase::filterType deflt)
Get 'regularise' as bool or enumeration.
Definition: isoSurfaceBase.C:62
patches
const polyBoundaryMesh & patches
Definition: convertProcessorPatches.H:65
Foam::fvMesh::time
const Time & time() const
Return the top-level database.
Definition: fvMesh.H:246
FatalIOErrorInFunction
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Definition: error.H:375
Foam::sampledSurface::mesh
const polyMesh & mesh() const
Access to the underlying mesh.
Definition: sampledSurface.H:302
Foam::ZoneMesh::selection
bitSet selection(const labelUList &zoneIds) const
Definition: ZoneMesh.C:528
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::gMin
Type gMin(const FieldField< Field, Type > &f)
Definition: FieldFieldFunctions.C:593
Foam::TimeState::timeIndex
label timeIndex() const
Return current time index.
Definition: TimeStateI.H:36
Foam::dictionary::getOrDefault
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Definition: dictionaryTemplates.C:122
Foam::sampledSurface::interpolate
bool interpolate() const
Interpolation to nodes requested for surface.
Definition: sampledSurface.H:326
Foam::sampledIsoSurface::~sampledIsoSurface
virtual ~sampledIsoSurface()
Destructor.
Definition: sampledIsoSurface.C:482
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
Foam::gMax
Type gMax(const FieldField< Field, Type > &f)
Definition: FieldFieldFunctions.C:592
Foam::dictionary::readIfPresent
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Definition: dictionaryTemplates.C:417
Foam::sampledIsoSurface::sampledIsoSurface
sampledIsoSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
Definition: sampledIsoSurface.C:417
Foam::IOobject::MUST_READ
Definition: IOobject.H:120