interpolationCellPointWallModifiedI.H
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) 2022 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 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
30 
31 template<class Type>
33 (
34  const cellPointWeight& cpw
35 ) const
36 {
38 }
39 
40 
41 template<class Type>
43 (
44  const vector& position,
45  const label celli,
46  const label facei
47 ) const
48 {
50  (
52  (
53  this->pMesh_,
54  position,
55  celli,
56  facei
57  )
58  );
59 }
60 
61 
62 template<class Type>
64 (
65  const barycentric& coordinates,
66  const tetIndices& tetIs,
67  const label facei
68 ) const
69 {
70  if (facei >= 0)
71  {
72  if (facei != tetIs.face())
73  {
75  << "specified face " << facei << " inconsistent with the face "
76  << "stored by tetIndices: " << tetIs.face()
77  << exit(FatalError);
78  }
79 
80  if (cellPointWeightWallModified::onWall(this->pMesh_, facei))
81  {
82  return this->psi_[tetIs.cell()];
83  }
84  }
85 
86  // If the wall face selection did not return, then use the normal
87  // interpolate method
88 
90  (
92  tetIs,
93  facei
94  );
95 }
96 
97 
98 // ************************************************************************* //
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:125
error FatalError
Error stream (stdout output on all processes), with additional &#39;FOAM FATAL ERROR&#39; header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:598
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
label cell() const noexcept
Return the cell index.
Definition: tetIndices.H:146
Storage and named access for the indices of a tet which is part of the decomposition of a cell...
Definition: tetIndices.H:78
Type interpolate(const cellPointWeight &cpw) const
Interpolate field for the given cellPointWeight.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
PtrList< coordinateSystem > coordinates(solidRegions.size())
label face() const noexcept
Return the face index.
Definition: tetIndices.H:156
Foam::cellPointWeight.
Foam::cellPointWeightWallModified.