Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
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
31(
38 const labelField& relfectedCell,
41)
42:
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
82}
83
88}
89
90inline const Foam::labelField&
92{
93 return relfectedCells_;
94}
95
96
101}
102
103
104inline Foam::scalar& Foam::DTRMParticle::trackingData::Q(label celli)
105{
106 return Q_[celli];
107}
108
109
110// ************************************************************************* //
Base cloud calls templated on particle type.
Definition Cloud.H:64
const UPtrList< reflectionModel > & reflection() const
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)
const labelField & relfectedCells() const
const interpolationCell< scalar > & aInterp() const
const interpolationCellPoint< vector > & nHatInterp() const
const interpolationCell< scalar > & EInterp() const
const interpolationCell< scalar > & TInterp() const
const interpolationCell< scalar > & eInterp() const
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Definition UPtrList.H:101
Given cell centre values and point (vertex) values decompose into tetrahedra and linear interpolate w...
Uses the cell value for any location within the cell.
particle(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti)
Construct from components.
Definition particle.C:507
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Field< label > labelField
Specialisation of Field<T> for label.
Definition labelField.H:48