meshToMeshI.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) 2012-2014 OpenFOAM Foundation
9  Copyright (C) 2016 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 "meshToMesh.H"
30 
31 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
32 
34 {
35  return srcRegion_;
36 }
37 
38 
40 {
41  return tgtRegion_;
42 }
43 
44 
46 {
47  return srcToTgtCellAddr_;
48 }
49 
50 
52 {
53  return tgtToSrcCellAddr_;
54 }
55 
56 
58 {
59  return srcToTgtCellWght_;
60 }
61 
62 
64 {
65  return tgtToSrcCellWght_;
66 }
67 
68 
70 {
71  return srcToTgtCellVec_;
72 }
73 
74 
76 {
77  return tgtToSrcCellVec_;
78 }
79 
80 
81 inline Foam::scalar Foam::meshToMesh::V() const
82 {
83  return V_;
84 }
85 
86 
89 {
90  return srcMapPtr_;
91 }
92 
93 
96 {
97  return tgtMapPtr_;
98 }
99 
100 
103 {
104  return patchAMIs_;
105 }
106 
107 
108 // ************************************************************************* //
Foam::meshToMesh::tgtToSrcCellWght
const scalarListList & tgtToSrcCellWght() const
Return const access to the target to source cell weights.
Definition: meshToMeshI.H:63
Foam::meshToMesh::patchAMIs
const PtrList< AMIPatchToPatchInterpolation > & patchAMIs() const
Return the list of AMIs between source and target patches.
Definition: meshToMeshI.H:102
Foam::meshToMesh::V
scalar V() const
Return const access to the overlap volume.
Definition: meshToMeshI.H:81
meshToMesh.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::meshToMesh::srcToTgtCellAddr
const labelListList & srcToTgtCellAddr() const
Return const access to the source to target cell addressing.
Definition: meshToMeshI.H:45
Foam::meshToMesh::srcToTgtCellVec
const pointListList & srcToTgtCellVec() const
Return const access to the source to target offset vectors.
Definition: meshToMeshI.H:69
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition: List.H:59
Foam::meshToMesh::tgtMap
const autoPtr< mapDistribute > & tgtMap() const
Target map pointer - valid if no singleMeshProc.
Definition: meshToMeshI.H:95
Foam::meshToMesh::srcRegion
const polyMesh & srcRegion() const
Return const access to the source mesh.
Definition: meshToMeshI.H:33
Foam::autoPtr< Foam::mapDistribute >
Foam::List< labelList >
Foam::meshToMesh::tgtRegion
const polyMesh & tgtRegion() const
Return const access to the target mesh.
Definition: meshToMeshI.H:39
Foam::meshToMesh::tgtToSrcCellAddr
const labelListList & tgtToSrcCellAddr() const
Return const access to the target to source cell addressing.
Definition: meshToMeshI.H:51
Foam::meshToMesh::srcMap
const autoPtr< mapDistribute > & srcMap() const
Source map pointer - valid if no singleMeshProc.
Definition: meshToMeshI.H:88
Foam::meshToMesh::srcToTgtCellWght
const scalarListList & srcToTgtCellWght() const
Return const access to the source to target cell weights.
Definition: meshToMeshI.H:57
Foam::meshToMesh::tgtToSrcCellVec
const pointListList & tgtToSrcCellVec() const
Return const access to the target to source offset vectors.
Definition: meshToMeshI.H:75