mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use FieldBase for template invariant parts
- use refCount instead of the tmp<...>::refCount alias
This commit is contained in:
@ -627,36 +627,36 @@ fields/cloud/cloud.C
|
|||||||
|
|
||||||
Fields = fields/Fields
|
Fields = fields/Fields
|
||||||
|
|
||||||
|
$(Fields)/Field/FieldBase.C
|
||||||
$(Fields)/labelField/labelField.C
|
$(Fields)/labelField/labelField.C
|
||||||
$(Fields)/scalarField/scalarField.C
|
|
||||||
$(Fields)/vectorField/vectorField.C
|
|
||||||
$(Fields)/vector2DField/vector2DField.C
|
|
||||||
$(Fields)/sphericalTensorField/sphericalTensorField.C
|
|
||||||
$(Fields)/diagTensorField/diagTensorField.C
|
|
||||||
$(Fields)/symmTensorField/symmTensorField.C
|
|
||||||
$(Fields)/tensorField/tensorField.C
|
|
||||||
$(Fields)/quaternionField/quaternionField.C
|
|
||||||
$(Fields)/triadField/triadField.C
|
|
||||||
$(Fields)/complexFields/complexFields.C
|
|
||||||
|
|
||||||
$(Fields)/labelField/labelIOField.C
|
$(Fields)/labelField/labelIOField.C
|
||||||
$(Fields)/labelField/labelFieldIOField.C
|
$(Fields)/labelField/labelFieldIOField.C
|
||||||
|
$(Fields)/scalarField/scalarField.C
|
||||||
$(Fields)/scalarField/scalarIOField.C
|
$(Fields)/scalarField/scalarIOField.C
|
||||||
$(Fields)/scalarField/scalarFieldIOField.C
|
$(Fields)/scalarField/scalarFieldIOField.C
|
||||||
|
$(Fields)/vectorField/vectorField.C
|
||||||
$(Fields)/vectorField/vectorIOField.C
|
$(Fields)/vectorField/vectorIOField.C
|
||||||
$(Fields)/vectorField/vectorFieldIOField.C
|
$(Fields)/vectorField/vectorFieldIOField.C
|
||||||
|
$(Fields)/vector2DField/vector2DField.C
|
||||||
$(Fields)/vector2DField/vector2DIOField.C
|
$(Fields)/vector2DField/vector2DIOField.C
|
||||||
$(Fields)/vector2DField/vector2DFieldIOField.C
|
$(Fields)/vector2DField/vector2DFieldIOField.C
|
||||||
|
$(Fields)/sphericalTensorField/sphericalTensorField.C
|
||||||
$(Fields)/sphericalTensorField/sphericalTensorIOField.C
|
$(Fields)/sphericalTensorField/sphericalTensorIOField.C
|
||||||
$(Fields)/sphericalTensorField/sphericalTensorFieldIOField.C
|
$(Fields)/sphericalTensorField/sphericalTensorFieldIOField.C
|
||||||
|
$(Fields)/diagTensorField/diagTensorField.C
|
||||||
$(Fields)/diagTensorField/diagTensorIOField.C
|
$(Fields)/diagTensorField/diagTensorIOField.C
|
||||||
$(Fields)/diagTensorField/diagTensorFieldIOField.C
|
$(Fields)/diagTensorField/diagTensorFieldIOField.C
|
||||||
|
$(Fields)/symmTensorField/symmTensorField.C
|
||||||
$(Fields)/symmTensorField/symmTensorIOField.C
|
$(Fields)/symmTensorField/symmTensorIOField.C
|
||||||
$(Fields)/symmTensorField/symmTensorFieldIOField.C
|
$(Fields)/symmTensorField/symmTensorFieldIOField.C
|
||||||
|
$(Fields)/tensorField/tensorField.C
|
||||||
$(Fields)/tensorField/tensorIOField.C
|
$(Fields)/tensorField/tensorIOField.C
|
||||||
$(Fields)/tensorField/tensorFieldIOField.C
|
$(Fields)/tensorField/tensorFieldIOField.C
|
||||||
|
$(Fields)/quaternionField/quaternionField.C
|
||||||
$(Fields)/quaternionField/quaternionIOField.C
|
$(Fields)/quaternionField/quaternionIOField.C
|
||||||
|
$(Fields)/triadField/triadField.C
|
||||||
$(Fields)/triadField/triadIOField.C
|
$(Fields)/triadField/triadIOField.C
|
||||||
|
$(Fields)/complexFields/complexFields.C
|
||||||
$(Fields)/transformField/transformField.C
|
$(Fields)/transformField/transformField.C
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ inline Foam::SubDimensionedField<Type, GeoMesh>::SubDimensionedField
|
|||||||
const SubDimensionedField<Type, GeoMesh>& sfield
|
const SubDimensionedField<Type, GeoMesh>& sfield
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
tmp<SubDimensionedField<Type, GeoMesh>>::refCount(),
|
refCount(),
|
||||||
SubField<Type>(sfield)
|
SubField<Type>(sfield)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -21,9 +21,6 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Description
|
|
||||||
Generic fieldField type.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "FieldField.H"
|
#include "FieldField.H"
|
||||||
@ -137,7 +134,7 @@ FieldField<Field, Type>::FieldField
|
|||||||
template<template<class> class Field, class Type>
|
template<template<class> class Field, class Type>
|
||||||
FieldField<Field, Type>::FieldField(const FieldField<Field, Type>& f)
|
FieldField<Field, Type>::FieldField(const FieldField<Field, Type>& f)
|
||||||
:
|
:
|
||||||
tmp<FieldField<Field, Type>>::refCount(),
|
refCount(),
|
||||||
PtrList<Field<Type>>(f)
|
PtrList<Field<Type>>(f)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ Ostream& operator<<
|
|||||||
template<template<class> class Field, class Type>
|
template<template<class> class Field, class Type>
|
||||||
class FieldField
|
class FieldField
|
||||||
:
|
:
|
||||||
public tmp<FieldField<Field, Type>>::refCount,
|
public refCount,
|
||||||
public PtrList<Field<Type>>
|
public PtrList<Field<Type>>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -29,12 +29,6 @@ License
|
|||||||
#include "contiguous.H"
|
#include "contiguous.H"
|
||||||
#include "mapDistributeBase.H"
|
#include "mapDistributeBase.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Static Members * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
const char* const Foam::Field<Type>::typeName("Field");
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
|
|||||||
@ -47,6 +47,7 @@ SourceFiles
|
|||||||
#include "VectorSpace.H"
|
#include "VectorSpace.H"
|
||||||
#include "scalarList.H"
|
#include "scalarList.H"
|
||||||
#include "labelList.H"
|
#include "labelList.H"
|
||||||
|
#include "FieldBase.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -73,7 +74,7 @@ Ostream& operator<<(Ostream&, const tmp<Field<Type>>&);
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class Field
|
class Field
|
||||||
:
|
:
|
||||||
public tmp<Field<Type>>::refCount,
|
public FieldBase,
|
||||||
public List<Type>
|
public List<Type>
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -86,11 +87,6 @@ public:
|
|||||||
typedef SubField<Type> subField;
|
typedef SubField<Type> subField;
|
||||||
|
|
||||||
|
|
||||||
// Static data members
|
|
||||||
|
|
||||||
static const char* const typeName;
|
|
||||||
|
|
||||||
|
|
||||||
// Static Member Functions
|
// Static Member Functions
|
||||||
|
|
||||||
//- Return nullObject reference field
|
//- Return nullObject reference field
|
||||||
|
|||||||
33
src/OpenFOAM/fields/Fields/Field/FieldBase.C
Normal file
33
src/OpenFOAM/fields/Fields/Field/FieldBase.C
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include "FieldBase.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * Static Members * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
const char* const Foam::FieldBase::typeName("Field");
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
77
src/OpenFOAM/fields/Fields/Field/FieldBase.H
Normal file
77
src/OpenFOAM/fields/Fields/Field/FieldBase.H
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Class
|
||||||
|
Foam::FieldBase
|
||||||
|
|
||||||
|
Description
|
||||||
|
Template invariant parts for Field
|
||||||
|
|
||||||
|
SourceFiles
|
||||||
|
FieldBase.C
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifndef FieldBase_H
|
||||||
|
#define FieldBase_H
|
||||||
|
|
||||||
|
#include "refCount.H"
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
|
||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
Class FieldBase Declaration
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
class FieldBase
|
||||||
|
:
|
||||||
|
public refCount
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
// Static data members
|
||||||
|
|
||||||
|
//- Typename for Field
|
||||||
|
static const char* const typeName;
|
||||||
|
|
||||||
|
|
||||||
|
// Constructors
|
||||||
|
|
||||||
|
//- Construct null, with refCount zero
|
||||||
|
constexpr FieldBase() noexcept
|
||||||
|
:
|
||||||
|
refCount()
|
||||||
|
{}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -59,7 +59,7 @@ template<class Type> class SubField;
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class SubField
|
class SubField
|
||||||
:
|
:
|
||||||
public tmp<SubField<Type>>::refCount,
|
public refCount,
|
||||||
public SubList<Type>
|
public SubList<Type>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -74,7 +74,7 @@ inline Foam::SubField<Type>::SubField
|
|||||||
const SubField<Type>& sfield
|
const SubField<Type>& sfield
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
tmp<SubField<Type>>::refCount(),
|
refCount(),
|
||||||
SubList<Type>(sfield)
|
SubList<Type>(sfield)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -38,18 +38,11 @@ Foam::Function1<Type>::Function1(const word& entryName)
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::Function1<Type>::Function1(const Function1<Type>& de)
|
Foam::Function1<Type>::Function1(const Function1<Type>& de)
|
||||||
:
|
:
|
||||||
tmp<Function1<Type>>::refCount(),
|
refCount(),
|
||||||
name_(de.name_)
|
name_(de.name_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
Foam::Function1<Type>::~Function1()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -111,8 +104,8 @@ Foam::FieldFunction1<Function1Type>::value
|
|||||||
const scalarField& x
|
const scalarField& x
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
tmp<Field<Type>> tfld(new Field<Type>(x.size()));
|
auto tfld = tmp<Field<Type>>::New(x.size());
|
||||||
Field<Type>& fld = tfld.ref();
|
auto& fld = tfld.ref();
|
||||||
|
|
||||||
forAll(x, i)
|
forAll(x, i)
|
||||||
{
|
{
|
||||||
@ -152,8 +145,8 @@ Foam::FieldFunction1<Function1Type>::integrate
|
|||||||
const scalarField& x2
|
const scalarField& x2
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
tmp<Field<Type>> tfld(new Field<Type>(x1.size()));
|
auto tfld = tmp<Field<Type>>::New(x1.size());
|
||||||
Field<Type>& fld = tfld.ref();
|
auto& fld = tfld.ref();
|
||||||
|
|
||||||
forAll(x1, i)
|
forAll(x1, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -61,11 +61,11 @@ template<class Type> Ostream& operator<<(Ostream&, const Function1<Type>&);
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class Function1
|
class Function1
|
||||||
:
|
:
|
||||||
public tmp<Function1<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const Function1<Type>&) = delete;
|
void operator=(const Function1<Type>&) = delete;
|
||||||
|
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~Function1();
|
virtual ~Function1() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
@ -194,8 +194,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~FieldFunction1()
|
virtual ~FieldFunction1() = default;
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -71,7 +71,7 @@ Ostream& operator<<(Ostream&, const faMatrix<Type>&);
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class faMatrix
|
class faMatrix
|
||||||
:
|
:
|
||||||
public tmp<faMatrix<Type>>::refCount,
|
public refCount,
|
||||||
public lduMatrix
|
public lduMatrix
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|||||||
@ -46,7 +46,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
convectionScheme<Type>::convectionScheme(const convectionScheme& cs)
|
convectionScheme<Type>::convectionScheme(const convectionScheme& cs)
|
||||||
:
|
:
|
||||||
tmp<convectionScheme<Type>>::refCount(),
|
refCount(),
|
||||||
mesh_(cs.mesh_)
|
mesh_(cs.mesh_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -67,7 +67,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class convectionScheme
|
class convectionScheme
|
||||||
:
|
:
|
||||||
public tmp<convectionScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
|||||||
@ -21,9 +21,6 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Description
|
|
||||||
Abstract base class for finite volume calculus d2dt2 schemes.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "fv.H"
|
#include "fv.H"
|
||||||
@ -84,13 +81,6 @@ tmp<d2dt2Scheme<Type>> d2dt2Scheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
d2dt2Scheme<Type>::~d2dt2Scheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace fv
|
} // End namespace fv
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Class
|
|||||||
Foam::fv::d2dt2Scheme
|
Foam::fv::d2dt2Scheme
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Abstract base class for d2dt2 schemes.
|
Abstract base class for finite volume d2dt2 schemes.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
d2dt2Scheme.C
|
d2dt2Scheme.C
|
||||||
@ -64,7 +64,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class d2dt2Scheme
|
class d2dt2Scheme
|
||||||
:
|
:
|
||||||
public tmp<d2dt2Scheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -76,11 +76,11 @@ protected:
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
d2dt2Scheme(const d2dt2Scheme&);
|
d2dt2Scheme(const d2dt2Scheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const d2dt2Scheme&);
|
void operator=(const d2dt2Scheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -127,7 +127,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~d2dt2Scheme();
|
virtual ~d2dt2Scheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -84,13 +84,6 @@ tmp<ddtScheme<Type>> ddtScheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
ddtScheme<Type>::~ddtScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -120,14 +113,11 @@ tmp<fvMatrix<Type>> ddtScheme<Type>::fvmDdt
|
|||||||
{
|
{
|
||||||
NotImplemented;
|
NotImplemented;
|
||||||
|
|
||||||
return tmp<fvMatrix<Type>>
|
return tmp<fvMatrix<Type>>::New
|
||||||
(
|
|
||||||
new fvMatrix<Type>
|
|
||||||
(
|
(
|
||||||
vf,
|
vf,
|
||||||
alpha.dimensions()*rho.dimensions()
|
alpha.dimensions()*rho.dimensions()
|
||||||
*vf.dimensions()*dimVol/dimTime
|
*vf.dimensions()*dimVol/dimTime
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ Group
|
|||||||
Description
|
Description
|
||||||
Abstract base class for ddt schemes.
|
Abstract base class for ddt schemes.
|
||||||
|
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
ddtScheme.C
|
ddtScheme.C
|
||||||
|
|
||||||
@ -68,7 +67,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class ddtScheme
|
class ddtScheme
|
||||||
:
|
:
|
||||||
public tmp<ddtScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -83,11 +82,11 @@ protected:
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
ddtScheme(const ddtScheme&);
|
ddtScheme(const ddtScheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const ddtScheme&);
|
void operator=(const ddtScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -136,7 +135,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~ddtScheme();
|
virtual ~ddtScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -85,16 +85,6 @@ tmp<divScheme<Type>> divScheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
divScheme<Type>::~divScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace fv
|
} // End namespace fv
|
||||||
|
|||||||
@ -67,7 +67,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class divScheme
|
class divScheme
|
||||||
:
|
:
|
||||||
public tmp<divScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -80,11 +80,11 @@ protected:
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
divScheme(const divScheme&);
|
divScheme(const divScheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const divScheme&);
|
void operator=(const divScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -133,7 +133,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~divScheme();
|
virtual ~divScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -72,12 +72,6 @@ Foam::tmp<Foam::fv::gradScheme<Type>> Foam::fv::gradScheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
Foam::fv::gradScheme<Type>::~gradScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
|
|||||||
@ -60,7 +60,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class gradScheme
|
class gradScheme
|
||||||
:
|
:
|
||||||
public tmp<gradScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
@ -69,11 +69,11 @@ class gradScheme
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
gradScheme(const gradScheme&);
|
gradScheme(const gradScheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const gradScheme&);
|
void operator=(const gradScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -114,7 +114,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~gradScheme();
|
virtual ~gradScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -83,13 +83,6 @@ tmp<laplacianScheme<Type, GType>> laplacianScheme<Type, GType>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type, class GType>
|
|
||||||
laplacianScheme<Type, GType>::~laplacianScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type, class GType>
|
template<class Type, class GType>
|
||||||
|
|||||||
@ -68,7 +68,7 @@ namespace fv
|
|||||||
template<class Type, class GType>
|
template<class Type, class GType>
|
||||||
class laplacianScheme
|
class laplacianScheme
|
||||||
:
|
:
|
||||||
public tmp<laplacianScheme<Type, GType>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@ -84,11 +84,11 @@ private:
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
laplacianScheme(const laplacianScheme&);
|
laplacianScheme(const laplacianScheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const laplacianScheme&);
|
void operator=(const laplacianScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -162,7 +162,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~laplacianScheme();
|
virtual ~laplacianScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -85,13 +85,6 @@ tmp<snGradScheme<Type>> snGradScheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
snGradScheme<Type>::~snGradScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
|
|||||||
@ -63,7 +63,7 @@ namespace fv
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class snGradScheme
|
class snGradScheme
|
||||||
:
|
:
|
||||||
public tmp<snGradScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
@ -73,11 +73,11 @@ class snGradScheme
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
snGradScheme(const snGradScheme&);
|
snGradScheme(const snGradScheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const snGradScheme&);
|
void operator=(const snGradScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -118,7 +118,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~snGradScheme();
|
virtual ~snGradScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -321,7 +321,7 @@ Foam::fvMatrix<Type>::fvMatrix
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
Foam::fvMatrix<Type>::fvMatrix(const fvMatrix<Type>& fvm)
|
Foam::fvMatrix<Type>::fvMatrix(const fvMatrix<Type>& fvm)
|
||||||
:
|
:
|
||||||
tmp<fvMatrix<Type>>::refCount(),
|
refCount(),
|
||||||
lduMatrix(fvm),
|
lduMatrix(fvm),
|
||||||
psi_(fvm.psi_),
|
psi_(fvm.psi_),
|
||||||
dimensions_(fvm.dimensions_),
|
dimensions_(fvm.dimensions_),
|
||||||
|
|||||||
@ -114,7 +114,7 @@ template<class T> class UIndirectList;
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class fvMatrix
|
class fvMatrix
|
||||||
:
|
:
|
||||||
public tmp<fvMatrix<Type>>::refCount,
|
public refCount,
|
||||||
public lduMatrix
|
public lduMatrix
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|||||||
@ -21,9 +21,6 @@ License
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Description
|
|
||||||
Abstract base class for surface interpolation schemes.
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "fv.H"
|
#include "fv.H"
|
||||||
@ -85,12 +82,4 @@ Foam::multivariateSurfaceInterpolationScheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
Foam::multivariateSurfaceInterpolationScheme<Type>::
|
|
||||||
~multivariateSurfaceInterpolationScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,7 +50,7 @@ namespace Foam
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class multivariateSurfaceInterpolationScheme
|
class multivariateSurfaceInterpolationScheme
|
||||||
:
|
:
|
||||||
public tmp<multivariateSurfaceInterpolationScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -85,14 +85,14 @@ private:
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
//- No copy construct
|
||||||
multivariateSurfaceInterpolationScheme
|
multivariateSurfaceInterpolationScheme
|
||||||
(
|
(
|
||||||
const multivariateSurfaceInterpolationScheme&
|
const multivariateSurfaceInterpolationScheme&
|
||||||
);
|
) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const multivariateSurfaceInterpolationScheme&);
|
void operator=(const multivariateSurfaceInterpolationScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -143,7 +143,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~multivariateSurfaceInterpolationScheme();
|
virtual ~multivariateSurfaceInterpolationScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
@ -123,13 +123,6 @@ Foam::surfaceInterpolationScheme<Type>::New
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
template<class Type>
|
|
||||||
Foam::surfaceInterpolationScheme<Type>::~surfaceInterpolationScheme()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
@ -147,8 +140,7 @@ Foam::surfaceInterpolationScheme<Type>::interpolate
|
|||||||
<< "Interpolating "
|
<< "Interpolating "
|
||||||
<< vf.type() << " "
|
<< vf.type() << " "
|
||||||
<< vf.name()
|
<< vf.name()
|
||||||
<< " from cells to faces "
|
<< " from cells to faces without explicit correction"
|
||||||
"without explicit correction"
|
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,7 @@ class fvMesh;
|
|||||||
template<class Type>
|
template<class Type>
|
||||||
class surfaceInterpolationScheme
|
class surfaceInterpolationScheme
|
||||||
:
|
:
|
||||||
public tmp<surfaceInterpolationScheme<Type>>::refCount
|
public refCount
|
||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
@ -65,11 +65,11 @@ class surfaceInterpolationScheme
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Disallow copy construct
|
//- No copy construct
|
||||||
surfaceInterpolationScheme(const surfaceInterpolationScheme&);
|
surfaceInterpolationScheme(const surfaceInterpolationScheme&) = delete;
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
//- No copy assignment
|
||||||
void operator=(const surfaceInterpolationScheme&);
|
void operator=(const surfaceInterpolationScheme&) = delete;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -134,7 +134,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
//- Destructor
|
//- Destructor
|
||||||
virtual ~surfaceInterpolationScheme();
|
virtual ~surfaceInterpolationScheme() = default;
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user