Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
30template<class ParcelType>
32(
33 const polyMesh& owner,
35 const label celli,
36 const label tetFacei,
37 const label tetPti
38)
40 ParcelType(owner, coordinates, celli, tetFacei, tetPti),
42{}
43
44
45template<class ParcelType>
47(
48 const polyMesh& owner,
49 const vector& position,
50 const label celli
51)
53 ParcelType(owner, position, celli),
55{}
56
57
58template<class ParcelType>
60(
61 const polyMesh& owner,
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
95template<class ParcelType>
97{
98 return UCorrect_;
99}
100
101
102template<class ParcelType>
104{
105 return UCorrect_;
106}
107
108
109// ************************************************************************* //
const vector & UCorrect() const
Return const access to correction velocity.
MPPICParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from mesh, coordinates and topology.
vector UCorrect_
Velocity correction due to collisions [m/s].
Mesh consisting of general polyhedral cells.
Definition polyMesh.H:79
PtrList< coordinateSystem > coordinates(solidRegions.size())
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
Barycentric< scalar > barycentric
A scalar version of the templated Barycentric.
Definition barycentric.H:45
Vector< scalar > vector
Definition vector.H:57