mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tidy-up + virtual destructors on sub-models
This commit is contained in:
@ -89,18 +89,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~DispersionModel();
|
||||
//- Destructor
|
||||
virtual ~DispersionModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<DispersionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<DispersionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
@ -50,7 +50,6 @@ class DispersionRASModel
|
||||
:
|
||||
public DispersionModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- Reference to the compressible turbulence model
|
||||
@ -73,9 +72,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~DispersionRASModel();
|
||||
//- Destructor
|
||||
virtual ~DispersionRASModel();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -51,7 +51,6 @@ class GradientDispersionRAS
|
||||
:
|
||||
public DispersionRASModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -68,9 +67,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~GradientDispersionRAS();
|
||||
//- Destructor
|
||||
virtual ~GradientDispersionRAS();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -49,7 +49,6 @@ class NoDispersion
|
||||
:
|
||||
public DispersionModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -66,9 +65,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~NoDispersion();
|
||||
//- Destructor
|
||||
virtual ~NoDispersion();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -51,7 +51,6 @@ class StochasticDispersionRAS
|
||||
:
|
||||
public DispersionRASModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -68,9 +67,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~StochasticDispersionRAS();
|
||||
//- Destructor
|
||||
virtual ~StochasticDispersionRAS();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -25,7 +25,6 @@ License
|
||||
Class
|
||||
Foam::DragModel
|
||||
|
||||
|
||||
Description
|
||||
Templated drag model class
|
||||
|
||||
@ -54,7 +53,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class DragModel
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- The cloud dictionary
|
||||
@ -93,18 +91,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~DragModel();
|
||||
//- Destructor
|
||||
virtual ~DragModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<DragModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& cloud
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<DragModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& cloud
|
||||
);
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
@ -48,7 +48,6 @@ class NoDrag
|
||||
:
|
||||
public DragModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -65,9 +64,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~NoDrag();
|
||||
//- Destructor
|
||||
virtual ~NoDrag();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -48,7 +48,6 @@ class SphereDrag
|
||||
:
|
||||
public DragModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -65,9 +64,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~SphereDrag();
|
||||
//- Destructor
|
||||
virtual ~SphereDrag();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -65,7 +65,6 @@ class ConeInjection
|
||||
:
|
||||
public InjectionModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- Coefficients dictionary
|
||||
@ -143,9 +142,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~ConeInjection();
|
||||
//- Destructor
|
||||
virtual ~ConeInjection();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -25,7 +25,6 @@ License
|
||||
Class
|
||||
Foam::InjectionModel
|
||||
|
||||
|
||||
Description
|
||||
Templated injection model class
|
||||
|
||||
@ -54,7 +53,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class InjectionModel
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
// Enumerations
|
||||
|
||||
@ -64,7 +64,6 @@ class ManualInjection
|
||||
:
|
||||
public InjectionModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- Coefficients dictionary
|
||||
@ -124,9 +123,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~ManualInjection();
|
||||
//- Destructor
|
||||
virtual ~ManualInjection();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -52,7 +52,6 @@ class NoInjection
|
||||
:
|
||||
public InjectionModel<CloudType>
|
||||
{
|
||||
|
||||
protected:
|
||||
|
||||
// Protected member functions
|
||||
@ -88,9 +87,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~NoInjection();
|
||||
//- Destructor
|
||||
virtual ~NoInjection();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -71,9 +71,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~Rebound();
|
||||
//- Destructor
|
||||
virtual ~Rebound();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -48,7 +48,6 @@ class StandardWallInteraction
|
||||
:
|
||||
public WallInteractionModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- Elasticity
|
||||
@ -74,9 +73,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~StandardWallInteraction();
|
||||
//- Destructor
|
||||
virtual ~StandardWallInteraction();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -54,7 +54,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class WallInteractionModel
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- The cloud dictionary
|
||||
@ -97,18 +96,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~WallInteractionModel();
|
||||
//- Destructor
|
||||
virtual ~WallInteractionModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<WallInteractionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<WallInteractionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
@ -61,7 +61,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class CompositionModel
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- The cloud dictionary
|
||||
@ -116,18 +115,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~CompositionModel();
|
||||
//- Destructor
|
||||
virtual ~CompositionModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<CompositionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<CompositionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -54,7 +54,6 @@ class SingleMixtureFraction
|
||||
:
|
||||
public CompositionModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- Parcel properties
|
||||
@ -134,9 +133,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~SingleMixtureFraction();
|
||||
//- Destructor
|
||||
virtual ~SingleMixtureFraction();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -49,7 +49,6 @@ class ConstantRateDevolatilisation
|
||||
:
|
||||
public DevolatilisationModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
// Model constants
|
||||
@ -79,9 +78,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~ConstantRateDevolatilisation();
|
||||
//- Destructor
|
||||
virtual ~ConstantRateDevolatilisation();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -53,7 +53,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class DevolatilisationModel
|
||||
{
|
||||
|
||||
protected:
|
||||
|
||||
// Protected data
|
||||
@ -98,18 +97,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~DevolatilisationModel();
|
||||
//- Destructor
|
||||
virtual ~DevolatilisationModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<DevolatilisationModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<DevolatilisationModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
@ -65,9 +65,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~NoDevolatilisation();
|
||||
//- Destructor
|
||||
virtual ~NoDevolatilisation();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -48,7 +48,6 @@ class SingleKineticRateDevolatilisation
|
||||
:
|
||||
public DevolatilisationModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
// Model constants
|
||||
@ -81,9 +80,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~SingleKineticRateDevolatilisation();
|
||||
//- Destructor
|
||||
virtual ~SingleKineticRateDevolatilisation();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -48,7 +48,6 @@ class NoPhaseChange
|
||||
:
|
||||
public PhaseChangeModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -66,7 +65,7 @@ public:
|
||||
|
||||
|
||||
//- Destructor
|
||||
~NoPhaseChange();
|
||||
virtual ~NoPhaseChange();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -53,7 +53,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class PhaseChangeModel
|
||||
{
|
||||
|
||||
protected:
|
||||
|
||||
// Protected data
|
||||
|
||||
@ -40,7 +40,7 @@ Description
|
||||
namespace Foam
|
||||
{
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class NoSurfaceReaction Declaration
|
||||
Class NoSurfaceReaction Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class CloudType>
|
||||
@ -48,7 +48,6 @@ class NoSurfaceReaction
|
||||
:
|
||||
public SurfaceReactionModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -65,9 +64,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~NoSurfaceReaction();
|
||||
//- Destructor
|
||||
virtual ~NoSurfaceReaction();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -25,7 +25,6 @@ License
|
||||
Class
|
||||
Foam::SurfaceReactionModel
|
||||
|
||||
|
||||
Description
|
||||
Templated surface reaction model class
|
||||
|
||||
@ -101,18 +100,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~SurfaceReactionModel();
|
||||
//- Destructor
|
||||
virtual ~SurfaceReactionModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<SurfaceReactionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& cloud
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<SurfaceReactionModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& cloud
|
||||
);
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
@ -25,7 +25,6 @@ License
|
||||
Class
|
||||
Foam::HeatTransferModel
|
||||
|
||||
|
||||
Description
|
||||
Templated heat transfer model class
|
||||
|
||||
@ -54,7 +53,6 @@ namespace Foam
|
||||
template<class CloudType>
|
||||
class HeatTransferModel
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- The cloud dictionary
|
||||
@ -97,18 +95,16 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~HeatTransferModel();
|
||||
//- Destructor
|
||||
virtual ~HeatTransferModel();
|
||||
|
||||
|
||||
// Selector
|
||||
|
||||
static autoPtr<HeatTransferModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
//- Selector
|
||||
static autoPtr<HeatTransferModel<CloudType> > New
|
||||
(
|
||||
const dictionary& dict,
|
||||
CloudType& owner
|
||||
);
|
||||
|
||||
|
||||
// Access
|
||||
|
||||
@ -48,7 +48,6 @@ class NoHeatTransfer
|
||||
:
|
||||
public HeatTransferModel<CloudType>
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
@ -65,9 +64,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~NoHeatTransfer();
|
||||
//- Destructor
|
||||
virtual ~NoHeatTransfer();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -48,7 +48,6 @@ class RanzMarshall
|
||||
:
|
||||
public HeatTransferModel<CloudType>
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
// Prandtl number
|
||||
@ -71,9 +70,8 @@ public:
|
||||
);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
~RanzMarshall();
|
||||
//- Destructor
|
||||
virtual ~RanzMarshall();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
Reference in New Issue
Block a user