correctedCellVolumeWeightMethod.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 | Copyright (C) 2015 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::correctedCellVolumeWeightMethod
26 
27 Description
28  Cell-volume-weighted mesh-to-mesh interpolation class
29 
30  Volume conservative with calculated offset vectors
31 
32 SourceFiles
33  correctedCellVolumeWeightMethod.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef correctedCellVolumeWeightMethod_H
38 #define correctedCellVolumeWeightMethod_H
39 
40 #include "cellVolumeWeightMethod.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class correctedCellVolumeWeightMethod Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
54 {
55 protected:
56 
57  // Protected Member Functions
58 
59  //- Calculate the mesh-to-mesh addressing and weights
61  (
62  labelListList& srcToTgtCellAddr,
63  scalarListList& srcToTgtCellWght,
64  pointListList& srcToTgtCellVec,
65  labelListList& tgtToSrcCellAddr,
66  scalarListList& tgtToSrcCellWght,
67  pointListList& tgtToSrcCellVec,
68  const label srcSeedI,
69  const label tgtSeedI,
70  const labelList& srcCellIDs,
71  boolList& mapFlag,
72  label& startSeedI
73  );
74 
75  //- Disallow default bitwise copy construct
77 
78  //- Disallow default bitwise assignment
80 
81 
82 public:
83 
84  //- Run-time type information
85  TypeName("correctedCellVolumeWeight");
86 
87  //- Construct from source and target meshes
89 
90  //- Destructor
92 
93 
94  // Member Functions
95 
96  // Evaluate
97 
98  //- Calculate addressing and weights and optionally offset vectors
99  virtual void calculate
100  (
101  labelListList& srcToTgtAddr,
102  scalarListList& srcToTgtWght,
103  pointListList& srcToTgtVec,
104  labelListList& tgtToSrcAddr,
105  scalarListList& tgtToSrcWght,
106  pointListList& tgtToSrcVec
107  );
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::correctedCellVolumeWeightMethod::operator=
void operator=(const correctedCellVolumeWeightMethod &)
Disallow default bitwise assignment.
Foam::correctedCellVolumeWeightMethod::calculateAddressing
void calculateAddressing(labelListList &srcToTgtCellAddr, scalarListList &srcToTgtCellWght, pointListList &srcToTgtCellVec, labelListList &tgtToSrcCellAddr, scalarListList &tgtToSrcCellWght, pointListList &tgtToSrcCellVec, const label srcSeedI, const label tgtSeedI, const labelList &srcCellIDs, boolList &mapFlag, label &startSeedI)
Calculate the mesh-to-mesh addressing and weights.
Definition: correctedCellVolumeWeightMethod.C:45
Foam::correctedCellVolumeWeightMethod::TypeName
TypeName("correctedCellVolumeWeight")
Run-time type information.
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Foam::correctedCellVolumeWeightMethod
Cell-volume-weighted mesh-to-mesh interpolation class.
Definition: correctedCellVolumeWeightMethod.H:50
Foam::meshToMeshMethod::src
const polyMesh & src() const
Return const access to the source mesh.
Definition: meshToMeshMethodI.H:26
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:59
Foam::correctedCellVolumeWeightMethod::calculate
virtual void calculate(labelListList &srcToTgtAddr, scalarListList &srcToTgtWght, pointListList &srcToTgtVec, labelListList &tgtToSrcAddr, scalarListList &tgtToSrcWght, pointListList &tgtToSrcVec)
Calculate addressing and weights and optionally offset vectors.
Definition: correctedCellVolumeWeightMethod.C:216
Foam::meshToMeshMethod::tgt
const polyMesh & tgt() const
Return const access to the target mesh.
Definition: meshToMeshMethodI.H:32
Foam::correctedCellVolumeWeightMethod::~correctedCellVolumeWeightMethod
virtual ~correctedCellVolumeWeightMethod()
Destructor.
Definition: correctedCellVolumeWeightMethod.C:209
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::correctedCellVolumeWeightMethod::correctedCellVolumeWeightMethod
correctedCellVolumeWeightMethod(const correctedCellVolumeWeightMethod &)
Disallow default bitwise copy construct.
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::cellVolumeWeightMethod
Cell-volume-weighted mesh-to-mesh interpolation class.
Definition: cellVolumeWeightMethod.H:50
cellVolumeWeightMethod.H