DTRMParticleI.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) 2017 OpenCFD Ltd.
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 
31 (
33  const interpolationCell<scalar>& aInterp,
34  const interpolationCell<scalar>& eInterp,
35  const interpolationCell<scalar>& EInterp,
36  const interpolationCell<scalar>& TInterp,
37  const interpolationCellPoint<vector>& nHatInterp,
38  const labelField& relfectedCell,
39  const UPtrList<reflectionModel>& reflection,
41 )
42 :
43  particle::trackingData(spc),
44  aInterp_(aInterp),
45  eInterp_(eInterp),
46  EInterp_(EInterp),
47  TInterp_(TInterp),
48  nHatInterp_(nHatInterp),
49  relfectedCells_(relfectedCell),
50  reflection_(reflection),
51  Q_(Q)
52 {}
53 
54 
55 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
56 
59 {
60  return aInterp_;
61 }
62 
63 
66 {
67  return eInterp_;
68 }
69 
70 
73 {
74  return EInterp_;
75 }
76 
77 
80 {
81  return TInterp_;
82 }
83 
86 {
87  return nHatInterp_;
88 }
89 
90 inline const Foam::labelField&
92 {
93  return relfectedCells_;
94 }
95 
96 
99 {
100  return reflection_;
101 }
102 
103 
104 inline Foam::scalar& Foam::DTRMParticle::trackingData::Q(label celli)
105 {
106  return Q_[celli];
107 }
108 
109 
110 // ************************************************************************* //
Class used to pass tracking data to the trackToFace function.
Definition: DTRMParticle.H:103
trackingData(Cloud< DTRMParticle > &spc, const interpolationCell< scalar > &aInterp, const interpolationCell< scalar > &eInterp, const interpolationCell< scalar > &EInterp, const interpolationCell< scalar > &TInterp, const interpolationCellPoint< vector > &nHatInterp, const labelField &, const UPtrList< reflectionModel > &, volScalarField &Q)
Definition: DTRMParticleI.H:24
const UPtrList< reflectionModel > & reflection() const
Definition: DTRMParticleI.H:91
const interpolationCell< scalar > & EInterp() const
Definition: DTRMParticleI.H:65
Base particle class.
Definition: particle.H:69
const interpolationCellPoint< vector > & nHatInterp() const
Definition: DTRMParticleI.H:78
const labelField & relfectedCells() const
Definition: DTRMParticleI.H:84
const interpolationCell< scalar > & aInterp() const
Definition: DTRMParticleI.H:51
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Definition: HashTable.H:106
Base cloud calls templated on particle type.
Definition: Cloud.H:51
Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate w...
const interpolationCell< scalar > & eInterp() const
Definition: DTRMParticleI.H:58
const interpolationCell< scalar > & TInterp() const
Definition: DTRMParticleI.H:72