volPointInterpolate.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 "volPointInterpolation.H"
30 #include "volFields.H"
31 #include "pointFields.H"
32 #include "emptyFvPatch.H"
33 #include "coupledPointPatchField.H"
34 #include "pointConstraints.H"
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
38 template<class Type>
39 void Foam::volPointInterpolation::pushUntransformedData
40 (
41  List<Type>& pointData
42 ) const
43 {
44  // Transfer onto coupled patch
45  const globalMeshData& gmd = mesh().globalData();
46  const indirectPrimitivePatch& cpp = gmd.coupledPatch();
47  const labelList& meshPoints = cpp.meshPoints();
48 
49  const mapDistribute& slavesMap = gmd.globalCoPointSlavesMap();
50  const labelListList& slaves = gmd.globalCoPointSlaves();
51 
52  List<Type> elems(slavesMap.constructSize());
53  forAll(meshPoints, i)
54  {
55  elems[i] = pointData[meshPoints[i]];
56  }
57 
58  // Combine master data with slave data
59  forAll(slaves, i)
60  {
61  const labelList& slavePoints = slaves[i];
62 
63  // Copy master data to slave slots
64  forAll(slavePoints, j)
65  {
66  elems[slavePoints[j]] = elems[i];
67  }
68  }
69 
70  // Push slave-slot data back to slaves
71  slavesMap.reverseDistribute(elems.size(), elems, false);
72 
73  // Extract back onto mesh
74  forAll(meshPoints, i)
75  {
76  pointData[meshPoints[i]] = elems[i];
77  }
78 }
79 
80 
81 template<class Type>
82 void Foam::volPointInterpolation::addSeparated
83 (
84  GeometricField<Type, pointPatchField, pointMesh>& pf
85 ) const
86 {
87  if (debug)
88  {
89  Pout<< "volPointInterpolation::addSeparated" << endl;
90  }
91 
92  typename GeometricField<Type, pointPatchField, pointMesh>::
93  Internal& pfi = pf.ref();
94 
95  typename GeometricField<Type, pointPatchField, pointMesh>::
96  Boundary& pfbf = pf.boundaryFieldRef();
97 
98  forAll(pfbf, patchi)
99  {
100  if (pfbf[patchi].coupled())
101  {
102  refCast<coupledPointPatchField<Type>>
103  (pfbf[patchi]).initSwapAddSeparated
104  (
106  pfi
107  );
108  }
109  }
110 
111  // Block for any outstanding requests
113 
114  forAll(pfbf, patchi)
115  {
116  if (pfbf[patchi].coupled())
117  {
118  refCast<coupledPointPatchField<Type>>
119  (pfbf[patchi]).swapAddSeparated
120  (
122  pfi
123  );
124  }
125  }
126 }
127 
128 
129 template<class Type>
131 (
134 ) const
135 {
136  if (debug)
137  {
138  Pout<< "volPointInterpolation::interpolateInternalField("
139  << "const GeometricField<Type, fvPatchField, volMesh>&, "
140  << "GeometricField<Type, pointPatchField, pointMesh>&) : "
141  << "interpolating field " << vf.name()
142  << " from cells to points " << pf.name() << endl;
143  }
144 
145  const labelListList& pointCells = vf.mesh().pointCells();
146 
147  // Multiply volField by weighting factor matrix to create pointField
148  forAll(pointCells, pointi)
149  {
150  if (!isPatchPoint_[pointi])
151  {
152  const scalarList& pw = pointWeights_[pointi];
153  const labelList& ppc = pointCells[pointi];
154 
155  pf[pointi] = Zero;
156 
157  forAll(ppc, pointCelli)
158  {
159  pf[pointi] += pw[pointCelli]*vf[ppc[pointCelli]];
160  }
161  }
162  }
163 }
164 
165 
166 template<class Type>
168 (
171 ) const
172 {
173  if (debug)
174  {
175  Pout<< "volPointInterpolation::interpolateDimensionedInternalField("
176  << "const DimensionedField<Type, volMesh>&, "
177  << "DimensionedField<Type, pointMesh>&) : "
178  << "interpolating field " << vf.name() << " from cells to points "
179  << pf.name() << endl;
180  }
181 
182  const fvMesh& mesh = vf.mesh();
183 
185  const pointField& points = mesh.points();
186  const vectorField& cellCentres = mesh.cellCentres();
187 
188  // Re-do weights and interpolation since normal interpolation
189  // pointWeights_ are for non-boundary points only. Not efficient but
190  // then saves on space.
191 
192  // Multiply volField by weighting factor matrix to create pointField
193  scalarField sumW(points.size(), Zero);
194  forAll(pointCells, pointi)
195  {
196  const labelList& ppc = pointCells[pointi];
197 
198  pf[pointi] = Type(Zero);
199 
200  forAll(ppc, pointCelli)
201  {
202  label celli = ppc[pointCelli];
203  scalar pw = 1.0/mag(points[pointi] - cellCentres[celli]);
204 
205  pf[pointi] += pw*vf[celli];
206  sumW[pointi] += pw;
207  }
208  }
209 
210  // Sum collocated contributions
213 
214  // Normalise
215  forAll(pf, pointi)
216  {
217  scalar s = sumW[pointi];
218  if (s > ROOTVSMALL)
219  {
220  pf[pointi] /= s;
221  }
222  }
223 }
224 
225 
226 template<class Type>
227 Foam::tmp<Foam::Field<Type>> Foam::volPointInterpolation::flatBoundaryField
228 (
230 ) const
231 {
232  const fvMesh& mesh = vf.mesh();
233  const fvBoundaryMesh& bm = mesh.boundary();
234 
235  tmp<Field<Type>> tboundaryVals
236  (
238  );
239  Field<Type>& boundaryVals = tboundaryVals.ref();
240 
241  forAll(vf.boundaryField(), patchi)
242  {
243  label bFacei = bm[patchi].patch().start() - mesh.nInternalFaces();
244 
245  if
246  (
247  !isA<emptyFvPatch>(bm[patchi])
248  && !vf.boundaryField()[patchi].coupled()
249  )
250  {
252  (
253  boundaryVals,
254  vf.boundaryField()[patchi].size(),
255  bFacei
256  ) = vf.boundaryField()[patchi];
257  }
258  else
259  {
260  const polyPatch& pp = bm[patchi].patch();
261 
262  forAll(pp, i)
263  {
264  boundaryVals[bFacei++] = Zero;
265  }
266  }
267  }
268 
269  return tboundaryVals;
270 }
271 
272 
273 template<class Type>
275 (
278 ) const
279 {
280  const primitivePatch& boundary = boundaryPtr_();
281 
282  Field<Type>& pfi = pf.primitiveFieldRef();
283 
284  // Get face data in flat list
285  tmp<Field<Type>> tboundaryVals(flatBoundaryField(vf));
286  const Field<Type>& boundaryVals = tboundaryVals();
287 
288 
289  // Do points on 'normal' patches from the surrounding patch faces
290  // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291 
292  forAll(boundary.meshPoints(), i)
293  {
294  label pointi = boundary.meshPoints()[i];
295 
296  if (isPatchPoint_[pointi])
297  {
298  const labelList& pFaces = boundary.pointFaces()[i];
299  const scalarList& pWeights = boundaryPointWeights_[i];
300 
301  Type& val = pfi[pointi];
302 
303  val = Zero;
304  forAll(pFaces, j)
305  {
306  if (boundaryIsPatchFace_[pFaces[j]])
307  {
308  val += pWeights[j]*boundaryVals[pFaces[j]];
309  }
310  }
311  }
312  }
313 
314  // Sum collocated contributions
316 
317  // And add separated contributions
318  addSeparated(pf);
319 
320  // Push master data to slaves. It is possible (not sure how often) for
321  // a coupled point to have its master on a different patch so
322  // to make sure just push master data to slaves.
323  pushUntransformedData(pfi);
324 }
325 
326 
327 template<class Type>
329 (
332  const bool overrideFixedValue
333 ) const
334 {
335  interpolateBoundaryField(vf, pf);
336 
337  // Apply constraints
338  const pointConstraints& pcs = pointConstraints::New(pf.mesh());
339 
340  pcs.constrain(pf, overrideFixedValue);
341 }
342 
343 
344 template<class Type>
346 (
349 ) const
350 {
351  if (debug)
352  {
353  Pout<< "volPointInterpolation::interpolate("
354  << "const GeometricField<Type, fvPatchField, volMesh>&, "
355  << "GeometricField<Type, pointPatchField, pointMesh>&) : "
356  << "interpolating field " << vf.name() << " from cells to points "
357  << pf.name() << endl;
358  }
359 
360  interpolateInternalField(vf, pf);
361 
362  // Interpolate to the patches preserving fixed value BCs
363  interpolateBoundaryField(vf, pf, false);
364 }
365 
366 
367 template<class Type>
370 (
372  const wordList& patchFieldTypes
373 ) const
374 {
375  const pointMesh& pm = pointMesh::New(vf.mesh());
376 
377  // Construct tmp<pointField>
379  (
380  IOobject
381  (
382  "volPointInterpolate(" + vf.name() + ')',
383  vf.instance(),
384  pm.thisDb()
385  ),
386  pm,
387  vf.dimensions(),
388  patchFieldTypes
389  );
390 
391  interpolateInternalField(vf, tpf.ref());
392 
393  // Interpolate to the patches overriding fixed value BCs
394  interpolateBoundaryField(vf, tpf.ref(), true);
395 
396  return tpf;
397 }
398 
399 
400 template<class Type>
403 (
405  const wordList& patchFieldTypes
406 ) const
407 {
408  // Construct tmp<pointField>
410  interpolate(tvf(), patchFieldTypes);
411  tvf.clear();
412  return tpf;
413 }
414 
415 
416 template<class Type>
419 (
421  const word& name,
422  const bool cache
423 ) const
424 {
426 
427  const pointMesh& pm = pointMesh::New(vf.mesh());
428  const objectRegistry& db = pm.thisDb();
429 
430  PointFieldType* pfPtr =
431  db.objectRegistry::template getObjectPtr<PointFieldType>(name);
432 
433  if (!cache || vf.mesh().changing())
434  {
435  // Delete any old occurrences to avoid double registration
436  if (pfPtr && pfPtr->ownedByRegistry())
437  {
438  solution::cachePrintMessage("Deleting", name, vf);
439  delete pfPtr;
440  }
441 
443  (
444  IOobject
445  (
446  name,
447  vf.instance(),
448  pm.thisDb()
449  ),
450  pm,
451  vf.dimensions()
452  );
453 
454  interpolate(vf, tpf.ref());
455 
456  return tpf;
457  }
458 
459 
460  if (!pfPtr)
461  {
462  solution::cachePrintMessage("Calculating and caching", name, vf);
463 
464  pfPtr = interpolate(vf, name, false).ptr();
465  regIOobject::store(pfPtr);
466  }
467  else
468  {
469  PointFieldType& pf = *pfPtr;
470 
471  if (pf.upToDate(vf)) //TBD: , vf.mesh().points()))
472  {
473  solution::cachePrintMessage("Reusing", name, vf);
474  }
475  else
476  {
477  solution::cachePrintMessage("Updating", name, vf);
478  interpolate(vf, pf);
479  }
480  }
481 
482  return *pfPtr;
483 }
484 
485 
486 template<class Type>
489 (
491 ) const
492 {
493  return interpolate(vf, "volPointInterpolate(" + vf.name() + ')', false);
494 }
495 
496 
497 template<class Type>
500 (
502 ) const
503 {
504  // Construct tmp<pointField>
506  interpolate(tvf());
507  tvf.clear();
508  return tpf;
509 }
510 
511 
512 template<class Type>
515 (
517  const word& name,
518  const bool cache
519 ) const
520 {
521  typedef DimensionedField<Type, pointMesh> PointFieldType;
522 
523  const pointMesh& pm = pointMesh::New(vf.mesh());
524  const objectRegistry& db = pm.thisDb();
525 
526 
527  PointFieldType* pfPtr =
528  db.objectRegistry::template getObjectPtr<PointFieldType>(name);
529 
530  if (!cache || vf.mesh().changing())
531  {
532  // Delete any old occurrences to avoid double registration
533  if (pfPtr && pfPtr->ownedByRegistry())
534  {
535  solution::cachePrintMessage("Deleting", name, vf);
536  delete pfPtr;
537  }
538 
540  (
541  IOobject
542  (
543  name,
544  vf.instance(),
545  pm.thisDb()
546  ),
547  pm,
548  vf.dimensions()
549  );
550 
551  interpolateDimensionedInternalField(vf, tpf.ref());
552 
553  return tpf;
554  }
555 
556 
557  if (!pfPtr)
558  {
559  solution::cachePrintMessage("Calculating and caching", name, vf);
560  pfPtr = interpolate(vf, name, false).ptr();
561 
562  regIOobject::store(pfPtr);
563  }
564  else
565  {
566  PointFieldType& pf = *pfPtr;
567 
568  if (pf.upToDate(vf)) //TBD: , vf.mesh().points()))
569  {
570  solution::cachePrintMessage("Reusing", name, vf);
571  }
572  else
573  {
574  solution::cachePrintMessage("Updating", name, vf);
575  interpolateDimensionedInternalField(vf, pf);
576  }
577  }
578 
579  return *pfPtr;
580 }
581 
582 
583 template<class Type>
586 (
588 ) const
589 {
590  return interpolate(vf, "volPointInterpolate(" + vf.name() + ')', false);
591 }
592 
593 
594 template<class Type>
597 (
599 ) const
600 {
601  // Construct tmp<pointField>
603  tvf.clear();
604  return tpf;
605 }
606 
607 
608 // ************************************************************************* //
Foam::expressions::patchExpr::debug
int debug
Static debugging option.
Foam::labelList
List< label > labelList
A List of labels.
Definition: List.H:74
volFields.H
Foam::polyMesh::points
virtual const pointField & points() const
Return raw points.
Definition: polyMesh.C:1038
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
Foam::val
label ListType::const_reference val
Definition: ListOps.H:407
Foam::UPstream::commsTypes::nonBlocking
coupledPointPatchField.H
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
s
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Definition: gmvOutputSpray.H:25
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::Zero
static constexpr const zero Zero
Global zero.
Definition: zero.H:128
Foam::primitiveMesh::nInternalFaces
label nInternalFaces() const
Number of internal faces.
Definition: primitiveMeshI.H:78
Foam::SubList
A List obtained as a section of another List.
Definition: SubList.H:53
Foam::MeshObject< pointMesh, UpdateableMeshObject, pointConstraints >::New
static const pointConstraints & New(const pointMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
Definition: MeshObject.C:48
Foam::UPstream::waitRequests
static void waitRequests(const label start=0)
Wait until all requests (from start onwards) have finished.
Definition: UPstream.C:162
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:337
Foam::solution::cachePrintMessage
static void cachePrintMessage(const char *message, const word &name, const FieldType &vf)
Helper for printing cache message.
Definition: solutionTemplates.C:35
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.
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:290
Foam::fvBoundaryMesh
Foam::fvBoundaryMesh.
Definition: fvBoundaryMesh.H:57
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:60
Foam::tmp::ref
T & ref() const
Definition: tmpI.H:258
Foam::interpolate
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
Definition: curveTools.C:75
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
pFaces
Info<< "Finished reading KIVA file"<< endl;cellShapeList cellShapes(nPoints);labelList cellZoning(nPoints, -1);const cellModel &hex=cellModel::ref(cellModel::HEX);labelList hexLabels(8);label activeCells=0;labelList pointMap(nPoints);forAll(pointMap, i){ pointMap[i]=i;}for(label i=0;i< nPoints;i++){ if(f[i] > 0.0) { hexLabels[0]=i;hexLabels[1]=i1tab[i];hexLabels[2]=i3tab[i1tab[i]];hexLabels[3]=i3tab[i];hexLabels[4]=i8tab[i];hexLabels[5]=i1tab[i8tab[i]];hexLabels[6]=i3tab[i1tab[i8tab[i]]];hexLabels[7]=i3tab[i8tab[i]];cellShapes[activeCells]=cellShape(hex, hexLabels);edgeList edges=cellShapes[activeCells].edges();forAll(edges, ei) { if(edges[ei].mag(points)< SMALL) { label start=pointMap[edges[ei].start()];while(start !=pointMap[start]) { start=pointMap[start];} label end=pointMap[edges[ei].end()];while(end !=pointMap[end]) { end=pointMap[end];} label minLabel=min(start, end);pointMap[start]=pointMap[end]=minLabel;} } cellZoning[activeCells]=idreg[i];activeCells++;}}cellShapes.setSize(activeCells);cellZoning.setSize(activeCells);forAll(cellShapes, celli){ cellShape &cs=cellShapes[celli];forAll(cs, i) { cs[i]=pointMap[cs[i]];} cs.collapse();}label bcIDs[11]={-1, 0, 2, 4, -1, 5, -1, 6, 7, 8, 9};const label nBCs=12;const word *kivaPatchTypes[nBCs]={ &wallPolyPatch::typeName, &wallPolyPatch::typeName, &wallPolyPatch::typeName, &wallPolyPatch::typeName, &symmetryPolyPatch::typeName, &wedgePolyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &polyPatch::typeName, &symmetryPolyPatch::typeName, &oldCyclicPolyPatch::typeName};enum patchTypeNames{ PISTON, VALVE, LINER, CYLINDERHEAD, AXIS, WEDGE, INFLOW, OUTFLOW, PRESIN, PRESOUT, SYMMETRYPLANE, CYCLIC};const char *kivaPatchNames[nBCs]={ "piston", "valve", "liner", "cylinderHead", "axis", "wedge", "inflow", "outflow", "presin", "presout", "symmetryPlane", "cyclic"};List< SLList< face > > pFaces[nBCs]
Definition: readKivaGrid.H:235
Foam::Field< vector >
Foam::DimensionedField::mesh
const Mesh & mesh() const
Return mesh.
Definition: DimensionedFieldI.H:41
Foam::MeshObject< fvMesh, UpdateableMeshObject, volPointInterpolation >::mesh
const fvMesh & mesh() const
Definition: MeshObject.H:122
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
Foam::name
word name(const complex &c)
Return string representation of complex.
Definition: complex.C:76
pointConstraints.H
Foam::primitiveMesh::nBoundaryFaces
label nBoundaryFaces() const
Number of boundary faces (== nFaces - nInternalFaces)
Definition: primitiveMeshI.H:84
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam::pointMesh
Mesh representing a set of points created from polyMesh.
Definition: pointMesh.H:50
emptyFvPatch.H
Foam::DimensionedField::dimensions
const dimensionSet & dimensions() const
Return dimensions.
Definition: DimensionedFieldI.H:49
Foam::GeometricField::primitiveFieldRef
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
Definition: GeometricField.C:735
Foam::indirectPrimitivePatch
PrimitivePatch< face, IndirectList, const pointField & > indirectPrimitivePatch
A PrimitivePatch using an IndirectList for the faces.
Definition: indirectPrimitivePatch.H:47
Foam::pointConstraints
Application of (multi-)patch point contraints.
Definition: pointConstraints.H:64
Foam::New
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Definition: DimensionedFieldReuseFunctions.H:105
volPointInterpolation.H
Foam::fvMesh::boundary
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Definition: fvMesh.C:589
Foam::labelListList
List< labelList > labelListList
A List of labelList.
Definition: labelList.H:56
Foam::primitiveMesh::cellCentres
const vectorField & cellCentres() const
Definition: primitiveMeshCellCentresAndVols.C:176
Foam::regIOobject::store
void store()
Transfer ownership of this object to its registry.
Definition: regIOobjectI.H:37
Foam::GeometricField::ref
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
Definition: GeometricField.C:718
Foam::pointConstraints::syncUntransformedData
static void syncUntransformedData(const polyMesh &mesh, List< Type > &pointData, const CombineOp &cop)
Helper: sync data on collocated points only.
Definition: pointConstraintsTemplates.C:36
Foam::List< labelList >
Foam::mag
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Foam::pointMesh::thisDb
const objectRegistry & thisDb() const
Return database. For now is its polyMesh.
Definition: pointMesh.H:120
points
const pointField & points
Definition: gmvOutputHeader.H:1
Foam::volPointInterpolation::interpolateInternalField
void interpolateInternalField(const GeometricField< Type, fvPatchField, volMesh > &, GeometricField< Type, pointPatchField, pointMesh > &) const
Interpolate internal field from volField to pointField.
Definition: volPointInterpolate.C:131
Foam::primitiveMesh::pointCells
const labelListList & pointCells() const
Definition: primitiveMeshPointCells.C:110
Foam::pointCells
Smooth ATC in cells having a point to a set of patches supplied by type.
Definition: pointCells.H:56
Foam::pointConstraints::constrain
void constrain(GeometricField< Type, pointPatchField, pointMesh > &pf, const bool overrideValue=false) const
Apply boundary conditions (single-patch constraints) and.
Definition: pointConstraintsTemplates.C:131
Foam::plusEqOp
Definition: ops.H:72
Foam::polyMesh::globalData
const globalMeshData & globalData() const
Return parallel info.
Definition: polyMesh.C:1241
Foam::GeometricField< Type, fvPatchField, volMesh >
Foam::volPointInterpolation::interpolateDimensionedInternalField
void interpolateDimensionedInternalField(const DimensionedField< Type, volMesh > &vf, DimensionedField< Type, pointMesh > &pf) const
Interpolate dimensioned internal field from cells to points.
Definition: volPointInterpolate.C:168
Foam::volPointInterpolation::interpolateBoundaryField
void interpolateBoundaryField(const GeometricField< Type, fvPatchField, volMesh > &vf, GeometricField< Type, pointPatchField, pointMesh > &pf) const
Interpolate boundary field without applying constraints/boundary.
Definition: volPointInterpolate.C:275
pointFields.H
boundary
faceListList boundary
Definition: createBlockMesh.H:4
Foam::GeometricField::boundaryField
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Definition: GeometricFieldI.H:62
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54
Foam::PrimitivePatch
A list of faces which address into the list of points.
Definition: PrimitivePatch.H:90