MPPICParcelI.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) 2013-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29 
30 template<class ParcelType>
32 (
33  const polyMesh& owner,
34  const barycentric& coordinates,
35  const label celli,
36  const label tetFacei,
37  const label tetPti
38 )
39 :
40  ParcelType(owner, coordinates, celli, tetFacei, tetPti),
41  UCorrect_(Zero)
42 {}
43 
44 
45 template<class ParcelType>
47 (
48  const polyMesh& owner,
49  const vector& position,
50  const label celli
51 )
52 :
53  ParcelType(owner, position, celli),
54  UCorrect_(Zero)
55 {}
56 
57 
58 template<class ParcelType>
60 (
61  const polyMesh& owner,
62  const barycentric& coordinates,
63  const label celli,
64  const label tetFacei,
65  const label tetPti,
66  const label typeId,
67  const scalar nParticle0,
68  const scalar d0,
69  const scalar dTarget0,
70  const vector& U0,
71  const vector& UCorrect0,
72  const typename ParcelType::constantProperties& constProps
73 )
74 :
75  ParcelType
76  (
77  owner,
79  celli,
80  tetFacei,
81  tetPti,
82  typeId,
83  nParticle0,
84  d0,
85  dTarget0,
86  U0,
87  constProps
88  ),
89  UCorrect_(UCorrect0)
90 {}
91 
92 
93 // * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * * //
94 
95 template<class ParcelType>
97 {
98  return UCorrect_;
99 }
100 
101 
102 template<class ParcelType>
104 {
105  return UCorrect_;
106 }
107 
108 
109 // ************************************************************************* //
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::MPPICParcel::UCorrect
const vector & UCorrect() const
Return const access to correction velocity.
Definition: MPPICParcelI.H:96
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
coordinates
PtrList< coordinateSystem > coordinates(solidRegions.size())
Foam::Barycentric< scalar >
Foam::Vector< scalar >
Foam::MPPICParcel::MPPICParcel
MPPICParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
Definition: MPPICParcelI.H:32