Added copy constructors to classes with copy assignment operator defined
and copy assignment operator for classes with a copy constructor This is often described as the rule of 3 (or rule of 5 in C++11 if move constructors and assignment operators are also defined) and makes good sense in ensuring consistency. For classes in which the default bitwise copy constructor or assignment operator are appropriate these are now specified explicitly using the "= default" keyword if the other is explicitly defined fulfilling the rule of 3 without the need to define the body of the function.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -171,6 +171,8 @@ public:
|
||||
|
||||
inline indexedVertex(Cell_handle f);
|
||||
|
||||
indexedVertex(const indexedVertex& p) = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -207,6 +207,9 @@ public:
|
||||
//- Construct for a given DLListBase and link
|
||||
inline iterator(DLListBase&, link*);
|
||||
|
||||
//- Copy constructor
|
||||
inline iterator(const iterator&) = default;
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const iterator&);
|
||||
@ -245,6 +248,9 @@ public:
|
||||
//- Construct from a non-const iterator
|
||||
inline const_iterator(const iterator&);
|
||||
|
||||
//- Copy constructor
|
||||
inline const_iterator(const const_iterator&) = default;
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const const_iterator&);
|
||||
@ -283,6 +289,12 @@ public:
|
||||
//- Construct for a given DLListBase and link
|
||||
inline const_reverse_iterator(const DLListBase&, const link*);
|
||||
|
||||
//- Copy constructor
|
||||
inline const_reverse_iterator
|
||||
(
|
||||
const const_reverse_iterator&
|
||||
) = default;
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const const_reverse_iterator&);
|
||||
|
||||
@ -190,6 +190,9 @@ public:
|
||||
//- Construct for a given SLListBase and link
|
||||
inline iterator(SLListBase&, link*);
|
||||
|
||||
//- Copy constructor
|
||||
inline iterator(const iterator&) = default;
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const iterator&);
|
||||
@ -228,6 +231,8 @@ public:
|
||||
//- Construct from a non-const iterator
|
||||
inline const_iterator(const iterator&);
|
||||
|
||||
//- Copy constructor
|
||||
inline const_iterator(const const_iterator&) = default;
|
||||
|
||||
// Member operators
|
||||
|
||||
|
||||
@ -138,9 +138,6 @@ public:
|
||||
//- Construct from SLList
|
||||
explicit inline FixedList(const SLList<T>&);
|
||||
|
||||
//- Copy constructor
|
||||
inline FixedList(const FixedList<T, Size>&);
|
||||
|
||||
//- Construct from Istream
|
||||
FixedList(Istream&);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -104,16 +104,6 @@ inline Foam::FixedList<T, Size>::FixedList(const SLList<T>& lst)
|
||||
}
|
||||
|
||||
|
||||
template<class T, unsigned Size>
|
||||
inline Foam::FixedList<T, Size>::FixedList(const FixedList<T, Size>& lst)
|
||||
{
|
||||
for (unsigned i=0; i<Size; i++)
|
||||
{
|
||||
v_[i] = lst[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<class T, unsigned Size>
|
||||
inline Foam::autoPtr<Foam::FixedList<T, Size>>
|
||||
Foam::FixedList<T, Size>::clone() const
|
||||
|
||||
@ -256,9 +256,14 @@ void Foam::PtrList<T>::shuffle(const labelUList& newToOld)
|
||||
if (oldI >= 0 && oldI < this->size())
|
||||
{
|
||||
newPtrs_[newI] = this->ptrs_[oldI];
|
||||
this->ptrs_[oldI] = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// Delete all remaining pointers
|
||||
clear();
|
||||
|
||||
// Take over new pointers
|
||||
this->ptrs_.transfer(newPtrs_);
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -81,6 +81,9 @@ public:
|
||||
const label startIndex
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
inline SubList(const SubList<T>& sl) = default;
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -72,6 +72,9 @@ public:
|
||||
//- Construct given the complete list and the addressing array
|
||||
inline UIndirectList(const UList<T>&, const labelUList&);
|
||||
|
||||
//- Copy constructor
|
||||
UIndirectList(const UIndirectList<T>&) = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -262,6 +262,9 @@ public:
|
||||
const word& name
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
IOobject(const IOobject& io) = default;
|
||||
|
||||
//- Clone
|
||||
autoPtr<IOobject> clone() const
|
||||
{
|
||||
|
||||
@ -208,6 +208,21 @@ public:
|
||||
|
||||
//- Print description of IOstream to Ostream
|
||||
void print(Ostream&) const;
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
//- Assignment operator
|
||||
void operator=(const ITstream& its)
|
||||
{
|
||||
Istream::operator=(its);
|
||||
tokenList::operator=(its);
|
||||
name_ = its.name_;
|
||||
tokenIndex_ = 0;
|
||||
|
||||
setOpened();
|
||||
setGood();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -109,6 +109,9 @@ public:
|
||||
const DimensionedField<Type, pointMesh>&
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
valuePointPatchField(const valuePointPatchField<Type>&) = default;
|
||||
|
||||
//- Construct and return a clone setting internal field reference
|
||||
virtual autoPtr<pointPatchField<Type>> clone
|
||||
(
|
||||
|
||||
@ -385,6 +385,19 @@ Type Foam::interpolationTable<Type>::rateOfChange(const scalar value) const
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
void Foam::interpolationTable<Type>::operator=
|
||||
(
|
||||
const interpolationTable& interpTable
|
||||
)
|
||||
{
|
||||
List<Tuple2<scalar, Type>>::operator=(interpTable);
|
||||
boundsHandling_ = interpTable.boundsHandling_;
|
||||
fileName_ = interpTable.fileName_;
|
||||
reader_ = interpTable.reader_; // note: steals reader. Used in write().
|
||||
}
|
||||
|
||||
|
||||
template<class Type>
|
||||
const Foam::Tuple2<Foam::scalar, Type>&
|
||||
Foam::interpolationTable<Type>::operator[](const label i) const
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -166,6 +166,9 @@ public:
|
||||
|
||||
// Member Operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const interpolationTable&);
|
||||
|
||||
//- Return an element of constant Tuple2<scalar, Type>
|
||||
const Tuple2<scalar, Type>& operator[](const label) const;
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -71,6 +71,7 @@ class patchIdentifier
|
||||
//- Optional groups patch belongs to
|
||||
wordList inGroups_;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -126,7 +126,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const complex&);
|
||||
inline void operator+=(const complex&);
|
||||
inline void operator-=(const complex&);
|
||||
inline void operator*=(const complex&);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -75,13 +75,6 @@ inline complex complex::conjugate() const
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
inline void complex::operator=(const complex& c)
|
||||
{
|
||||
re = c.re;
|
||||
im = c.im;
|
||||
}
|
||||
|
||||
|
||||
inline void complex::operator+=(const complex& c)
|
||||
{
|
||||
re += c.re;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -41,18 +41,6 @@ Foam::Polynomial<PolySize>::Polynomial()
|
||||
}
|
||||
|
||||
|
||||
template<int PolySize>
|
||||
Foam::Polynomial<PolySize>::Polynomial
|
||||
(
|
||||
const Polynomial<PolySize>& poly
|
||||
)
|
||||
:
|
||||
VectorSpace<Polynomial<PolySize>, scalar, PolySize>(poly),
|
||||
logActive_(poly.logActive_),
|
||||
logCoeff_(poly.logCoeff_)
|
||||
{}
|
||||
|
||||
|
||||
template<int PolySize>
|
||||
Foam::Polynomial<PolySize>::Polynomial(const scalar coeffs[PolySize])
|
||||
:
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -106,9 +106,6 @@ public:
|
||||
//- Construct null, with all coefficients = 0.0
|
||||
Polynomial();
|
||||
|
||||
//- Copy constructor
|
||||
Polynomial(const Polynomial&);
|
||||
|
||||
//- Construct from C-array of coefficients
|
||||
explicit Polynomial(const scalar coeffs[PolySize]);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -164,7 +164,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const vectorTensorTransform&);
|
||||
inline void operator&=(const vectorTensorTransform&);
|
||||
|
||||
inline void operator=(const vector&);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -171,17 +171,6 @@ inline Foam::pointField Foam::vectorTensorTransform::invTransformPosition
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::vectorTensorTransform::operator=
|
||||
(
|
||||
const vectorTensorTransform& tr
|
||||
)
|
||||
{
|
||||
t_ = tr.t_;
|
||||
R_ = tr.R_;
|
||||
hasR_ = tr.hasR_;
|
||||
}
|
||||
|
||||
|
||||
inline void Foam::vectorTensorTransform::operator&=
|
||||
(
|
||||
const vectorTensorTransform& tr
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -213,7 +213,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const quaternion&);
|
||||
inline void operator+=(const quaternion&);
|
||||
inline void operator-=(const quaternion&);
|
||||
inline void operator*=(const quaternion&);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -523,12 +523,6 @@ inline Foam::vector Foam::quaternion::eulerAngles
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::quaternion::operator=(const quaternion& q)
|
||||
{
|
||||
w_ = q.w_;
|
||||
v_ = q.v_;
|
||||
}
|
||||
|
||||
inline void Foam::quaternion::operator+=(const quaternion& q)
|
||||
{
|
||||
w_ += q.w_;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -130,7 +130,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const septernion&);
|
||||
inline void operator*=(const septernion&);
|
||||
|
||||
inline void operator=(const vector&);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -93,12 +93,6 @@ inline Foam::vector Foam::septernion::invTransformPoint(const vector& v) const
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::septernion::operator=(const septernion& tr)
|
||||
{
|
||||
t_ = tr.t_;
|
||||
r_ = tr.r_;
|
||||
}
|
||||
|
||||
inline void Foam::septernion::operator*=(const septernion& tr)
|
||||
{
|
||||
t_ = tr.t() + tr.r().invTransform(t_);
|
||||
|
||||
@ -57,14 +57,6 @@ Foam::boundaryPatch::boundaryPatch
|
||||
{}
|
||||
|
||||
|
||||
Foam::boundaryPatch::boundaryPatch(const boundaryPatch& p)
|
||||
:
|
||||
patchIdentifier(p.name(), p.index(), p.physicalType()),
|
||||
size_(p.size()),
|
||||
start_(p.start())
|
||||
{}
|
||||
|
||||
|
||||
Foam::boundaryPatch::boundaryPatch(const boundaryPatch& p, const label index)
|
||||
:
|
||||
patchIdentifier(p.name(), index, p.physicalType()),
|
||||
|
||||
@ -86,9 +86,6 @@ public:
|
||||
const label index
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
boundaryPatch(const boundaryPatch&);
|
||||
|
||||
//- Copy constructor, resetting the index
|
||||
boundaryPatch(const boundaryPatch&, const label index);
|
||||
|
||||
|
||||
@ -139,9 +139,6 @@ public:
|
||||
const vector& n
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
inline directionInfo(const directionInfo&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -29,7 +29,6 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Null constructor
|
||||
inline Foam::directionInfo::directionInfo()
|
||||
:
|
||||
index_(-3),
|
||||
@ -37,7 +36,6 @@ inline Foam::directionInfo::directionInfo()
|
||||
{}
|
||||
|
||||
|
||||
// Construct from components
|
||||
inline Foam::directionInfo::directionInfo
|
||||
(
|
||||
const label index,
|
||||
@ -49,14 +47,6 @@ inline Foam::directionInfo::directionInfo
|
||||
{}
|
||||
|
||||
|
||||
// Copy constructor
|
||||
inline Foam::directionInfo::directionInfo(const directionInfo& w2)
|
||||
:
|
||||
index_(w2.index()),
|
||||
n_(w2.n())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class TrackingData>
|
||||
@ -66,7 +56,6 @@ inline bool Foam::directionInfo::valid(TrackingData& td) const
|
||||
}
|
||||
|
||||
|
||||
// No geometric data so never any problem on cyclics
|
||||
template<class TrackingData>
|
||||
inline bool Foam::directionInfo::sameGeometry
|
||||
(
|
||||
@ -81,7 +70,6 @@ inline bool Foam::directionInfo::sameGeometry
|
||||
}
|
||||
|
||||
|
||||
// index_ is already offset in face
|
||||
template<class TrackingData>
|
||||
inline void Foam::directionInfo::leaveDomain
|
||||
(
|
||||
@ -94,10 +82,6 @@ inline void Foam::directionInfo::leaveDomain
|
||||
{}
|
||||
|
||||
|
||||
// index_ is offset in face on other side. So reverse it here.
|
||||
// (Note: f[0] on other domain is connected to f[0] in this domain,
|
||||
// f[1] ,, f[size-1] ,,
|
||||
// etc.)
|
||||
template<class TrackingData>
|
||||
inline void Foam::directionInfo::enterDomain
|
||||
(
|
||||
@ -117,7 +101,6 @@ inline void Foam::directionInfo::enterDomain
|
||||
}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::directionInfo::transform
|
||||
(
|
||||
@ -128,7 +111,6 @@ inline void Foam::directionInfo::transform
|
||||
{}
|
||||
|
||||
|
||||
// Update this cell with neighbouring face information
|
||||
template<class TrackingData>
|
||||
inline bool Foam::directionInfo::updateCell
|
||||
(
|
||||
@ -209,7 +191,6 @@ inline bool Foam::directionInfo::updateCell
|
||||
}
|
||||
|
||||
|
||||
// Update this face with neighbouring cell information
|
||||
template<class TrackingData>
|
||||
inline bool Foam::directionInfo::updateFace
|
||||
(
|
||||
@ -258,7 +239,6 @@ inline bool Foam::directionInfo::updateFace
|
||||
}
|
||||
|
||||
|
||||
// Merge this with information on same face
|
||||
template<class TrackingData>
|
||||
inline bool Foam::directionInfo::updateFace
|
||||
(
|
||||
@ -298,15 +278,19 @@ inline bool Foam::directionInfo::equal
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
inline bool Foam::directionInfo::operator==(const Foam::directionInfo& rhs)
|
||||
const
|
||||
inline bool Foam::directionInfo::operator==
|
||||
(
|
||||
const Foam::directionInfo& rhs
|
||||
) const
|
||||
{
|
||||
return index() == rhs.index() && n() == rhs.n();
|
||||
}
|
||||
|
||||
|
||||
inline bool Foam::directionInfo::operator!=(const Foam::directionInfo& rhs)
|
||||
const
|
||||
inline bool Foam::directionInfo::operator!=
|
||||
(
|
||||
const Foam::directionInfo& rhs
|
||||
) const
|
||||
{
|
||||
return !(*this == rhs);
|
||||
}
|
||||
|
||||
@ -87,8 +87,6 @@ public:
|
||||
//- Construct from normal
|
||||
inline wallNormalInfo(const vector& normal);
|
||||
|
||||
//- Copy constructor
|
||||
inline wallNormalInfo(const wallNormalInfo&);
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -27,7 +27,6 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
// Update this with w2 if not yet set.
|
||||
template<class TrackingData>
|
||||
inline bool Foam::wallNormalInfo::update
|
||||
(
|
||||
@ -58,27 +57,18 @@ inline bool Foam::wallNormalInfo::update
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Null constructor
|
||||
inline Foam::wallNormalInfo::wallNormalInfo()
|
||||
:
|
||||
normal_(point::max)
|
||||
{}
|
||||
|
||||
|
||||
// Construct from normal
|
||||
inline Foam::wallNormalInfo::wallNormalInfo(const vector& normal)
|
||||
:
|
||||
normal_(normal)
|
||||
{}
|
||||
|
||||
|
||||
// Copy constructor
|
||||
inline Foam::wallNormalInfo::wallNormalInfo(const wallNormalInfo& wpt)
|
||||
:
|
||||
normal_(wpt.normal())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::vector& Foam::wallNormalInfo::normal() const
|
||||
@ -94,7 +84,6 @@ inline bool Foam::wallNormalInfo::valid(TrackingData& td) const
|
||||
}
|
||||
|
||||
|
||||
// No geometric data so never any problem on cyclics
|
||||
template<class TrackingData>
|
||||
inline bool Foam::wallNormalInfo::sameGeometry
|
||||
(
|
||||
@ -108,7 +97,6 @@ inline bool Foam::wallNormalInfo::sameGeometry
|
||||
}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::wallNormalInfo::leaveDomain
|
||||
(
|
||||
@ -121,7 +109,6 @@ inline void Foam::wallNormalInfo::leaveDomain
|
||||
{}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::wallNormalInfo::transform
|
||||
(
|
||||
@ -132,7 +119,6 @@ inline void Foam::wallNormalInfo::transform
|
||||
{}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::wallNormalInfo::enterDomain
|
||||
(
|
||||
@ -145,7 +131,6 @@ inline void Foam::wallNormalInfo::enterDomain
|
||||
{}
|
||||
|
||||
|
||||
// Update this with w2 if w2 nearer to pt.
|
||||
template<class TrackingData>
|
||||
inline bool Foam::wallNormalInfo::updateCell
|
||||
(
|
||||
@ -161,7 +146,6 @@ inline bool Foam::wallNormalInfo::updateCell
|
||||
}
|
||||
|
||||
|
||||
// Update this with w2 if w2 nearer to pt.
|
||||
template<class TrackingData>
|
||||
inline bool Foam::wallNormalInfo::updateFace
|
||||
(
|
||||
@ -177,7 +161,6 @@ inline bool Foam::wallNormalInfo::updateFace
|
||||
}
|
||||
|
||||
|
||||
// Update this with w2 if w2 nearer to pt.
|
||||
template<class TrackingData>
|
||||
inline bool Foam::wallNormalInfo::updateFace
|
||||
(
|
||||
@ -205,15 +188,19 @@ inline bool Foam::wallNormalInfo::equal
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
inline bool Foam::wallNormalInfo::operator==(const Foam::wallNormalInfo& rhs)
|
||||
const
|
||||
inline bool Foam::wallNormalInfo::operator==
|
||||
(
|
||||
const Foam::wallNormalInfo& rhs
|
||||
) const
|
||||
{
|
||||
return normal() == rhs.normal();
|
||||
}
|
||||
|
||||
|
||||
inline bool Foam::wallNormalInfo::operator!=(const Foam::wallNormalInfo& rhs)
|
||||
const
|
||||
inline bool Foam::wallNormalInfo::operator!=
|
||||
(
|
||||
const Foam::wallNormalInfo& rhs
|
||||
) const
|
||||
{
|
||||
return !(*this == rhs);
|
||||
}
|
||||
|
||||
@ -122,9 +122,6 @@ public:
|
||||
//- Construct from origin, distance
|
||||
inline externalPointEdgePoint(const point&, const scalar);
|
||||
|
||||
//- Copy constructor
|
||||
inline externalPointEdgePoint(const externalPointEdgePoint&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -133,16 +133,6 @@ inline Foam::externalPointEdgePoint::externalPointEdgePoint
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::externalPointEdgePoint::externalPointEdgePoint
|
||||
(
|
||||
const externalPointEdgePoint& wpt
|
||||
)
|
||||
:
|
||||
origin_(wpt.origin()),
|
||||
distSqr_(wpt.distSqr())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::point& Foam::externalPointEdgePoint::origin() const
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -118,6 +118,9 @@ public:
|
||||
//- Construct from Istream and engineTime
|
||||
ignitionSite(Istream&, const engineTime&, const fvMesh&);
|
||||
|
||||
//- Copy constructor
|
||||
ignitionSite(const ignitionSite&) = default;
|
||||
|
||||
//- Clone
|
||||
autoPtr<ignitionSite> clone() const
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -55,21 +55,6 @@ Foam::referredWallFace::referredWallFace
|
||||
}
|
||||
|
||||
|
||||
Foam::referredWallFace::referredWallFace(const referredWallFace& rWF)
|
||||
:
|
||||
face(rWF),
|
||||
pts_(rWF.pts_),
|
||||
patchi_(rWF.patchi_)
|
||||
{
|
||||
if (this->size() != pts_.size())
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Face and pointField are not the same size. " << nl << (*this)
|
||||
<< abort(FatalError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::referredWallFace::~referredWallFace()
|
||||
|
||||
@ -87,9 +87,6 @@ public:
|
||||
label patchi
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
referredWallFace(const referredWallFace&);
|
||||
|
||||
|
||||
//- Destructor
|
||||
~referredWallFace();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -23,8 +23,6 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
const Foam::pointField& Foam::referredWallFace::points() const
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -388,27 +388,6 @@ void Foam::CollisionRecordList<PairType, WallType>::update()
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
|
||||
|
||||
template<class PairType, class WallType>
|
||||
void Foam::CollisionRecordList<PairType, WallType>::operator=
|
||||
(
|
||||
const CollisionRecordList<PairType, WallType>& rhs
|
||||
)
|
||||
{
|
||||
// Check for assignment to self
|
||||
if (this == &rhs)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Attempted assignment to self"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
pairRecords_ = rhs.pairRecords_;
|
||||
wallRecords_ = rhs.wallRecords_;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * //
|
||||
|
||||
template<class PairType, class WallType>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -194,11 +194,6 @@ public:
|
||||
void update();
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
void operator=(const CollisionRecordList&);
|
||||
|
||||
|
||||
// Friend Operators
|
||||
|
||||
friend bool operator== <PairType, WallType>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -193,16 +193,6 @@ Foam::phaseProperties::phaseProperties()
|
||||
{}
|
||||
|
||||
|
||||
Foam::phaseProperties::phaseProperties(const phaseProperties& pp)
|
||||
:
|
||||
phase_(pp.phase_),
|
||||
stateLabel_(pp.stateLabel_),
|
||||
names_(pp.names_),
|
||||
Y_(pp.Y_),
|
||||
carrierIds_(pp.carrierIds_)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::phaseProperties::~phaseProperties()
|
||||
|
||||
@ -122,9 +122,6 @@ public:
|
||||
//- Construct from Istream
|
||||
phaseProperties(Istream&);
|
||||
|
||||
//- Copy constructor
|
||||
phaseProperties(const phaseProperties&);
|
||||
|
||||
|
||||
//- Destructor
|
||||
~phaseProperties();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -103,9 +103,6 @@ public:
|
||||
|
||||
// Operators
|
||||
|
||||
//- Assignment
|
||||
inline void operator=(const forceSuSp& susp);
|
||||
|
||||
//- Addition
|
||||
inline void operator+=(const forceSuSp& susp);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -79,13 +79,6 @@ inline Foam::scalar& Foam::forceSuSp::Sp()
|
||||
|
||||
// * * * * * * * * * * * * * * * Operators * * * * * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::forceSuSp::operator=(const forceSuSp& susp)
|
||||
{
|
||||
first() = susp.first();
|
||||
second() = susp.second();
|
||||
}
|
||||
|
||||
|
||||
inline void Foam::forceSuSp::operator+=(const forceSuSp& susp)
|
||||
{
|
||||
first() += susp.first();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -69,21 +69,6 @@ SingleKineticRateDevolatilisation
|
||||
}
|
||||
|
||||
|
||||
template<class CloudType>
|
||||
Foam::SingleKineticRateDevolatilisation<CloudType>::
|
||||
SingleKineticRateDevolatilisation
|
||||
(
|
||||
const SingleKineticRateDevolatilisation<CloudType>& dm
|
||||
)
|
||||
:
|
||||
DevolatilisationModel<CloudType>(dm),
|
||||
volatileData_(dm.volatileData_),
|
||||
YVolatile0_(dm.YVolatile0_),
|
||||
volatileToGasMap_(dm.volatileToGasMap_),
|
||||
residualCoeff_(dm.residualCoeff_)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
template<class CloudType>
|
||||
|
||||
@ -106,14 +106,6 @@ class SingleKineticRateDevolatilisation
|
||||
E_(readScalar(is))
|
||||
{}
|
||||
|
||||
//- Copy constructor
|
||||
volatileData(const volatileData& vd)
|
||||
:
|
||||
name_(vd.name_),
|
||||
A1_(vd.A1_),
|
||||
E_(vd.E_)
|
||||
{}
|
||||
|
||||
|
||||
//- Destructor
|
||||
~volatileData()
|
||||
@ -203,12 +195,6 @@ public:
|
||||
CloudType& owner
|
||||
);
|
||||
|
||||
//- Construct copy
|
||||
SingleKineticRateDevolatilisation
|
||||
(
|
||||
const SingleKineticRateDevolatilisation<CloudType>& dm
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<DevolatilisationModel<CloudType>> clone() const
|
||||
{
|
||||
|
||||
@ -87,9 +87,6 @@ public:
|
||||
const vector& v
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
inline pointData(const pointData&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Null constructor
|
||||
inline Foam::pointData::pointData()
|
||||
:
|
||||
pointEdgePoint(),
|
||||
@ -37,7 +36,6 @@ inline Foam::pointData::pointData()
|
||||
{}
|
||||
|
||||
|
||||
// Construct from origin, distance
|
||||
inline Foam::pointData::pointData
|
||||
(
|
||||
const point& origin,
|
||||
@ -52,15 +50,6 @@ inline Foam::pointData::pointData
|
||||
{}
|
||||
|
||||
|
||||
// Copy constructor
|
||||
inline Foam::pointData::pointData(const pointData& wpt)
|
||||
:
|
||||
pointEdgePoint(wpt),
|
||||
s_(wpt.s()),
|
||||
v_(wpt.v())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline Foam::scalar Foam::pointData::s() const
|
||||
|
||||
@ -111,9 +111,6 @@ public:
|
||||
//- Construct from origin, distance
|
||||
inline patchEdgeFaceInfo(const point&, const scalar);
|
||||
|
||||
//- Copy constructor
|
||||
inline patchEdgeFaceInfo(const patchEdgeFaceInfo&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -117,7 +117,6 @@ inline bool Foam::patchEdgeFaceInfo::update
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Null constructor
|
||||
inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo()
|
||||
:
|
||||
origin_(point::max),
|
||||
@ -125,7 +124,6 @@ inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo()
|
||||
{}
|
||||
|
||||
|
||||
// Construct from origin, distance
|
||||
inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo
|
||||
(
|
||||
const point& origin,
|
||||
@ -137,14 +135,6 @@ inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo
|
||||
{}
|
||||
|
||||
|
||||
// Copy constructor
|
||||
inline Foam::patchEdgeFaceInfo::patchEdgeFaceInfo(const patchEdgeFaceInfo& wpt)
|
||||
:
|
||||
origin_(wpt.origin()),
|
||||
distSqr_(wpt.distSqr())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::point& Foam::patchEdgeFaceInfo::origin() const
|
||||
|
||||
@ -112,9 +112,6 @@ public:
|
||||
//- Construct from origin, distance
|
||||
inline pointEdgePoint(const point&, const scalar);
|
||||
|
||||
//- Copy constructor
|
||||
inline pointEdgePoint(const pointEdgePoint&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -117,7 +117,6 @@ inline bool Foam::pointEdgePoint::update
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Null constructor
|
||||
inline Foam::pointEdgePoint::pointEdgePoint()
|
||||
:
|
||||
origin_(point::max),
|
||||
@ -125,7 +124,6 @@ inline Foam::pointEdgePoint::pointEdgePoint()
|
||||
{}
|
||||
|
||||
|
||||
// Construct from origin, distance
|
||||
inline Foam::pointEdgePoint::pointEdgePoint
|
||||
(
|
||||
const point& origin,
|
||||
@ -137,14 +135,6 @@ inline Foam::pointEdgePoint::pointEdgePoint
|
||||
{}
|
||||
|
||||
|
||||
// Copy constructor
|
||||
inline Foam::pointEdgePoint::pointEdgePoint(const pointEdgePoint& wpt)
|
||||
:
|
||||
origin_(wpt.origin()),
|
||||
distSqr_(wpt.distSqr())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::point& Foam::pointEdgePoint::origin() const
|
||||
|
||||
@ -93,9 +93,6 @@ public:
|
||||
//- Construct from cType
|
||||
inline cellInfo(const label);
|
||||
|
||||
//- Copy constructor
|
||||
inline cellInfo(const cellInfo&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -92,27 +92,18 @@ inline bool Foam::cellInfo::update
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Null constructor
|
||||
inline Foam::cellInfo::cellInfo()
|
||||
:
|
||||
type_(cellClassification::NOTSET)
|
||||
{}
|
||||
|
||||
|
||||
// Construct from components
|
||||
inline Foam::cellInfo::cellInfo(const label type)
|
||||
:
|
||||
type_(type)
|
||||
{}
|
||||
|
||||
|
||||
// Copy constructor
|
||||
inline Foam::cellInfo::cellInfo(const cellInfo& w2)
|
||||
:
|
||||
type_(w2.type())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class TrackingData>
|
||||
@ -122,7 +113,6 @@ inline bool Foam::cellInfo::valid(TrackingData& td) const
|
||||
}
|
||||
|
||||
|
||||
// No geometric data so never any problem on cyclics
|
||||
template<class TrackingData>
|
||||
inline bool Foam::cellInfo::sameGeometry
|
||||
(
|
||||
@ -137,7 +127,6 @@ inline bool Foam::cellInfo::sameGeometry
|
||||
}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::cellInfo::leaveDomain
|
||||
(
|
||||
@ -150,7 +139,6 @@ inline void Foam::cellInfo::leaveDomain
|
||||
{}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::cellInfo::transform
|
||||
(
|
||||
@ -161,7 +149,6 @@ inline void Foam::cellInfo::transform
|
||||
{}
|
||||
|
||||
|
||||
// No geometric data.
|
||||
template<class TrackingData>
|
||||
inline void Foam::cellInfo::enterDomain
|
||||
(
|
||||
@ -174,7 +161,6 @@ inline void Foam::cellInfo::enterDomain
|
||||
{}
|
||||
|
||||
|
||||
// Update this with neighbour information
|
||||
template<class TrackingData>
|
||||
inline bool Foam::cellInfo::updateCell
|
||||
(
|
||||
@ -198,7 +184,6 @@ inline bool Foam::cellInfo::updateCell
|
||||
}
|
||||
|
||||
|
||||
// Update this with neighbour information
|
||||
template<class TrackingData>
|
||||
inline bool Foam::cellInfo::updateFace
|
||||
(
|
||||
@ -221,7 +206,7 @@ inline bool Foam::cellInfo::updateFace
|
||||
);
|
||||
}
|
||||
|
||||
// Update this with neighbour information
|
||||
|
||||
template<class TrackingData>
|
||||
inline bool Foam::cellInfo::updateFace
|
||||
(
|
||||
|
||||
@ -97,9 +97,6 @@ public:
|
||||
//- Construct from origin, distance
|
||||
inline wallPoint(const point& origin, const scalar distSqr);
|
||||
|
||||
//- Copy constructor
|
||||
inline wallPoint(const wallPoint&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -96,13 +96,6 @@ inline Foam::wallPoint::wallPoint(const point& origin, const scalar distSqr)
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::wallPoint::wallPoint(const wallPoint& wpt)
|
||||
:
|
||||
origin_(wpt.origin()),
|
||||
distSqr_(wpt.distSqr())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::point& Foam::wallPoint::origin() const
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -175,6 +175,9 @@ public:
|
||||
// to the given degrees of freedom of the joint
|
||||
inline joint(const rigidBodyModel& model, const label nDoF);
|
||||
|
||||
//- Copy constructor
|
||||
joint(const joint&) = default;
|
||||
|
||||
//- Clone this joint (needed by PtrList)
|
||||
virtual autoPtr<joint> clone() const = 0;
|
||||
|
||||
|
||||
@ -399,14 +399,12 @@ void Foam::cuttingPlane::remapFaces
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct without cutting
|
||||
Foam::cuttingPlane::cuttingPlane(const plane& pln)
|
||||
:
|
||||
plane(pln)
|
||||
{}
|
||||
|
||||
|
||||
// Construct from plane and mesh reference, restricted to a list of cells
|
||||
Foam::cuttingPlane::cuttingPlane
|
||||
(
|
||||
const plane& pln,
|
||||
@ -421,22 +419,4 @@ Foam::cuttingPlane::cuttingPlane
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::cuttingPlane::operator=(const cuttingPlane& rhs)
|
||||
{
|
||||
// Check for assignment to self
|
||||
if (this == &rhs)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Attempted assignment to self"
|
||||
<< abort(FatalError);
|
||||
}
|
||||
|
||||
static_cast<MeshStorage&>(*this) = rhs;
|
||||
static_cast<plane&>(*this) = rhs;
|
||||
cutCells_ = rhs.cutCells();
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -174,11 +174,6 @@ public:
|
||||
|
||||
template<class Type>
|
||||
tmp<Field<Type>> sample(const tmp<Field<Type>>&) const;
|
||||
|
||||
|
||||
// Member Operators
|
||||
|
||||
void operator=(const cuttingPlane&);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -59,20 +59,6 @@ Foam::sixDoFRigidBodyMotionState::sixDoFRigidBodyMotionState
|
||||
{}
|
||||
|
||||
|
||||
Foam::sixDoFRigidBodyMotionState::sixDoFRigidBodyMotionState
|
||||
(
|
||||
const sixDoFRigidBodyMotionState& sDoFRBMS
|
||||
)
|
||||
:
|
||||
centreOfRotation_(sDoFRBMS.centreOfRotation()),
|
||||
Q_(sDoFRBMS.Q()),
|
||||
v_(sDoFRBMS.v()),
|
||||
a_(sDoFRBMS.a()),
|
||||
pi_(sDoFRBMS.pi()),
|
||||
tau_(sDoFRBMS.tau())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::sixDoFRigidBodyMotionState::~sixDoFRigidBodyMotionState()
|
||||
|
||||
@ -100,9 +100,6 @@ public:
|
||||
//- Construct from dictionary
|
||||
sixDoFRigidBodyMotionState(const dictionary& dict);
|
||||
|
||||
//- Copy constructor
|
||||
sixDoFRigidBodyMotionState(const sixDoFRigidBodyMotionState&);
|
||||
|
||||
|
||||
//- Destructor
|
||||
~sixDoFRigidBodyMotionState();
|
||||
|
||||
@ -86,14 +86,6 @@ Foam::surfZone::surfZone
|
||||
{}
|
||||
|
||||
|
||||
Foam::surfZone::surfZone(const surfZone& zone)
|
||||
:
|
||||
surfZoneIdentifier(zone, zone.index()),
|
||||
size_(zone.size()),
|
||||
start_(zone.start())
|
||||
{}
|
||||
|
||||
|
||||
Foam::surfZone::surfZone(const surfZone& zone, const label index)
|
||||
:
|
||||
surfZoneIdentifier(zone, index),
|
||||
|
||||
@ -105,9 +105,6 @@ public:
|
||||
const label index
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
surfZone(const surfZone&);
|
||||
|
||||
//- Construct from another zone, resetting the index
|
||||
surfZone(const surfZone&, const label index);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -133,7 +133,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const constAnIsoSolidTransport&);
|
||||
inline void operator+=(const constAnIsoSolidTransport&);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -97,16 +97,6 @@ alphah(const scalar p, const scalar T) const
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::constAnIsoSolidTransport<Thermo>::operator=
|
||||
(
|
||||
const constAnIsoSolidTransport<Thermo>& ct
|
||||
)
|
||||
{
|
||||
kappa_ = ct.kappa_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::constAnIsoSolidTransport<Thermo>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -134,7 +134,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const constIsoSolidTransport&);
|
||||
inline void operator+=(const constIsoSolidTransport&);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -97,17 +97,6 @@ alphah(const scalar p, const scalar T) const
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class thermo>
|
||||
inline void Foam::constIsoSolidTransport<thermo>::operator=
|
||||
(
|
||||
const constIsoSolidTransport<thermo>& ct
|
||||
)
|
||||
{
|
||||
thermo::operator=(ct);
|
||||
kappa_ = ct.kappa_;
|
||||
}
|
||||
|
||||
|
||||
template<class thermo>
|
||||
inline void Foam::constIsoSolidTransport<thermo>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -142,7 +142,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const exponentialSolidTransport&);
|
||||
inline void operator+=(const exponentialSolidTransport&);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -109,19 +109,6 @@ alphah(const scalar p, const scalar T) const
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::exponentialSolidTransport<Thermo>::operator=
|
||||
(
|
||||
const exponentialSolidTransport<Thermo>& ct
|
||||
)
|
||||
{
|
||||
kappa0_ = ct.kappa0_;
|
||||
n0_ = ct.n0_;
|
||||
Tref_ = ct.Tref_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::exponentialSolidTransport<Thermo>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -177,7 +177,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const polynomialSolidTransport&);
|
||||
inline void operator+=(const polynomialSolidTransport&);
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -124,18 +124,6 @@ inline Foam::scalar Foam::polynomialSolidTransport<Thermo, PolySize>::alphah
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo, int PolySize>
|
||||
inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator=
|
||||
(
|
||||
const polynomialSolidTransport<Thermo, PolySize>& pt
|
||||
)
|
||||
{
|
||||
Thermo::operator=(pt);
|
||||
|
||||
kappaCoeffs_ = pt.kappaCoeffs_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo, int PolySize>
|
||||
inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -197,7 +197,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const icoPolynomial&);
|
||||
inline void operator+=(const icoPolynomial&);
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -178,18 +178,6 @@ inline Foam::scalar Foam::icoPolynomial<Specie, PolySize>::CpMCv
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Specie, int PolySize>
|
||||
inline void Foam::icoPolynomial<Specie, PolySize>::operator=
|
||||
(
|
||||
const icoPolynomial<Specie, PolySize>& ip
|
||||
)
|
||||
{
|
||||
Specie::operator=(ip);
|
||||
|
||||
rhoCoeffs_ = ip.rhoCoeffs_;
|
||||
}
|
||||
|
||||
|
||||
template<class Specie, int PolySize>
|
||||
inline void Foam::icoPolynomial<Specie, PolySize>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -175,7 +175,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const incompressiblePerfectGas&);
|
||||
inline void operator+=(const incompressiblePerfectGas&);
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -179,17 +179,6 @@ inline Foam::scalar Foam::incompressiblePerfectGas<Specie>::CpMCv
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Specie>
|
||||
inline void Foam::incompressiblePerfectGas<Specie>::operator=
|
||||
(
|
||||
const incompressiblePerfectGas<Specie>& ipg
|
||||
)
|
||||
{
|
||||
Specie::operator=(ipg);
|
||||
pRef_ = ipg.pRef_;
|
||||
}
|
||||
|
||||
|
||||
template<class Specie>
|
||||
inline void Foam::incompressiblePerfectGas<Specie>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -61,20 +61,6 @@ class IrreversibleReaction
|
||||
ReactionRate k_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=
|
||||
(
|
||||
const IrreversibleReaction
|
||||
<
|
||||
ReactionType,
|
||||
ReactionThermo,
|
||||
ReactionRate
|
||||
>&
|
||||
);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -230,7 +216,21 @@ public:
|
||||
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream&) const;
|
||||
virtual void write(Ostream&) const; // Private Member Functions
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=
|
||||
(
|
||||
const IrreversibleReaction
|
||||
<
|
||||
ReactionType,
|
||||
ReactionThermo,
|
||||
ReactionRate
|
||||
>&
|
||||
) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -63,16 +63,6 @@ class NonEquilibriumReversibleReaction
|
||||
ReactionRate rk_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=
|
||||
(
|
||||
const NonEquilibriumReversibleReaction
|
||||
<ReactionType, ReactionThermo, ReactionRate>&
|
||||
);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -214,6 +204,20 @@ public:
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream&) const;
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=
|
||||
(
|
||||
const NonEquilibriumReversibleReaction
|
||||
<
|
||||
ReactionType,
|
||||
ReactionThermo,
|
||||
ReactionRate
|
||||
>&
|
||||
) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -62,20 +62,6 @@ class ReversibleReaction
|
||||
ReactionRate k_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=
|
||||
(
|
||||
const ReversibleReaction
|
||||
<
|
||||
ReactionType,
|
||||
ReactionThermo,
|
||||
ReactionRate
|
||||
>&
|
||||
);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -227,6 +213,20 @@ public:
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream&) const;
|
||||
|
||||
|
||||
// Member operators
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=
|
||||
(
|
||||
const ReversibleReaction
|
||||
<
|
||||
ReactionType,
|
||||
ReactionThermo,
|
||||
ReactionRate
|
||||
>&
|
||||
) = delete;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -102,6 +102,9 @@ public:
|
||||
//- Construct from dictionary
|
||||
specie(const dictionary& dict);
|
||||
|
||||
//- Copy constructor
|
||||
specie(const specie&) = default;
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -217,7 +217,6 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const hPolynomialThermo&);
|
||||
inline void operator+=(const hPolynomialThermo&);
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -158,22 +158,6 @@ inline Foam::scalar Foam::hPolynomialThermo<EquationOfState, PolySize>::dCpdT
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class EquationOfState, int PolySize>
|
||||
inline void Foam::hPolynomialThermo<EquationOfState, PolySize>::operator=
|
||||
(
|
||||
const hPolynomialThermo<EquationOfState, PolySize>& pt
|
||||
)
|
||||
{
|
||||
EquationOfState::operator=(pt);
|
||||
|
||||
Hf_ = pt.Hf_;
|
||||
Sf_ = pt.Sf_;
|
||||
CpCoeffs_ = pt.CpCoeffs_;
|
||||
hCoeffs_ = pt.hCoeffs_;
|
||||
sCoeffs_ = pt.sCoeffs_;
|
||||
}
|
||||
|
||||
|
||||
template<class EquationOfState, int PolySize>
|
||||
inline void Foam::hPolynomialThermo<EquationOfState, PolySize>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -159,10 +159,7 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const WLFTransport&);
|
||||
|
||||
inline void operator+=(const WLFTransport&);
|
||||
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -105,22 +105,6 @@ inline Foam::scalar Foam::WLFTransport<Thermo>::alphah
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::WLFTransport<Thermo>::operator=
|
||||
(
|
||||
const WLFTransport<Thermo>& wlft
|
||||
)
|
||||
{
|
||||
Thermo::operator=(wlft);
|
||||
|
||||
mu0_ = wlft.mu0_;
|
||||
Tr_ = wlft.Tr_;
|
||||
C1_ = wlft.C1_;
|
||||
C2_ = wlft.C2_;
|
||||
rPr_ = wlft.rPr_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::WLFTransport<Thermo>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -141,10 +141,7 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const constTransport&);
|
||||
|
||||
inline void operator+=(const constTransport&);
|
||||
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -114,19 +114,6 @@ inline Foam::scalar Foam::constTransport<Thermo>::alphah
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::constTransport<Thermo>::operator=
|
||||
(
|
||||
const constTransport<Thermo>& ct
|
||||
)
|
||||
{
|
||||
Thermo::operator=(ct);
|
||||
|
||||
mu_ = ct.mu_;
|
||||
rPr_ = ct.rPr_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::constTransport<Thermo>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -195,10 +195,7 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const logPolynomialTransport&);
|
||||
|
||||
inline void operator+=(const logPolynomialTransport&);
|
||||
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2016-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -112,19 +112,6 @@ inline Foam::scalar Foam::logPolynomialTransport<Thermo, PolySize>::alphah
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo, int PolySize>
|
||||
inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator=
|
||||
(
|
||||
const logPolynomialTransport<Thermo, PolySize>& pt
|
||||
)
|
||||
{
|
||||
Thermo::operator=(pt);
|
||||
|
||||
muCoeffs_ = pt.muCoeffs_;
|
||||
kappaCoeffs_ = pt.kappaCoeffs_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo, int PolySize>
|
||||
inline void Foam::logPolynomialTransport<Thermo, PolySize>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -177,10 +177,7 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const polynomialTransport&);
|
||||
|
||||
inline void operator+=(const polynomialTransport&);
|
||||
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -112,19 +112,6 @@ inline Foam::scalar Foam::polynomialTransport<Thermo, PolySize>::alphah
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo, int PolySize>
|
||||
inline void Foam::polynomialTransport<Thermo, PolySize>::operator=
|
||||
(
|
||||
const polynomialTransport<Thermo, PolySize>& pt
|
||||
)
|
||||
{
|
||||
Thermo::operator=(pt);
|
||||
|
||||
muCoeffs_ = pt.muCoeffs_;
|
||||
kappaCoeffs_ = pt.kappaCoeffs_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo, int PolySize>
|
||||
inline void Foam::polynomialTransport<Thermo, PolySize>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -166,10 +166,7 @@ public:
|
||||
|
||||
// Member operators
|
||||
|
||||
inline void operator=(const sutherlandTransport&);
|
||||
|
||||
inline void operator+=(const sutherlandTransport&);
|
||||
|
||||
inline void operator*=(const scalar);
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -150,19 +150,6 @@ inline Foam::scalar Foam::sutherlandTransport<Thermo>::alphah
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::sutherlandTransport<Thermo>::operator=
|
||||
(
|
||||
const sutherlandTransport<Thermo>& st
|
||||
)
|
||||
{
|
||||
Thermo::operator=(st);
|
||||
|
||||
As_ = st.As_;
|
||||
Ts_ = st.Ts_;
|
||||
}
|
||||
|
||||
|
||||
template<class Thermo>
|
||||
inline void Foam::sutherlandTransport<Thermo>::operator+=
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -143,7 +143,8 @@ void Foam::triSurface::writeSTLASCII(const bool writeSorted, Ostream& os) const
|
||||
void Foam::triSurface::writeSTLBINARY(std::ostream& os) const
|
||||
{
|
||||
// Write the STL header
|
||||
string header("Foam binary STL", STLheaderSize);
|
||||
string header("Foam binary STL");
|
||||
header.resize(STLheaderSize);
|
||||
os.write(header.c_str(), STLheaderSize);
|
||||
|
||||
label nTris = size();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -83,14 +83,6 @@ Foam::surfacePatch::surfacePatch
|
||||
{}
|
||||
|
||||
|
||||
Foam::surfacePatch::surfacePatch(const Foam::surfacePatch& sp)
|
||||
:
|
||||
geometricSurfacePatch(sp),
|
||||
size_(sp.size()),
|
||||
start_(sp.start())
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::surfacePatch::write(Ostream& os) const
|
||||
|
||||
@ -68,6 +68,7 @@ class surfacePatch
|
||||
//- Start label of this patch in the triSurface face list
|
||||
label start_;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -100,9 +101,6 @@ public:
|
||||
const label index
|
||||
);
|
||||
|
||||
//- Copy constructor
|
||||
surfacePatch(const surfacePatch&);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user