mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: PatchInteractionModel: make abstract - force correct() on every implementation
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -154,31 +154,6 @@ const Foam::word& Foam::PatchInteractionModel<CloudType>::UName() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class CloudType>
|
|
||||||
bool Foam::PatchInteractionModel<CloudType>::correct
|
|
||||||
(
|
|
||||||
typename CloudType::parcelType&,
|
|
||||||
const polyPatch&,
|
|
||||||
bool&,
|
|
||||||
const scalar,
|
|
||||||
const tetIndices&
|
|
||||||
)
|
|
||||||
{
|
|
||||||
notImplemented
|
|
||||||
(
|
|
||||||
"bool Foam::PatchInteractionModel<CloudType>::correct"
|
|
||||||
"("
|
|
||||||
"typename CloudType::parcelType&, "
|
|
||||||
"const polyPatch&, "
|
|
||||||
"bool&, "
|
|
||||||
"const scalar, "
|
|
||||||
"const tetIndices& "
|
|
||||||
") const"
|
|
||||||
);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class CloudType>
|
template<class CloudType>
|
||||||
void Foam::PatchInteractionModel<CloudType>::info(Ostream& os)
|
void Foam::PatchInteractionModel<CloudType>::info(Ostream& os)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -118,13 +118,7 @@ public:
|
|||||||
PatchInteractionModel(const PatchInteractionModel<CloudType>& pim);
|
PatchInteractionModel(const PatchInteractionModel<CloudType>& pim);
|
||||||
|
|
||||||
//- Construct and return a clone
|
//- Construct and return a clone
|
||||||
virtual autoPtr<PatchInteractionModel<CloudType> > clone() const
|
virtual autoPtr<PatchInteractionModel<CloudType> > clone() const = 0;
|
||||||
{
|
|
||||||
return autoPtr<PatchInteractionModel<CloudType> >
|
|
||||||
(
|
|
||||||
new PatchInteractionModel<CloudType>(*this)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
@ -162,7 +156,7 @@ public:
|
|||||||
bool& keepParticle,
|
bool& keepParticle,
|
||||||
const scalar trackFraction,
|
const scalar trackFraction,
|
||||||
const tetIndices& tetIs
|
const tetIndices& tetIs
|
||||||
);
|
) = 0;
|
||||||
|
|
||||||
|
|
||||||
// I-O
|
// I-O
|
||||||
|
|||||||
Reference in New Issue
Block a user