partialFaceAreaWeightAMI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2019 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::partialFaceAreaWeightAMI
26 
27 Description
28  Partial face area weighted Arbitrary Mesh Interface (AMI) method
29 
30 SourceFiles
31  partialFaceAreaWeightAMI.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef partialFaceAreaWeightAMI_H
36 #define partialFaceAreaWeightAMI_H
37 
38 #include "faceAreaWeightAMI.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class partialFaceAreaWeightAMI Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public faceAreaWeightAMI
52 {
53  // Private Member Functions
54 
55  // Marching front
56 
57  //- Set the source and target seed faces
58  virtual void setNextFaces
59  (
60  label& startSeedI,
61  label& srcFacei,
62  label& tgtFacei,
63  const boolList& mapFlag,
64  labelList& seedFaces,
65  const DynamicList<label>& visitedFaces,
66  bool errorOnNotFound = true
67  ) const;
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("partialFaceAreaWeightAMI");
74 
75 
76  // Constructors
77 
78  //- Construct from components
80  (
81  const primitivePatch& srcPatch,
82  const primitivePatch& tgtPatch,
83  const scalarField& srcMagSf,
84  const scalarField& tgtMagSf,
86  const bool reverseTarget = false,
87  const bool requireMatch = true
88  );
89 
90  //- Disallow default bitwise copy construction
92 
93 
94  //- Destructor
95  virtual ~partialFaceAreaWeightAMI();
96 
97 
98  // Member Functions
99 
100  // Access
101 
102  //- Flag to indicate that interpolation patches are conformal
103  virtual bool conformal() const;
104 
105 
106  // Manipulation
107 
108  //- Update addressing and weights
109  virtual void calculate
110  (
111  labelListList& srcAddress,
112  scalarListList& srcWeights,
113  labelListList& tgtAddress,
114  scalarListList& tgtWeights,
115  label srcFacei = -1,
116  label tgtFacei = -1
117  );
118 
119 
120  // Member Operators
121 
122  //- Disallow default bitwise assignment
123  void operator=(const partialFaceAreaWeightAMI&) = delete;
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
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
partialFaceAreaWeightAMI(const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const scalarField &srcMagSf, const scalarField &tgtMagSf, const faceAreaIntersect::triangulationMode &triMode, const bool reverseTarget=false, const bool requireMatch=true)
Construct from components.
virtual bool conformal() const
Flag to indicate that interpolation patches are conformal.
virtual ~partialFaceAreaWeightAMI()
Destructor.
Face area weighted Arbitrary Mesh Interface (AMI) method.
A list of faces which address into the list of points.
virtual void calculate(labelListList &srcAddress, scalarListList &srcWeights, labelListList &tgtAddress, scalarListList &tgtWeights, label srcFacei=-1, label tgtFacei=-1)
Update addressing and weights.
void operator=(const partialFaceAreaWeightAMI &)=delete
Disallow default bitwise assignment.
Partial face area weighted Arbitrary Mesh Interface (AMI) method.
TypeName("partialFaceAreaWeightAMI")
Runtime type information.
Namespace for OpenFOAM.