WallCollisionRecord.C
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) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2019 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29#include "WallCollisionRecord.H"
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33template<class Type>
34const Foam::scalar Foam::WallCollisionRecord<Type>::errorCosAngle(1.0 + 1e-6);
35
36
37// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
38
39template<class Type>
41:
42 accessed_(false),
43 pRel_(),
44 data_(Zero)
45{}
46
47
48template<class Type>
50(
51 bool accessed,
52 const vector& pRel,
53 const Type& data
54)
55:
56 accessed_(accessed),
57 pRel_(pRel),
58 data_(data)
59{}
60
61
62template<class Type>
64(
66)
67:
68 accessed_(wCR.accessed_),
69 pRel_(wCR.pRel_),
70 data_(wCR.data_)
71{}
72
73
74// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
75
76template<class Type>
78{}
79
80
81// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
82
83template<class Type>
85(
87)
88{
89 if (this == &rhs)
90 {
91 return; // Self-assignment is a no-op
92 }
93
94 accessed_ = rhs.accessed_;
95 pRel_ = rhs.pRel_;
96 data_ = rhs.data_;
97}
98
99
100// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
101
103
104
105// ************************************************************************* //
Record of a collision between the particle holding the record and a wall face at the position relativ...
static const scalar errorCosAngle
Tolerance for detecting seriously erroneous wall matches.
WallCollisionRecord()
Construct null.
Database for solution data, solver performance and other reduced data.
Definition: data.H:58
volScalarField & e
Definition: createFields.H:11