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-------------------------------------------------------------------------------
11License
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
31template<class Type>
33(
34 const cellPointWeight& cpw
35) const
36{
38}
39
40
41template<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
62template<class Type>
64(
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// ************************************************************************* //
Foam::cellPointWeightWallModified.
Foam::cellPointWeight.
Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate w...
bool interpolate() const noexcept
Same as isPointData()
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
Definition: tetIndices.H:84
label face() const noexcept
Return the face index.
Definition: tetIndices.H:139
label cell() const noexcept
Return the cell index.
Definition: tetIndices.H:133
PtrList< coordinateSystem > coordinates(solidRegions.size())
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:453
error FatalError
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:130