diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.H b/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.H index 2ddca73052..66d4351c6f 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.H +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/T/smoluchowskiJumpTFvPatchScalarField.H @@ -107,15 +107,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new smoluchowskiJumpTFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference smoluchowskiJumpTFvPatchScalarField ( diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H index 07fff1b949..8c9b5e58c0 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.H @@ -115,15 +115,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new maxwellSlipUFvPatchVectorField(*this) - ); - } - //- Construct as copy setting internal field reference maxwellSlipUFvPatchVectorField ( diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C b/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C index dfad8d4eaa..1aff58b001 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -70,18 +70,6 @@ Foam::mixedFixedValueSlipFvPatchField::mixedFixedValueSlipFvPatchField {} -template -Foam::mixedFixedValueSlipFvPatchField::mixedFixedValueSlipFvPatchField -( - const mixedFixedValueSlipFvPatchField& ptf -) -: - transformFvPatchField(ptf), - refValue_(ptf.refValue_), - valueFraction_(ptf.valueFraction_) -{} - - template Foam::mixedFixedValueSlipFvPatchField::mixedFixedValueSlipFvPatchField ( diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.H b/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.H index 3a032c8ef3..7d981a4270 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.H +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/mixedFixedValueSlip/mixedFixedValueSlipFvPatchField.H @@ -94,20 +94,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mixedFixedValueSlipFvPatchField ( const mixedFixedValueSlipFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new mixedFixedValueSlipFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mixedFixedValueSlipFvPatchField diff --git a/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.H b/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.H index 52345fdd8f..98072efda0 100644 --- a/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.H +++ b/applications/solvers/compressible/rhoCentralFoam/BCs/rho/fixedRhoFvPatchScalarField.H @@ -121,15 +121,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedRhoFvPatchScalarField(*this) - ); - } - //- Copy constructor setting internal field reference fixedRhoFvPatchScalarField ( diff --git a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H index 8cedd54626..b62f002470 100644 --- a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H +++ b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletPressure/adjointOutletPressureFvPatchScalarField.H @@ -83,15 +83,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new adjointOutletPressureFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference adjointOutletPressureFvPatchScalarField ( diff --git a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H index 1309165ebe..683e5aa455 100644 --- a/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H +++ b/applications/solvers/incompressible/adjointShapeOptimizationFoam/adjointOutletVelocity/adjointOutletVelocityFvPatchVectorField.H @@ -83,15 +83,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new adjointOutletVelocityFvPatchVectorField(*this) - ); - } - //- Construct as copy setting internal field reference adjointOutletVelocityFvPatchVectorField ( diff --git a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.H b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.H index 59d2027a07..952463a250 100644 --- a/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.H +++ b/applications/solvers/multiphase/compressibleMultiphaseInterFoam/multiphaseMixtureThermo/alphaContactAngle/alphaContactAngleFvPatchScalarField.H @@ -162,15 +162,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphaContactAngleFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference alphaContactAngleFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C index 0368f6f504..2c44437f9f 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.C @@ -101,17 +101,6 @@ JohnsonJacksonParticleSlipFvPatchVectorField } -Foam::JohnsonJacksonParticleSlipFvPatchVectorField:: -JohnsonJacksonParticleSlipFvPatchVectorField -( - const JohnsonJacksonParticleSlipFvPatchVectorField& ptf -) -: - partialSlipFvPatchVectorField(ptf), - specularityCoefficient_(ptf.specularityCoefficient_) -{} - - Foam::JohnsonJacksonParticleSlipFvPatchVectorField:: JohnsonJacksonParticleSlipFvPatchVectorField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.H index 3725125801..dd68ce2bb6 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleSlip/JohnsonJacksonParticleSlipFvPatchVectorField.H @@ -104,20 +104,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference JohnsonJacksonParticleSlipFvPatchVectorField ( const JohnsonJacksonParticleSlipFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new JohnsonJacksonParticleSlipFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference JohnsonJacksonParticleSlipFvPatchVectorField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C index a396ac2696..daafb84e82 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.C @@ -120,18 +120,6 @@ JohnsonJacksonParticleThetaFvPatchScalarField } -Foam::JohnsonJacksonParticleThetaFvPatchScalarField:: -JohnsonJacksonParticleThetaFvPatchScalarField -( - const JohnsonJacksonParticleThetaFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - restitutionCoefficient_(ptf.restitutionCoefficient_), - specularityCoefficient_(ptf.specularityCoefficient_) -{} - - Foam::JohnsonJacksonParticleThetaFvPatchScalarField:: JohnsonJacksonParticleThetaFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.H index 1ca4845b43..05c961e5ae 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/JohnsonJacksonParticleTheta/JohnsonJacksonParticleThetaFvPatchScalarField.H @@ -107,20 +107,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference JohnsonJacksonParticleThetaFvPatchScalarField ( const JohnsonJacksonParticleThetaFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new JohnsonJacksonParticleThetaFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference JohnsonJacksonParticleThetaFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.C index ef3e0cbb0e..eb0ac19ce3 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.C @@ -81,17 +81,6 @@ alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField {} -alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField:: -alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField -( - const alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField& psf -) -: - alphatPhaseChangeWallFunctionFvPatchScalarField(psf), - fixedDmdtf_(psf.fixedDmdtf_) -{} - - alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField:: alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.H index cc32323a00..ba895e9fbd 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatFixedDmdtfWallBoilingWallFunction/alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField.H @@ -97,23 +97,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField ( const alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C index 6233e70830..b977ecfca7 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.C @@ -102,19 +102,6 @@ alphatPhaseChangeWallFunctionFvPatchScalarField {} -alphatPhaseChangeWallFunctionFvPatchScalarField:: -alphatPhaseChangeWallFunctionFvPatchScalarField -( - const alphatPhaseChangeWallFunctionFvPatchScalarField& awfpsf -) -: - alphatPhaseJayatillekeWallFunctionFvPatchScalarField(awfpsf), - otherPhaseName_(awfpsf.otherPhaseName_), - relax_(awfpsf.relax_), - dmdtf_(awfpsf.dmdtf_) -{} - - alphatPhaseChangeWallFunctionFvPatchScalarField:: alphatPhaseChangeWallFunctionFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.H index d948c73437..84ee8b1279 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseChangeWallFunction/alphatPhaseChangeWallFunctionFvPatchScalarField.H @@ -104,11 +104,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatPhaseChangeWallFunctionFvPatchScalarField ( const alphatPhaseChangeWallFunctionFvPatchScalarField& - ); + ) = delete; //- Copy constructor setting internal field reference alphatPhaseChangeWallFunctionFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.C index 5e33a48589..62dd97d035 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.C @@ -137,18 +137,6 @@ alphatPhaseJayatillekeWallFunctionFvPatchScalarField {} - -alphatPhaseJayatillekeWallFunctionFvPatchScalarField:: -alphatPhaseJayatillekeWallFunctionFvPatchScalarField -( - const alphatPhaseJayatillekeWallFunctionFvPatchScalarField& awfpsf -) -: - fixedValueFvPatchScalarField(awfpsf), - Prt_(awfpsf.Prt_) -{} - - alphatPhaseJayatillekeWallFunctionFvPatchScalarField:: alphatPhaseJayatillekeWallFunctionFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.H index 1ade119c94..837ac26c52 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatPhaseJayatillekeWallFunction/alphatPhaseJayatillekeWallFunctionFvPatchScalarField.H @@ -143,23 +143,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatPhaseJayatillekeWallFunctionFvPatchScalarField ( const alphatPhaseJayatillekeWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphatPhaseJayatillekeWallFunctionFvPatchScalarField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphatPhaseJayatillekeWallFunctionFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C index f19f75904a..150a89d398 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.C @@ -220,25 +220,6 @@ alphatWallBoilingWallFunctionFvPatchScalarField {} -alphatWallBoilingWallFunctionFvPatchScalarField:: -alphatWallBoilingWallFunctionFvPatchScalarField -( - const alphatWallBoilingWallFunctionFvPatchScalarField& psf -) -: - alphatPhaseChangeWallFunctionFvPatchScalarField(psf), - phaseType_(psf.phaseType_), - AbyV_(psf.AbyV_), - alphatConv_(psf.alphatConv_), - dDep_(psf.dDep_), - qq_(psf.qq_), - partitioningModel_(psf.partitioningModel_, false), - nucleationSiteModel_(psf.nucleationSiteModel_, false), - departureDiamModel_(psf.departureDiamModel_, false), - departureFreqModel_(psf.departureFreqModel_, false) -{} - - alphatWallBoilingWallFunctionFvPatchScalarField:: alphatWallBoilingWallFunctionFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.H index a4fb982442..ac8781d34f 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/alphatWallBoilingWallFunction/alphatWallBoilingWallFunctionFvPatchScalarField.H @@ -239,20 +239,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatWallBoilingWallFunctionFvPatchScalarField ( const alphatWallBoilingWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphatWallBoilingWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphatWallBoilingWallFunctionFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C index 5c9543b569..74c14604a3 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.C @@ -66,16 +66,6 @@ Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField {} -Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField -( - const copiedFixedValueFvPatchScalarField& awfpsf -) -: - fixedValueFvPatchScalarField(awfpsf), - sourceFieldName_(awfpsf.sourceFieldName_) -{} - - Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField ( const copiedFixedValueFvPatchScalarField& awfpsf, diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.H index 7aed33e31a..f6bc1ebd94 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/copiedFixedValue/copiedFixedValueFvPatchScalarField.H @@ -93,20 +93,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference copiedFixedValueFvPatchScalarField ( const copiedFixedValueFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new copiedFixedValueFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference copiedFixedValueFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C index bc8467b627..a82b1025a7 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.C @@ -78,19 +78,6 @@ fixedMultiPhaseHeatFluxFvPatchScalarField {} -Foam::fixedMultiPhaseHeatFluxFvPatchScalarField:: -fixedMultiPhaseHeatFluxFvPatchScalarField -( - const fixedMultiPhaseHeatFluxFvPatchScalarField& psf -) -: - fixedValueFvPatchScalarField(psf), - q_(psf.q_), - relax_(psf.relax_), - Tmin_(psf.Tmin_) -{} - - Foam::fixedMultiPhaseHeatFluxFvPatchScalarField:: fixedMultiPhaseHeatFluxFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.H index 994b7d18e5..41cf1258e2 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseCompressibleMomentumTransportModels/derivedFvPatchFields/fixedMultiPhaseHeatFlux/fixedMultiPhaseHeatFluxFvPatchScalarField.H @@ -105,20 +105,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedMultiPhaseHeatFluxFvPatchScalarField ( const fixedMultiPhaseHeatFluxFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedMultiPhaseHeatFluxFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedMultiPhaseHeatFluxFvPatchScalarField diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pU/pEqn.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pU/pEqn.H index ff22f81af9..e56ab8dcb0 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pU/pEqn.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pU/pEqn.H @@ -212,8 +212,13 @@ while (pimple.correct()) // Update the fixedFluxPressure BCs to ensure flux consistency { - surfaceScalarField::Boundary phib(phi.boundaryField()); + surfaceScalarField::Boundary phib + ( + surfaceScalarField::Internal::null(), + phi.boundaryField() + ); phib = 0; + forAll(phases, phasei) { phaseModel& phase = phases[phasei]; diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pUf/pEqn.H b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pUf/pEqn.H index 108c78d6b3..4f2325252c 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pUf/pEqn.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/pUf/pEqn.H @@ -195,8 +195,13 @@ while (pimple.correct()) // Update the fixedFluxPressure BCs to ensure flux consistency { - surfaceScalarField::Boundary phib(phi.boundaryField()); + surfaceScalarField::Boundary phib + ( + surfaceScalarField::Internal::null(), + phi.boundaryField() + ); phib = 0; + forAll(phases, phasei) { phaseModel& phase = phases[phasei]; diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/alphaContactAngle/alphaContactAngleFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/alphaContactAngle/alphaContactAngleFvPatchScalarField.H index 57613a81a4..6c89cd2081 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/alphaContactAngle/alphaContactAngleFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/alphaContactAngle/alphaContactAngleFvPatchScalarField.H @@ -162,15 +162,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphaContactAngleFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference alphaContactAngleFvPatchScalarField ( diff --git a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.H b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.H index 061c42d1b9..942d44535e 100644 --- a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.H +++ b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/alphaContactAngle/alphaContactAngleFvPatchScalarField.H @@ -162,15 +162,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphaContactAngleFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference alphaContactAngleFvPatchScalarField ( diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C index 07e1b00b0f..8157528148 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.C @@ -74,19 +74,6 @@ hydrostaticDisplacementFvPatchVectorField {} -Foam::hydrostaticDisplacementFvPatchVectorField:: -hydrostaticDisplacementFvPatchVectorField -( - const hydrostaticDisplacementFvPatchVectorField& tdpvf -) -: - tractionDisplacementFvPatchVectorField(tdpvf), - rhoLiquid_(tdpvf.rhoLiquid_), - liquidSurfacePressure_(tdpvf.liquidSurfacePressure_), - liquidSurfacePoint_(tdpvf.liquidSurfacePoint_) -{} - - Foam::hydrostaticDisplacementFvPatchVectorField:: hydrostaticDisplacementFvPatchVectorField ( diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.H b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.H index 0cb8575b69..ddfd758f6d 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.H +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/hydrostaticDisplacement/hydrostaticDisplacementFvPatchVectorField.H @@ -97,20 +97,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference hydrostaticDisplacementFvPatchVectorField ( const hydrostaticDisplacementFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new hydrostaticDisplacementFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference hydrostaticDisplacementFvPatchVectorField diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C index 821f1e0871..2abb60eb0e 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.C @@ -76,18 +76,6 @@ tractionDisplacementFvPatchVectorField {} -Foam::tractionDisplacementFvPatchVectorField:: -tractionDisplacementFvPatchVectorField -( - const tractionDisplacementFvPatchVectorField& tdpvf -) -: - fixedGradientFvPatchVectorField(tdpvf), - traction_(tdpvf.traction_), - pressure_(tdpvf.pressure_, false) -{} - - Foam::tractionDisplacementFvPatchVectorField:: tractionDisplacementFvPatchVectorField ( diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.H b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.H index 8e7d9892a9..326dcb22a1 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.H +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/derivedFvPatchFields/tractionDisplacement/tractionDisplacementFvPatchVectorField.H @@ -98,20 +98,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference tractionDisplacementFvPatchVectorField ( const tractionDisplacementFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new tractionDisplacementFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference tractionDisplacementFvPatchVectorField diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C b/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C index db8132e683..49076e3ba5 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -82,18 +82,6 @@ tractionDisplacementCorrectionFvPatchVectorField } -tractionDisplacementCorrectionFvPatchVectorField:: -tractionDisplacementCorrectionFvPatchVectorField -( - const tractionDisplacementCorrectionFvPatchVectorField& tdpvf -) -: - fixedGradientFvPatchVectorField(tdpvf), - traction_(tdpvf.traction_), - pressure_(tdpvf.pressure_) -{} - - tractionDisplacementCorrectionFvPatchVectorField:: tractionDisplacementCorrectionFvPatchVectorField ( diff --git a/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.H b/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.H index e2101445c9..a2250ba24c 100644 --- a/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.H +++ b/applications/solvers/stressAnalysis/solidDisplacementFoam/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.H @@ -90,20 +90,11 @@ public: const fvPatchFieldMapper& ); - //- Construct as copy setting internal field reference + //- Disallow copy without setting internal field reference tractionDisplacementCorrectionFvPatchVectorField ( const tractionDisplacementCorrectionFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new tractionDisplacementCorrectionFvPatchVectorField(*this) - ); - } + ) = delete; //- Construct as copy setting internal field reference tractionDisplacementCorrectionFvPatchVectorField diff --git a/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.C b/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.C index 2fa0030782..c0be233328 100644 --- a/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.C +++ b/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.C @@ -137,22 +137,6 @@ ${typeName}FixedValueFvPatch${FieldType} } -${typeName}FixedValueFvPatch${FieldType}:: -${typeName}FixedValueFvPatch${FieldType} -( - const ${typeName}FixedValueFvPatch${FieldType}& ptf -) -: - fixedValueFvPatchField<${TemplateType}>(ptf) -{ - if (${verbose:-false}) - { - Info<<"construct ${typeName} sha1: ${SHA1sum}" - " as copy\n"; - } -} - - ${typeName}FixedValueFvPatch${FieldType}:: ${typeName}FixedValueFvPatch${FieldType} ( diff --git a/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.H b/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.H index 9f95510d3e..714732b2f8 100644 --- a/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.H +++ b/etc/codeTemplates/dynamicCode/fixedValueFvPatchFieldTemplate.H @@ -85,20 +85,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference ${typeName}FixedValueFvPatch${FieldType} ( const ${typeName}FixedValueFvPatch${FieldType}& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new ${typeName}FixedValueFvPatch${FieldType}(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference ${typeName}FixedValueFvPatch${FieldType} diff --git a/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.C b/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.C index 3c69d28fe9..e6d36ac3a5 100644 --- a/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.C +++ b/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.C @@ -136,22 +136,6 @@ ${typeName}FixedValuePointPatch${FieldType} } -${typeName}FixedValuePointPatch${FieldType}:: -${typeName}FixedValuePointPatch${FieldType} -( - const ${typeName}FixedValuePointPatch${FieldType}& ptf -) -: - fixedValuePointPatchField<${TemplateType}>(ptf) -{ - if (${verbose:-false}) - { - Info<<"construct ${typeName} sha1: ${SHA1sum}" - " as copy\n"; - } -} - - ${typeName}FixedValuePointPatch${FieldType}:: ${typeName}FixedValuePointPatch${FieldType} ( diff --git a/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.H b/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.H index 05bb4c4e76..91a53a684a 100644 --- a/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.H +++ b/etc/codeTemplates/dynamicCode/fixedValuePointPatchFieldTemplate.H @@ -85,20 +85,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference ${typeName}FixedValuePointPatch${FieldType} ( const ${typeName}FixedValuePointPatch${FieldType}& - ); - - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new ${typeName}FixedValuePointPatch${FieldType}(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference ${typeName}FixedValuePointPatch${FieldType} diff --git a/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.C b/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.C index 9b91eb8d6c..63a68dfa3b 100644 --- a/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.C +++ b/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.C @@ -137,22 +137,6 @@ ${typeName}MixedValueFvPatch${FieldType} } -${typeName}MixedValueFvPatch${FieldType}:: -${typeName}MixedValueFvPatch${FieldType} -( - const ${typeName}MixedValueFvPatch${FieldType}& ptf -) -: - mixedFvPatchField<${TemplateType}>(ptf) -{ - if (${verbose:-false}) - { - Info<<"construct ${typeName} sha1: ${SHA1sum}" - " as copy\n"; - } -} - - ${typeName}MixedValueFvPatch${FieldType}:: ${typeName}MixedValueFvPatch${FieldType} ( diff --git a/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.H b/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.H index 5db2bc902b..20d0022c9d 100644 --- a/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.H +++ b/etc/codeTemplates/dynamicCode/mixedFvPatchFieldTemplate.H @@ -85,20 +85,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference ${typeName}MixedValueFvPatch${FieldType} ( const ${typeName}MixedValueFvPatch${FieldType}& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new ${typeName}MixedValueFvPatch${FieldType}(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference ${typeName}MixedValueFvPatch${FieldType} diff --git a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C index f527511a1d..9ff26a3bc9 100644 --- a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.C @@ -91,18 +91,6 @@ turbulentMixingLengthDissipationRateInletFvPatchScalarField } -turbulentMixingLengthDissipationRateInletFvPatchScalarField:: -turbulentMixingLengthDissipationRateInletFvPatchScalarField -( - const turbulentMixingLengthDissipationRateInletFvPatchScalarField& ptf -) -: - inletOutletFvPatchScalarField(ptf), - mixingLength_(ptf.mixingLength_), - kName_(ptf.kName_) -{} - - turbulentMixingLengthDissipationRateInletFvPatchScalarField:: turbulentMixingLengthDissipationRateInletFvPatchScalarField ( diff --git a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.H index 1cd6432449..2b37941f36 100644 --- a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthDissipationRateInlet/turbulentMixingLengthDissipationRateInletFvPatchScalarField.H @@ -132,23 +132,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference turbulentMixingLengthDissipationRateInletFvPatchScalarField ( const turbulentMixingLengthDissipationRateInletFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new turbulentMixingLengthDissipationRateInletFvPatchScalarField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference turbulentMixingLengthDissipationRateInletFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C index 5fcfa17d3b..71bb33fb29 100644 --- a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.C @@ -53,6 +53,7 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField this->valueFraction() = 0.0; } + turbulentMixingLengthFrequencyInletFvPatchScalarField:: turbulentMixingLengthFrequencyInletFvPatchScalarField ( @@ -67,6 +68,7 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField kName_(ptf.kName_) {} + turbulentMixingLengthFrequencyInletFvPatchScalarField:: turbulentMixingLengthFrequencyInletFvPatchScalarField ( @@ -88,16 +90,6 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField this->valueFraction() = 0.0; } -turbulentMixingLengthFrequencyInletFvPatchScalarField:: -turbulentMixingLengthFrequencyInletFvPatchScalarField -( - const turbulentMixingLengthFrequencyInletFvPatchScalarField& ptf -) -: - inletOutletFvPatchScalarField(ptf), - mixingLength_(ptf.mixingLength_), - kName_(ptf.kName_) -{} turbulentMixingLengthFrequencyInletFvPatchScalarField:: turbulentMixingLengthFrequencyInletFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.H index 186d4835ac..b298fa5ff4 100644 --- a/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/RAS/derivedFvPatchFields/turbulentMixingLengthFrequencyInlet/turbulentMixingLengthFrequencyInletFvPatchScalarField.H @@ -133,23 +133,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference turbulentMixingLengthFrequencyInletFvPatchScalarField ( const turbulentMixingLengthFrequencyInletFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new turbulentMixingLengthFrequencyInletFvPatchScalarField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference turbulentMixingLengthFrequencyInletFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.C index 841b16984a..fe53c1b577 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.C @@ -70,16 +70,6 @@ Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField {} -Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField -( - const fixedShearStressFvPatchVectorField& ptf -) -: - fixedValueFvPatchVectorField(ptf), - tau0_(ptf.tau0_) -{} - - Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField ( const fixedShearStressFvPatchVectorField& ptf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.H index 5a467bf166..daf9087a34 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.H @@ -89,20 +89,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedShearStressFvPatchVectorField ( const fixedShearStressFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedShearStressFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedShearStressFvPatchVectorField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C index c7e5681c33..226581d144 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.C @@ -83,20 +83,6 @@ Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField {} -Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField -( - const porousBafflePressureFvPatchField& ptf -) -: - fixedJumpFvPatchField(ptf), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_), - D_(ptf.D_), - I_(ptf.I_), - length_(ptf.length_) -{} - - Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField ( const porousBafflePressureFvPatchField& ptf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.H index 724c138076..e3a1a1d3ee 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/porousBafflePressure/porousBafflePressureFvPatchField.H @@ -148,20 +148,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference porousBafflePressureFvPatchField ( const porousBafflePressureFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new porousBafflePressureFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference porousBafflePressureFvPatchField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C index fba0f3edfc..0b3038d855 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.C @@ -286,21 +286,6 @@ epsilonWallFunctionFvPatchScalarField {} -Foam::epsilonWallFunctionFvPatchScalarField:: -epsilonWallFunctionFvPatchScalarField -( - const epsilonWallFunctionFvPatchScalarField& ewfpsf -) -: - fixedValueFvPatchField(ewfpsf), - G_(), - epsilon_(), - initialised_(false), - master_(-1), - cornerWeights_() -{} - - Foam::epsilonWallFunctionFvPatchScalarField:: epsilonWallFunctionFvPatchScalarField ( diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.H index dac3c38de7..3ae05b509d 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/epsilonWallFunctions/epsilonWallFunction/epsilonWallFunctionFvPatchScalarField.H @@ -179,20 +179,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference epsilonWallFunctionFvPatchScalarField ( const epsilonWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new epsilonWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference epsilonWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C index 0fdb500676..1f2c476b92 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.C @@ -71,15 +71,6 @@ fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField {} -fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField -( - const fWallFunctionFvPatchScalarField& v2wfpsf -) -: - fixedValueFvPatchField(v2wfpsf) -{} - - fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField ( const fWallFunctionFvPatchScalarField& v2wfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.H index 0295dad17a..31c7bf6ba4 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/fWallFunctions/fWallFunction/fWallFunctionFvPatchScalarField.H @@ -103,20 +103,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fWallFunctionFvPatchScalarField ( const fWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C index a61f52d55d..2a245ae7a2 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.C @@ -71,16 +71,6 @@ kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField {} -kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField -( - const kLowReWallFunctionFvPatchScalarField& kwfpsf -) -: - fixedValueFvPatchField(kwfpsf), - Ceps2_(kwfpsf.Ceps2_) -{} - - kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField ( const kLowReWallFunctionFvPatchScalarField& kwfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H index db5b301324..7a0c318859 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kLowReWallFunction/kLowReWallFunctionFvPatchScalarField.H @@ -113,20 +113,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference kLowReWallFunctionFvPatchScalarField ( const kLowReWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new kLowReWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference kLowReWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.C index a3b3301bfa..3f2330a2d1 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.C @@ -64,16 +64,6 @@ Foam::kqRWallFunctionFvPatchField::kqRWallFunctionFvPatchField {} -template -Foam::kqRWallFunctionFvPatchField::kqRWallFunctionFvPatchField -( - const kqRWallFunctionFvPatchField& tkqrwfpf -) -: - zeroGradientFvPatchField(tkqrwfpf) -{} - - template Foam::kqRWallFunctionFvPatchField::kqRWallFunctionFvPatchField ( diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H index bfffb9c401..0237aa714b 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/kqRWallFunctions/kqRWallFunction/kqRWallFunctionFvPatchField.H @@ -102,20 +102,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference kqRWallFunctionFvPatchField ( const kqRWallFunctionFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new kqRWallFunctionFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference kqRWallFunctionFvPatchField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.C index d3a6d9a776..f619e40844 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.C @@ -77,15 +77,6 @@ nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField {} -nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField -( - const nutLowReWallFunctionFvPatchScalarField& nlrwfpsf -) -: - nutWallFunctionFvPatchScalarField(nlrwfpsf) -{} - - nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField ( const nutLowReWallFunctionFvPatchScalarField& nlrwfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.H index f3a1c53dc2..81959f5215 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.H @@ -107,20 +107,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutLowReWallFunctionFvPatchScalarField ( const nutLowReWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutLowReWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutLowReWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.C index 1846ffd298..e5ea17b1c8 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.C @@ -260,17 +260,6 @@ nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField {} -nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField -( - const nutURoughWallFunctionFvPatchScalarField& rwfpsf -) -: - nutUWallFunctionFvPatchScalarField(rwfpsf), - Ks_(rwfpsf.Ks_), - Cs_(rwfpsf.Cs_) -{} - - nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField ( const nutURoughWallFunctionFvPatchScalarField& rwfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.H index 033ade1f92..02486baba7 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutURoughWallFunction/nutURoughWallFunctionFvPatchScalarField.H @@ -139,20 +139,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutURoughWallFunctionFvPatchScalarField ( const nutURoughWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutURoughWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutURoughWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.C index c91b7660ad..ede8b7343f 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.C @@ -167,16 +167,6 @@ nutUSpaldingWallFunctionFvPatchScalarField {} -nutUSpaldingWallFunctionFvPatchScalarField:: -nutUSpaldingWallFunctionFvPatchScalarField -( - const nutUSpaldingWallFunctionFvPatchScalarField& wfpsf -) -: - nutWallFunctionFvPatchScalarField(wfpsf) -{} - - nutUSpaldingWallFunctionFvPatchScalarField:: nutUSpaldingWallFunctionFvPatchScalarField ( diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H index 37212fea6a..bfa730a850 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUSpaldingWallFunction/nutUSpaldingWallFunctionFvPatchScalarField.H @@ -123,20 +123,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutUSpaldingWallFunctionFvPatchScalarField ( const nutUSpaldingWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutUSpaldingWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutUSpaldingWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.C index 5b5ac2907f..e333699292 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.C @@ -152,18 +152,6 @@ nutUTabulatedWallFunctionFvPatchScalarField {} -nutUTabulatedWallFunctionFvPatchScalarField:: -nutUTabulatedWallFunctionFvPatchScalarField -( - const nutUTabulatedWallFunctionFvPatchScalarField& wfpsf -) -: - nutWallFunctionFvPatchScalarField(wfpsf), - uPlusTableName_(wfpsf.uPlusTableName_), - uPlusTable_(wfpsf.uPlusTable_) -{} - - nutUTabulatedWallFunctionFvPatchScalarField:: nutUTabulatedWallFunctionFvPatchScalarField ( diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.H index 5579316a10..af0923752a 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUTabulatedWallFunction/nutUTabulatedWallFunctionFvPatchScalarField.H @@ -131,20 +131,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutUTabulatedWallFunctionFvPatchScalarField ( const nutUTabulatedWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutUTabulatedWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutUTabulatedWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.C index ff20aaca3a..29fee9fc56 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.C @@ -160,15 +160,6 @@ nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField {} -nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField -( - const nutUWallFunctionFvPatchScalarField& sawfpsf -) -: - nutWallFunctionFvPatchScalarField(sawfpsf) -{} - - nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField ( const nutUWallFunctionFvPatchScalarField& sawfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H index 9a80d1325b..5b5d1cf61c 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutUWallFunction/nutUWallFunctionFvPatchScalarField.H @@ -109,20 +109,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutUWallFunctionFvPatchScalarField ( const nutUWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutUWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutUWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.C index a67713d216..e01c641464 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.C @@ -116,21 +116,6 @@ Foam::nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField } -Foam::nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField -( - const nutWallFunctionFvPatchScalarField& wfpsf -) -: - fixedValueFvPatchScalarField(wfpsf), - Cmu_(wfpsf.Cmu_), - kappa_(wfpsf.kappa_), - E_(wfpsf.E_), - yPlusLam_(wfpsf.yPlusLam_) -{ - checkType(); -} - - Foam::nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField ( const nutWallFunctionFvPatchScalarField& wfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.H index d1bd74cac5..9d08432895 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutWallFunction/nutWallFunctionFvPatchScalarField.H @@ -144,11 +144,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutWallFunctionFvPatchScalarField ( const nutWallFunctionFvPatchScalarField& - ); + ) = delete; //- Copy constructor setting internal field reference nutWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C index 9bf26f7681..96ec4732fd 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.C @@ -172,17 +172,6 @@ nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField {} -nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField -( - const nutkRoughWallFunctionFvPatchScalarField& rwfpsf -) -: - nutkWallFunctionFvPatchScalarField(rwfpsf), - Ks_(rwfpsf.Ks_), - Cs_(rwfpsf.Cs_) -{} - - nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField ( const nutkRoughWallFunctionFvPatchScalarField& rwfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H index 209b635f16..cd0ddfadf0 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkRoughWallFunction/nutkRoughWallFunctionFvPatchScalarField.H @@ -143,20 +143,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutkRoughWallFunctionFvPatchScalarField ( const nutkRoughWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutkRoughWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutkRoughWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.C index 59417517fd..fd11f96489 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.C @@ -113,15 +113,6 @@ nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField {} -nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField -( - const nutkWallFunctionFvPatchScalarField& wfpsf -) -: - nutWallFunctionFvPatchScalarField(wfpsf) -{} - - nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField ( const nutkWallFunctionFvPatchScalarField& wfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H index 8fd7b746ff..c9844b8f69 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutkWallFunction/nutkWallFunctionFvPatchScalarField.H @@ -106,20 +106,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutkWallFunctionFvPatchScalarField ( const nutkWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutkWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutkWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C index 24cf37381b..7566dd7e54 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.C @@ -331,22 +331,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField {} -omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField -( - const omegaWallFunctionFvPatchScalarField& owfpsf -) -: - fixedValueFvPatchField(owfpsf), - beta1_(owfpsf.beta1_), - blended_(owfpsf.blended_), - G_(), - omega_(), - initialised_(false), - master_(-1), - cornerWeights_() -{} - - omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField ( const omegaWallFunctionFvPatchScalarField& owfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H index 453d555dd6..0c380d0f95 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/omegaWallFunctions/omegaWallFunction/omegaWallFunctionFvPatchScalarField.H @@ -187,20 +187,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference omegaWallFunctionFvPatchScalarField ( const omegaWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new omegaWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference omegaWallFunctionFvPatchScalarField diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.C b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.C index 5c7b17d370..e57bc26d87 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.C +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.C @@ -70,15 +70,6 @@ v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField {} -v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField -( - const v2WallFunctionFvPatchScalarField& v2wfpsf -) -: - fixedValueFvPatchField(v2wfpsf) -{} - - v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField ( const v2WallFunctionFvPatchScalarField& v2wfpsf, diff --git a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.H b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.H index 6694357f00..c113426705 100644 --- a/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.H +++ b/src/MomentumTransportModels/momentumTransportModels/derivedFvPatchFields/wallFunctions/v2WallFunctions/v2WallFunction/v2WallFunctionFvPatchScalarField.H @@ -105,20 +105,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference v2WallFunctionFvPatchScalarField ( const v2WallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new v2WallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference v2WallFunctionFvPatchScalarField diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C index 9c3ffac952..e938e4a879 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricBoundaryField.C @@ -355,42 +355,6 @@ Boundary } -template class PatchField, class GeoMesh> -Foam::GeometricField::Boundary:: -Boundary -( - const typename GeometricField:: - Boundary& btf -) -: - FieldField(btf), - bmesh_(btf.bmesh_) -{ - if (debug) - { - InfoInFunction << endl; - } -} - - -template class PatchField, class GeoMesh> -Foam::GeometricField::Boundary:: -Boundary -( - typename GeometricField:: - Boundary&& btf -) -: - FieldField(move(btf)), - bmesh_(btf.bmesh_) -{ - if (debug) - { - InfoInFunction << endl; - } -} - - template class PatchField, class GeoMesh> Foam::GeometricField::Boundary:: Boundary diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C index d2e32d22e1..1d79eca785 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C @@ -449,7 +449,7 @@ Foam::GeometricField::GeometricField timeIndex_(gf.timeIndex()), field0Ptr_(nullptr), fieldPrevIterPtr_(nullptr), - boundaryField_(move(gf.boundaryField_)) + boundaryField_(*this, gf.boundaryField_) { if (debug) { diff --git a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H index 1308d4ec45..403252e9da 100644 --- a/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H +++ b/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.H @@ -130,12 +130,7 @@ public: //- Construct from a BoundaryMesh, // reference to the internal field // and a patch field type - Boundary - ( - const BoundaryMesh&, - const Internal&, - const word& - ); + Boundary(const BoundaryMesh&, const Internal&, const word&); //- Construct from a BoundaryMesh, // reference to the internal field @@ -160,49 +155,24 @@ public: ); //- Construct as copy setting the reference to the internal field - Boundary - ( - const Internal&, - const Boundary& - ); + Boundary(const Internal&, const Boundary&); - //- Copy constructor - // Dangerous because Field may be set to a field which gets deleted - // Need new type of BoundaryField, one which is part of a geometric - // field for which snGrad etc. may be called and a free standing - // BoundaryField for which such operations are unavailable. - Boundary - ( - const Boundary& - ); + //- Copy constructor deleted + // as it would not set the internalField reference correctly + Boundary(const Boundary&) = delete; - //- Move constructor - // Dangerous because Field may be set to a field which gets deleted - // Need new type of BoundaryField, one which is part of a geometric - // field for which snGrad etc. may be called and a free standing - // BoundaryField for which such operations are unavailable. - Boundary - ( - Boundary&& - ); + //- Move constructor deleted + // as it would not set the internalField reference correctly + Boundary(Boundary&&) = delete; //- Construct from dictionary - Boundary - ( - const BoundaryMesh&, - const Internal&, - const dictionary& - ); + Boundary(const BoundaryMesh&, const Internal&, const dictionary&); // Member Functions //- Read the boundary field - void readField - ( - const Internal& field, - const dictionary& dict - ); + void readField(const Internal& field, const dictionary& dict); //- Update the boundary condition coefficients void updateCoeffs(); @@ -379,22 +349,13 @@ public: ); //- Copy constructor - GeometricField - ( - const GeometricField& - ); + GeometricField(const GeometricField&); //- Move constructor - GeometricField - ( - GeometricField&& - ); + GeometricField(GeometricField&&); //- Construct as copy of tmp deleting argument - GeometricField - ( - const tmp>& - ); + GeometricField(const tmp>&); //- Construct as copy resetting IO parameters GeometricField diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/basicSymmetry/basicSymmetryPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/basicSymmetry/basicSymmetryPointPatchField.H index da7b2d7788..6f33333ce0 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/basicSymmetry/basicSymmetryPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/basicSymmetry/basicSymmetryPointPatchField.H @@ -81,18 +81,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new basicSymmetryPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference basicSymmetryPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/calculated/calculatedPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/calculated/calculatedPointPatchField.H index 65efd2db81..d13e2c59c5 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/calculated/calculatedPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/calculated/calculatedPointPatchField.H @@ -84,18 +84,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new calculatedPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference calculatedPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/coupled/coupledPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/coupled/coupledPointPatchField.H index e59943bcb5..76eb74779f 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/coupled/coupledPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/coupled/coupledPointPatchField.H @@ -85,9 +85,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const = 0; - //- Construct as copy setting internal field reference coupledPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H index 25244593f7..3367377a1f 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/fixedValue/fixedValuePointPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,18 +85,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new fixedValuePointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference fixedValuePointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.H index 14f81b8fb8..7dd3ae6eec 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/value/valuePointPatchField.H @@ -90,18 +90,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new valuePointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference valuePointPatchField ( @@ -109,8 +97,8 @@ public: const DimensionedField& ); - //- Copy constructor - valuePointPatchField(const valuePointPatchField&) = default; + //- Disallow copy without setting internal field reference + valuePointPatchField(const valuePointPatchField&) = delete; //- Construct and return a clone setting internal field reference virtual autoPtr> clone diff --git a/src/OpenFOAM/fields/pointPatchFields/basic/zeroGradient/zeroGradientPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/basic/zeroGradient/zeroGradientPointPatchField.H index 5a573f6c59..4beeb444da 100644 --- a/src/OpenFOAM/fields/pointPatchFields/basic/zeroGradient/zeroGradientPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/basic/zeroGradient/zeroGradientPointPatchField.H @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -84,18 +84,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new zeroGradientPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference zeroGradientPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/cyclic/cyclicPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/cyclic/cyclicPointPatchField.H index 767b9b5c2a..54204be715 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/cyclic/cyclicPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/cyclic/cyclicPointPatchField.H @@ -90,18 +90,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new cyclicPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference cyclicPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/cyclicSlip/cyclicSlipPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/cyclicSlip/cyclicSlipPointPatchField.H index fd4bb1166b..d4329197a7 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/cyclicSlip/cyclicSlipPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/cyclicSlip/cyclicSlipPointPatchField.H @@ -85,18 +85,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new cyclicSlipPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference cyclicSlipPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/empty/emptyPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/empty/emptyPointPatchField.H index ff5459b161..5a55dc43cc 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/empty/emptyPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/empty/emptyPointPatchField.H @@ -85,18 +85,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new emptyPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference emptyPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/processor/processorPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/processor/processorPointPatchField.H index 2d2c5f28eb..1a69382bc4 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/processor/processorPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/processor/processorPointPatchField.H @@ -89,18 +89,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new processorPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference processorPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.H index aedb0931d2..cdcc7f021e 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/processorCyclic/processorCyclicPointPatchField.H @@ -93,18 +93,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new processorCyclicPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference processorCyclicPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/symmetry/symmetryPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/symmetry/symmetryPointPatchField.H index 45fc96ca54..ee0126b055 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/symmetry/symmetryPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/symmetry/symmetryPointPatchField.H @@ -85,18 +85,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new symmetryPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference symmetryPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/symmetryPlane/symmetryPlanePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/symmetryPlane/symmetryPlanePointPatchField.H index 9d81ac3bad..b3a0bb59c9 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/symmetryPlane/symmetryPlanePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/symmetryPlane/symmetryPlanePointPatchField.H @@ -90,18 +90,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new symmetryPlanePointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference symmetryPlanePointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/constraint/wedge/wedgePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/constraint/wedge/wedgePointPatchField.H index 4c56af61cc..4f471740cd 100644 --- a/src/OpenFOAM/fields/pointPatchFields/constraint/wedge/wedgePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/constraint/wedge/wedgePointPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,18 +85,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new wedgePointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference wedgePointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.C b/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.C index 4bdae14b1b..e979c19af1 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.C +++ b/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.C @@ -136,18 +136,6 @@ Foam::codedFixedValuePointPatchField::codedFixedValuePointPatchField } -template -Foam::codedFixedValuePointPatchField::codedFixedValuePointPatchField -( - const codedFixedValuePointPatchField& ptf -) -: - fixedValuePointPatchField(ptf), - CodedBase(ptf), - redirectPatchFieldPtr_() -{} - - template Foam::codedFixedValuePointPatchField::codedFixedValuePointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.H index 7e9f2e2ff5..b1485699d2 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/derived/codedFixedValue/codedFixedValuePointPatchField.H @@ -159,20 +159,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference codedFixedValuePointPatchField ( const codedFixedValuePointPatchField& - ); - - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new codedFixedValuePointPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference codedFixedValuePointPatchField diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/fixedNormalSlip/fixedNormalSlipPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/derived/fixedNormalSlip/fixedNormalSlipPointPatchField.H index 2362af5c1f..f29a78e7cc 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/fixedNormalSlip/fixedNormalSlipPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/derived/fixedNormalSlip/fixedNormalSlipPointPatchField.H @@ -102,18 +102,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new fixedNormalSlipPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference fixedNormalSlipPointPatchField ( @@ -137,6 +125,7 @@ public: ); } + // Member Functions //- Update the patch field diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/slip/slipPointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/derived/slip/slipPointPatchField.H index 5af4546c37..cf5b5063a0 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/slip/slipPointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/derived/slip/slipPointPatchField.H @@ -84,18 +84,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new slipPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference slipPointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C index 01093a5f4e..3f53b95143 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C +++ b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,18 +86,6 @@ uniformFixedValuePointPatchField } -template -Foam::uniformFixedValuePointPatchField:: -uniformFixedValuePointPatchField -( - const uniformFixedValuePointPatchField& ptf -) -: - fixedValuePointPatchField(ptf), - uniformValue_(ptf.uniformValue_, false) -{} - - template Foam::uniformFixedValuePointPatchField:: uniformFixedValuePointPatchField diff --git a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H index f21b14c578..eac405677b 100644 --- a/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/derived/uniformFixedValue/uniformFixedValuePointPatchField.H @@ -102,23 +102,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformFixedValuePointPatchField ( const uniformFixedValuePointPatchField& - ); - - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new uniformFixedValuePointPatchField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformFixedValuePointPatchField diff --git a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.C b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.C index 27deb085e2..5dc5706158 100644 --- a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.C +++ b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,19 +74,6 @@ Foam::pointPatchField::pointPatchField {} -template -Foam::pointPatchField::pointPatchField -( - const pointPatchField& ptf -) -: - patch_(ptf.patch_), - internalField_(ptf.internalField_), - updated_(false), - patchType_(ptf.patchType_) -{} - - template Foam::pointPatchField::pointPatchField ( diff --git a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H index d6ae57bd4f..e11be0745b 100644 --- a/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H +++ b/src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -181,11 +181,15 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor - pointPatchField(const pointPatchField&); + //- Disallow copy without setting internal field reference + pointPatchField(const pointPatchField&) = delete; - //- Construct and return a clone - virtual autoPtr> clone() const = 0; + //- Disallow clone without setting internal field reference + autoPtr> clone() const + { + NotImplemented; + return tmp>(nullptr); + } //- Construct as copy setting internal field reference pointPatchField diff --git a/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolation.C b/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolation.C index ce844306e8..45896f4a96 100644 --- a/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolation.C +++ b/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolation.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -140,8 +140,8 @@ PatchToPatchInterpolation::~PatchToPatchInterpolation() template const scalarField& -PatchToPatchInterpolation -::pointDistanceToIntersection() const +PatchToPatchInterpolation:: +pointDistanceToIntersection() const { if (!pointDistancePtr_) { @@ -154,8 +154,8 @@ PatchToPatchInterpolation template const scalarField& -PatchToPatchInterpolation -::faceDistanceToIntersection() const +PatchToPatchInterpolation:: +faceDistanceToIntersection() const { if (!faceDistancePtr_) { @@ -181,7 +181,7 @@ bool PatchToPatchInterpolation::movePoints() // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - #include "CalcPatchToPatchWeights.C" - #include "PatchToPatchInterpolate.C" +#include "CalcPatchToPatchWeights.C" +#include "PatchToPatchInterpolate.C" // ************************************************************************* // diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C index 9a7a961ff7..2c170ce80b 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C @@ -125,17 +125,6 @@ alphatJayatillekeWallFunctionFvPatchScalarField {} -alphatJayatillekeWallFunctionFvPatchScalarField:: -alphatJayatillekeWallFunctionFvPatchScalarField -( - const alphatJayatillekeWallFunctionFvPatchScalarField& awfpsf -) -: - fixedValueFvPatchScalarField(awfpsf), - Prt_(awfpsf.Prt_) -{} - - alphatJayatillekeWallFunctionFvPatchScalarField:: alphatJayatillekeWallFunctionFvPatchScalarField ( diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.H index b277eb8d90..d06423ef48 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.H @@ -139,20 +139,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatJayatillekeWallFunctionFvPatchScalarField ( const alphatJayatillekeWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphatJayatillekeWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphatJayatillekeWallFunctionFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C index 2a5f5b211c..840a30f69f 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C @@ -72,16 +72,6 @@ alphatWallFunctionFvPatchScalarField::alphatWallFunctionFvPatchScalarField {} -alphatWallFunctionFvPatchScalarField::alphatWallFunctionFvPatchScalarField -( - const alphatWallFunctionFvPatchScalarField& awfpsf -) -: - fixedValueFvPatchScalarField(awfpsf), - Prt_(awfpsf.Prt_) -{} - - alphatWallFunctionFvPatchScalarField::alphatWallFunctionFvPatchScalarField ( const alphatWallFunctionFvPatchScalarField& awfpsf, diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.H index 489e91b3d2..8addb2d634 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.H @@ -129,20 +129,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatWallFunctionFvPatchScalarField ( const alphatWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphatWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphatWallFunctionFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.C index dfe62101bb..bb41990e13 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.C @@ -75,17 +75,6 @@ convectiveHeatTransferFvPatchScalarField {} -convectiveHeatTransferFvPatchScalarField:: -convectiveHeatTransferFvPatchScalarField -( - const convectiveHeatTransferFvPatchScalarField& htcpsf -) -: - fixedValueFvPatchScalarField(htcpsf), - L_(htcpsf.L_) -{} - - convectiveHeatTransferFvPatchScalarField:: convectiveHeatTransferFvPatchScalarField ( diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.H index 8423129fe6..fcf521aa3e 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.H @@ -132,20 +132,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference convectiveHeatTransferFvPatchScalarField ( const convectiveHeatTransferFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new convectiveHeatTransferFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference convectiveHeatTransferFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C index 987228c99f..782363bc4e 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C @@ -77,16 +77,6 @@ externalCoupledTemperatureMixedFvPatchScalarField {} -Foam::externalCoupledTemperatureMixedFvPatchScalarField:: -externalCoupledTemperatureMixedFvPatchScalarField -( - const externalCoupledTemperatureMixedFvPatchScalarField& ecmpf -) -: - externalCoupledMixedFvPatchField(ecmpf) -{} - - Foam::externalCoupledTemperatureMixedFvPatchScalarField:: externalCoupledTemperatureMixedFvPatchScalarField ( diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H index bca9955c7f..ba318cd63b 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.H @@ -173,20 +173,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference externalCoupledTemperatureMixedFvPatchScalarField ( const externalCoupledTemperatureMixedFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new externalCoupledTemperatureMixedFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference externalCoupledTemperatureMixedFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C index 126f5b9f3b..6f565b9b17 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C @@ -208,29 +208,6 @@ externalWallHeatFluxTemperatureFvPatchScalarField } -Foam::externalWallHeatFluxTemperatureFvPatchScalarField:: -externalWallHeatFluxTemperatureFvPatchScalarField -( - const externalWallHeatFluxTemperatureFvPatchScalarField& tppsf -) -: - mixedFvPatchScalarField(tppsf), - temperatureCoupledBase(tppsf), - mode_(tppsf.mode_), - Q_(tppsf.Q_), - q_(tppsf.q_), - h_(tppsf.h_), - Ta_(tppsf.Ta_, false), - relaxation_(tppsf.relaxation_), - emissivity_(tppsf.emissivity_), - qrPrevious_(tppsf.qrPrevious_), - qrRelaxation_(tppsf.qrRelaxation_), - qrName_(tppsf.qrName_), - thicknessLayers_(tppsf.thicknessLayers_), - kappaLayers_(tppsf.kappaLayers_) -{} - - Foam::externalWallHeatFluxTemperatureFvPatchScalarField:: externalWallHeatFluxTemperatureFvPatchScalarField ( diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H index cedece8d43..bbca09a643 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.H @@ -202,20 +202,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference externalWallHeatFluxTemperatureFvPatchScalarField ( const externalWallHeatFluxTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new externalWallHeatFluxTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference externalWallHeatFluxTemperatureFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.C index 5aae0f2dc8..cf6e2084fe 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.C @@ -139,27 +139,6 @@ thermalBaffle1DFvPatchScalarField } -template -thermalBaffle1DFvPatchScalarField:: -thermalBaffle1DFvPatchScalarField -( - const thermalBaffle1DFvPatchScalarField& ptf -) -: - mappedPatchBase(ptf.patch().patch(), ptf), - mixedFvPatchScalarField(ptf), - TName_(ptf.TName_), - baffleActivated_(ptf.baffleActivated_), - thickness_(ptf.thickness_), - Qs_(ptf.Qs_), - solidDict_(ptf.solidDict_), - solidPtr_(ptf.solidPtr_), - qrPrevious_(ptf.qrPrevious_), - qrRelaxation_(ptf.qrRelaxation_), - qrName_(ptf.qrName_) -{} - - template thermalBaffle1DFvPatchScalarField:: thermalBaffle1DFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H index a30f9e71fa..045a6289ce 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/thermalBaffle1D/thermalBaffle1DFvPatchScalarField.H @@ -191,20 +191,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference thermalBaffle1DFvPatchScalarField ( const thermalBaffle1DFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new thermalBaffle1DFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference thermalBaffle1DFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.C b/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.C index a52c8abcc5..90b8541211 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.C +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.C @@ -95,18 +95,6 @@ totalFlowRateAdvectiveDiffusiveFvPatchScalarField {} -Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField:: -totalFlowRateAdvectiveDiffusiveFvPatchScalarField -( - const totalFlowRateAdvectiveDiffusiveFvPatchScalarField& tppsf -) -: - mixedFvPatchField(tppsf), - phiName_(tppsf.phiName_), - rhoName_(tppsf.rhoName_), - massFluxFraction_(tppsf.massFluxFraction_) -{} - Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField:: totalFlowRateAdvectiveDiffusiveFvPatchScalarField ( diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.H index 87bf976192..134c7a03ad 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.H @@ -99,21 +99,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference totalFlowRateAdvectiveDiffusiveFvPatchScalarField ( const totalFlowRateAdvectiveDiffusiveFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new - totalFlowRateAdvectiveDiffusiveFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference totalFlowRateAdvectiveDiffusiveFvPatchScalarField diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H index 1f2e51cde1..6f5b9112de 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.H @@ -143,18 +143,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new turbulentTemperatureCoupledBaffleMixedFvPatchScalarField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference turbulentTemperatureCoupledBaffleMixedFvPatchScalarField ( diff --git a/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H b/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H index 93928cbc92..60538deadb 100644 --- a/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H +++ b/src/ThermophysicalTransportModels/derivedFvPatchFields/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.H @@ -147,18 +147,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new turbulentTemperatureRadCoupledMixedFvPatchScalarField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference turbulentTemperatureRadCoupledMixedFvPatchScalarField ( diff --git a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletEpsilon/atmBoundaryLayerInletEpsilonFvPatchScalarField.H b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletEpsilon/atmBoundaryLayerInletEpsilonFvPatchScalarField.H index 045b0fd8e9..284ac4dcec 100644 --- a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletEpsilon/atmBoundaryLayerInletEpsilonFvPatchScalarField.H +++ b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletEpsilon/atmBoundaryLayerInletEpsilonFvPatchScalarField.H @@ -108,15 +108,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new atmBoundaryLayerInletEpsilonFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference atmBoundaryLayerInletEpsilonFvPatchScalarField ( diff --git a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletK/atmBoundaryLayerInletKFvPatchScalarField.H b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletK/atmBoundaryLayerInletKFvPatchScalarField.H index ea891c42a6..2af159608a 100644 --- a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletK/atmBoundaryLayerInletKFvPatchScalarField.H +++ b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletK/atmBoundaryLayerInletKFvPatchScalarField.H @@ -108,15 +108,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new atmBoundaryLayerInletKFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference atmBoundaryLayerInletKFvPatchScalarField ( diff --git a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletVelocity/atmBoundaryLayerInletVelocityFvPatchVectorField.H b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletVelocity/atmBoundaryLayerInletVelocityFvPatchVectorField.H index 6396ef5c97..2e446a49e7 100644 --- a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletVelocity/atmBoundaryLayerInletVelocityFvPatchVectorField.H +++ b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayerInletVelocity/atmBoundaryLayerInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -109,15 +109,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new atmBoundaryLayerInletVelocityFvPatchVectorField(*this) - ); - } - //- Construct as copy setting internal field reference atmBoundaryLayerInletVelocityFvPatchVectorField ( diff --git a/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.C b/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.C index e47c583820..84d37a9b9d 100644 --- a/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.C +++ b/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.C @@ -126,17 +126,6 @@ nutkAtmRoughWallFunctionFvPatchScalarField {} -nutkAtmRoughWallFunctionFvPatchScalarField:: -nutkAtmRoughWallFunctionFvPatchScalarField -( - const nutkAtmRoughWallFunctionFvPatchScalarField& rwfpsf -) -: - nutkWallFunctionFvPatchScalarField(rwfpsf), - z0_(rwfpsf.z0_) -{} - - nutkAtmRoughWallFunctionFvPatchScalarField:: nutkAtmRoughWallFunctionFvPatchScalarField ( diff --git a/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.H b/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.H index c854dbd2f8..cf0852abfd 100644 --- a/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.H +++ b/src/atmosphericModels/derivedFvPatchFields/nutkAtmRoughWallFunction/nutkAtmRoughWallFunctionFvPatchScalarField.H @@ -132,20 +132,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutkAtmRoughWallFunctionFvPatchScalarField ( const nutkAtmRoughWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutkAtmRoughWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutkAtmRoughWallFunctionFvPatchScalarField diff --git a/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.C b/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.C index 174c5d1e0d..810b479361 100644 --- a/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.C +++ b/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -92,17 +92,6 @@ solidBodyMotionDisplacementPointPatchVectorField } -solidBodyMotionDisplacementPointPatchVectorField:: -solidBodyMotionDisplacementPointPatchVectorField -( - const solidBodyMotionDisplacementPointPatchVectorField& ptf -) -: - fixedValuePointPatchVectorField(ptf), - SBMFPtr_(ptf.SBMFPtr_().clone().ptr()) -{} - - solidBodyMotionDisplacementPointPatchVectorField:: solidBodyMotionDisplacementPointPatchVectorField ( diff --git a/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.H b/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.H index 67c0d08982..adb8de57f0 100644 --- a/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.H +++ b/src/dynamicMesh/motionSolvers/displacement/solidBody/pointPatchFields/derived/solidBodyMotionDisplacement/solidBodyMotionDisplacementPointPatchVectorField.H @@ -92,23 +92,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference solidBodyMotionDisplacementPointPatchVectorField ( const solidBodyMotionDisplacementPointPatchVectorField& - ); - - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new solidBodyMotionDisplacementPointPatchVectorField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference solidBodyMotionDisplacementPointPatchVectorField diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C index 91bca09c57..0ac0415ef4 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,18 +79,6 @@ SRFFreestreamVelocityFvPatchVectorField } -Foam::SRFFreestreamVelocityFvPatchVectorField:: -SRFFreestreamVelocityFvPatchVectorField -( - const SRFFreestreamVelocityFvPatchVectorField& srfvpvf -) -: - inletOutletFvPatchVectorField(srfvpvf), - relative_(srfvpvf.relative_), - UInf_(srfvpvf.UInf_) -{} - - Foam::SRFFreestreamVelocityFvPatchVectorField:: SRFFreestreamVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.H b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.H index 08fe32fce3..0cbbe45178 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.H +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFFreestreamVelocityFvPatchVectorField/SRFFreestreamVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -134,20 +134,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference SRFFreestreamVelocityFvPatchVectorField ( const SRFFreestreamVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new SRFFreestreamVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference SRFFreestreamVelocityFvPatchVectorField diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C index 36dc17ef63..b175297f02 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -70,17 +70,6 @@ Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField {} -Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField -( - const SRFVelocityFvPatchVectorField& srfvpvf -) -: - fixedValueFvPatchVectorField(srfvpvf), - relative_(srfvpvf.relative_), - inletValue_(srfvpvf.inletValue_) -{} - - Foam::SRFVelocityFvPatchVectorField::SRFVelocityFvPatchVectorField ( const SRFVelocityFvPatchVectorField& srfvpvf, diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.H b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.H index 7eae2b9ca8..4c97d27ac0 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.H +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFVelocityFvPatchVectorField/SRFVelocityFvPatchVectorField.H @@ -143,20 +143,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference SRFVelocityFvPatchVectorField ( const SRFVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new SRFVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference SRFVelocityFvPatchVectorField diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.C b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.C index 0fd8d2a10c..0484786473 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.C +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,15 +64,6 @@ Foam::SRFWallVelocityFvPatchVectorField::SRFWallVelocityFvPatchVectorField {} -Foam::SRFWallVelocityFvPatchVectorField::SRFWallVelocityFvPatchVectorField -( - const SRFWallVelocityFvPatchVectorField& srfvpvf -) -: - fixedValueFvPatchVectorField(srfvpvf) -{} - - Foam::SRFWallVelocityFvPatchVectorField::SRFWallVelocityFvPatchVectorField ( const SRFWallVelocityFvPatchVectorField& srfvpvf, diff --git a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.H b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.H index e78e429f87..e09e886427 100644 --- a/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.H +++ b/src/finiteVolume/cfdTools/general/SRF/derivedFvPatchFields/SRFWallVelocityFvPatchVectorField/SRFWallVelocityFvPatchVectorField.H @@ -118,20 +118,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference SRFWallVelocityFvPatchVectorField ( const SRFWallVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new SRFWallVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference SRFWallVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.C index 41395ee496..f56de53ed3 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,16 +67,6 @@ Foam::basicSymmetryFvPatchField::basicSymmetryFvPatchField } -template -Foam::basicSymmetryFvPatchField::basicSymmetryFvPatchField -( - const basicSymmetryFvPatchField& ptf -) -: - transformFvPatchField(ptf) -{} - - template Foam::basicSymmetryFvPatchField::basicSymmetryFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.H index 872655e1d0..a7989ca6bc 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/basicSymmetry/basicSymmetryFvPatchField.H @@ -82,20 +82,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference basicSymmetryFvPatchField ( const basicSymmetryFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new basicSymmetryFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference basicSymmetryFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C index f015463854..2bc9ccda34 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,16 +75,6 @@ Foam::calculatedFvPatchField::calculatedFvPatchField {} -template -Foam::calculatedFvPatchField::calculatedFvPatchField -( - const calculatedFvPatchField& ptf -) -: - fvPatchField(ptf) -{} - - template Foam::calculatedFvPatchField::calculatedFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H index 1e1a9018c1..040f20aa7f 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/calculated/calculatedFvPatchField.H @@ -98,20 +98,8 @@ public: const bool mappingRequired=true ); - //- Copy constructor - calculatedFvPatchField - ( - const calculatedFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new calculatedFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + calculatedFvPatchField(const calculatedFvPatchField&) = delete; //- Copy constructor setting internal field reference calculatedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.C index 3e1826d228..cc004f1e54 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -81,17 +81,6 @@ Foam::coupledFvPatchField::coupledFvPatchField {} -template -Foam::coupledFvPatchField::coupledFvPatchField -( - const coupledFvPatchField& ptf -) -: - LduInterfaceField(refCast(ptf.patch())), - fvPatchField(ptf) -{} - - template Foam::coupledFvPatchField::coupledFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.H index de3e91b66b..96a1a68b72 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/coupled/coupledFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -97,14 +97,8 @@ public: const bool mappingRequired=true ); - //- Copy constructor - coupledFvPatchField - ( - const coupledFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const = 0; + //- Disallow copy without setting internal field reference + coupledFvPatchField(const coupledFvPatchField&) = delete; //- Copy constructor setting internal field reference coupledFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.H index d540c1320f..bcff81f6be 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.H @@ -96,15 +96,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new directionMixedFvPatchField(*this) - ); - } - //- Construct as copy setting internal field reference directionMixedFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.C index f123173a58..12a3a93b40 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,17 +69,6 @@ extrapolatedCalculatedFvPatchField {} -template -Foam::extrapolatedCalculatedFvPatchField:: -extrapolatedCalculatedFvPatchField -( - const extrapolatedCalculatedFvPatchField& ptf -) -: - calculatedFvPatchField(ptf) -{} - - template Foam::extrapolatedCalculatedFvPatchField:: extrapolatedCalculatedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.H index 7ecec2f0e0..8c628ea5d5 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/extrapolatedCalculated/extrapolatedCalculatedFvPatchField.H @@ -96,20 +96,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference extrapolatedCalculatedFvPatchField ( const extrapolatedCalculatedFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new extrapolatedCalculatedFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference extrapolatedCalculatedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C index 0dfc4350b6..36fe69c00b 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,17 +79,6 @@ Foam::fixedGradientFvPatchField::fixedGradientFvPatchField } -template -Foam::fixedGradientFvPatchField::fixedGradientFvPatchField -( - const fixedGradientFvPatchField& ptf -) -: - fvPatchField(ptf), - gradient_(ptf.gradient_) -{} - - template Foam::fixedGradientFvPatchField::fixedGradientFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.H index 7b4daed5cc..d7c3ac25ac 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.H @@ -117,20 +117,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedGradientFvPatchField ( const fixedGradientFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedGradientFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedGradientFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C index 7c4af1c843..b9515f709e 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,16 +75,6 @@ Foam::fixedValueFvPatchField::fixedValueFvPatchField } -template -Foam::fixedValueFvPatchField::fixedValueFvPatchField -( - const fixedValueFvPatchField& ptf -) -: - fvPatchField(ptf) -{} - - template Foam::fixedValueFvPatchField::fixedValueFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.H index 50b09c38c4..55789da5e8 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -103,20 +103,8 @@ public: const bool mappingRequired=true ); - //- Copy constructor - fixedValueFvPatchField - ( - const fixedValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedValueFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + fixedValueFvPatchField(const fixedValueFvPatchField&) = delete; //- Copy constructor setting internal field reference fixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C index 164be8d377..c307a4e017 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,19 +85,6 @@ Foam::mixedFvPatchField::mixedFvPatchField } -template -Foam::mixedFvPatchField::mixedFvPatchField -( - const mixedFvPatchField& ptf -) -: - fvPatchField(ptf), - refValue_(ptf.refValue_), - refGrad_(ptf.refGrad_), - valueFraction_(ptf.valueFraction_) -{} - - template Foam::mixedFvPatchField::mixedFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.H index fef6f5e244..fd2ca1fc1d 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -129,20 +129,8 @@ public: const bool mappingRequired=true ); - //- Copy constructor - mixedFvPatchField - ( - const mixedFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new mixedFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + mixedFvPatchField(const mixedFvPatchField&) = delete; //- Copy constructor setting internal field reference mixedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.C index ac8fea719e..c4eb124097 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.C @@ -71,35 +71,6 @@ Foam::slicedFvPatchField::slicedFvPatchField } -template -Foam::tmp> -Foam::slicedFvPatchField::clone() const -{ - return tmp> - ( - new slicedFvPatchField(*this) - ); -} - - -template -Foam::slicedFvPatchField::slicedFvPatchField -( - const slicedFvPatchField& ptf -) -: - fvPatchField - ( - ptf.patch(), - ptf.internalField(), - Field() - ) -{ - // Transfer the slice from the argument - UList::shallowCopy(ptf); -} - - template Foam::tmp> Foam::slicedFvPatchField::clone diff --git a/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.H index 3547a5b035..bbbff5fee8 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/sliced/slicedFvPatchField.H @@ -85,11 +85,8 @@ public: const fvPatchField& ); - //- Copy constructor - slicedFvPatchField(const slicedFvPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const; + //- Disallow copy without setting internal field reference + slicedFvPatchField(const slicedFvPatchField&) = delete; //- Copy constructor setting internal field reference slicedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.C index cd20428d2e..5a452dd5ff 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -65,16 +65,6 @@ Foam::transformFvPatchField::transformFvPatchField {} -template -Foam::transformFvPatchField::transformFvPatchField -( - const transformFvPatchField& ptf -) -: - fvPatchField(ptf) -{} - - template Foam::transformFvPatchField::transformFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.H index a2fb0efe6e..2009a541f2 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/transform/transformFvPatchField.H @@ -85,14 +85,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - transformFvPatchField - ( - const transformFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const = 0; + //- Disallow copy without setting internal field reference + transformFvPatchField(const transformFvPatchField&) = delete; //- Copy constructor setting internal field reference transformFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C index 9fdb182e9c..beb4f6a229 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,16 +66,6 @@ Foam::zeroGradientFvPatchField::zeroGradientFvPatchField {} -template -Foam::zeroGradientFvPatchField::zeroGradientFvPatchField -( - const zeroGradientFvPatchField& zgpf -) -: - fvPatchField(zgpf) -{} - - template Foam::zeroGradientFvPatchField::zeroGradientFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H index b5b8333133..6fd6cfae53 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/basic/zeroGradient/zeroGradientFvPatchField.H @@ -95,20 +95,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference zeroGradientFvPatchField ( const zeroGradientFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new zeroGradientFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference zeroGradientFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.C index 3497215086..5e2576fd9f 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.C @@ -93,18 +93,6 @@ Foam::cyclicFvPatchField::cyclicFvPatchField } -template -Foam::cyclicFvPatchField::cyclicFvPatchField -( - const cyclicFvPatchField& ptf -) -: - coupledFvPatchField(ptf), - cyclicLduInterfaceField(), - cyclicPatch_(ptf.cyclicPatch_) -{} - - template Foam::cyclicFvPatchField::cyclicFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.H index 9b7c24470d..5217c612ce 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclic/cyclicFvPatchField.H @@ -107,20 +107,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cyclicFvPatchField - ( - const cyclicFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cyclicFvPatchField(const cyclicFvPatchField&) = delete; //- Copy constructor setting internal field reference cyclicFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.H index ef3e184ff1..8bafb0367d 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -77,15 +77,6 @@ public: //- Inherit parent constructors using cyclicAMIFvPatchField::cyclicAMIFvPatchField; - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicACMIFvPatchField(*this) - ); - } - //- Construct and return a clone setting internal field reference virtual tmp> clone ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C index cfa20a1341..dce3aebfde 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C @@ -102,18 +102,6 @@ Foam::cyclicAMIFvPatchField::cyclicAMIFvPatchField } -template -Foam::cyclicAMIFvPatchField::cyclicAMIFvPatchField -( - const cyclicAMIFvPatchField& ptf -) -: - coupledFvPatchField(ptf), - cyclicAMILduInterfaceField(), - cyclicAMIPatch_(ptf.cyclicAMIPatch_) -{} - - template Foam::cyclicAMIFvPatchField::cyclicAMIFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.H index 800cc0eec5..1923e7ffc0 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.H @@ -111,17 +111,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cyclicAMIFvPatchField(const cyclicAMIFvPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicAMIFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cyclicAMIFvPatchField(const cyclicAMIFvPatchField&) = delete; //- Copy constructor setting internal field reference cyclicAMIFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvPatchField.H index 10b09a0873..b57aeff1a2 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvPatchField.H @@ -82,15 +82,6 @@ public: //- Inherit parent constructors using cyclicAMIFvPatchField::cyclicAMIFvPatchField; - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicRepeatAMIFvPatchField(*this) - ); - } - //- Construct and return a clone setting internal field reference virtual tmp> clone ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.C index 7146d50a1e..b04296babc 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,16 +63,6 @@ Foam::cyclicSlipFvPatchField::cyclicSlipFvPatchField {} -template -Foam::cyclicSlipFvPatchField::cyclicSlipFvPatchField -( - const cyclicSlipFvPatchField& ptf -) -: - cyclicFvPatchField(ptf) -{} - - template Foam::cyclicSlipFvPatchField::cyclicSlipFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.H index 0e04612fac..6155a8cffc 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicSlip/cyclicSlipFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -98,20 +98,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cyclicSlipFvPatchField - ( - const cyclicSlipFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicSlipFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cyclicSlipFvPatchField(const cyclicSlipFvPatchField&) = delete; //- Copy constructor setting internal field reference cyclicSlipFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.C index fb19c07660..aad77220be 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -87,21 +87,6 @@ Foam::emptyFvPatchField::emptyFvPatchField } -template -Foam::emptyFvPatchField::emptyFvPatchField -( - const emptyFvPatchField& ptf -) -: - fvPatchField - ( - ptf.patch(), - ptf.internalField(), - Field(0) - ) -{} - - template Foam::emptyFvPatchField::emptyFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.H index d11b553183..826fe56332 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/empty/emptyFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -97,20 +97,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - emptyFvPatchField - ( - const emptyFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new emptyFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + emptyFvPatchField(const emptyFvPatchField&) = delete; //- Copy constructor setting internal field reference emptyFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C index 02f1090cef..00aa0e994f 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C @@ -66,16 +66,6 @@ Foam::jumpCyclicFvPatchField::jumpCyclicFvPatchField } -template -Foam::jumpCyclicFvPatchField::jumpCyclicFvPatchField -( - const jumpCyclicFvPatchField& ptf -) -: - cyclicFvPatchField(ptf) -{} - - template Foam::jumpCyclicFvPatchField::jumpCyclicFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.H index b35c9a08e3..b46dd8464b 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -88,11 +88,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - jumpCyclicFvPatchField - ( - const jumpCyclicFvPatchField& - ); + //- Disallow copy without setting internal field reference + jumpCyclicFvPatchField(const jumpCyclicFvPatchField&) = delete; //- Copy constructor setting internal field reference jumpCyclicFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.C index f380fd77da..d18098ffb2 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.C @@ -67,16 +67,6 @@ Foam::jumpCyclicAMIFvPatchField::jumpCyclicAMIFvPatchField } -template -Foam::jumpCyclicAMIFvPatchField::jumpCyclicAMIFvPatchField -( - const jumpCyclicAMIFvPatchField& ptf -) -: - cyclicAMIFvPatchField(ptf) -{} - - template Foam::jumpCyclicAMIFvPatchField::jumpCyclicAMIFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.H index 7ed80afa14..bf1e24dc84 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclicAMI/jumpCyclicAMIFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -91,11 +91,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference jumpCyclicAMIFvPatchField ( const jumpCyclicAMIFvPatchField& - ); + ) = delete; //- Copy constructor setting internal field reference jumpCyclicAMIFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.C index 4757f32252..3ae92b18b6 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.C @@ -141,31 +141,6 @@ Foam::processorFvPatchField::processorFvPatchField } -template -Foam::processorFvPatchField::processorFvPatchField -( - const processorFvPatchField& ptf -) -: - processorLduInterfaceField(), - coupledFvPatchField(ptf), - procPatch_(refCast(ptf.patch())), - sendBuf_(move(ptf.sendBuf_)), - receiveBuf_(move(ptf.receiveBuf_)), - outstandingSendRequest_(-1), - outstandingRecvRequest_(-1), - scalarSendBuf_(move(ptf.scalarSendBuf_)), - scalarReceiveBuf_(move(ptf.scalarReceiveBuf_)) -{ - if (debug && !ptf.ready()) - { - FatalErrorInFunction - << "On patch " << procPatch_.name() << " outstanding request." - << abort(FatalError); - } -} - - template Foam::processorFvPatchField::processorFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.H index 8f5cffcb98..a4d5e7b29f 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/processor/processorFvPatchField.H @@ -128,17 +128,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - processorFvPatchField(const processorFvPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new processorFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + processorFvPatchField(const processorFvPatchField&) = delete; //- Copy constructor setting internal field reference processorFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.C index e3214ae6fd..0f61618851 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -112,17 +112,6 @@ Foam::processorCyclicFvPatchField::processorCyclicFvPatchField } -template -Foam::processorCyclicFvPatchField::processorCyclicFvPatchField -( - const processorCyclicFvPatchField& ptf -) -: - processorFvPatchField(ptf), - procPatch_(refCast(ptf.patch())) -{} - - template Foam::processorCyclicFvPatchField::processorCyclicFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H index 1f30e6c864..e270f9632c 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/processorCyclic/processorCyclicFvPatchField.H @@ -114,17 +114,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - processorCyclicFvPatchField(const processorCyclicFvPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new processorCyclicFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + processorCyclicFvPatchField + ( + const processorCyclicFvPatchField& + ) = delete; //- Copy constructor setting internal field reference processorCyclicFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.C index 711043d3b9..d67f05545a 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,16 +86,6 @@ Foam::symmetryFvPatchField::symmetryFvPatchField } -template -Foam::symmetryFvPatchField::symmetryFvPatchField -( - const symmetryFvPatchField& ptf -) -: - basicSymmetryFvPatchField(ptf) -{} - - template Foam::symmetryFvPatchField::symmetryFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.H index 6c84aed005..63beb7fa00 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/symmetry/symmetryFvPatchField.H @@ -97,20 +97,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - symmetryFvPatchField - ( - const symmetryFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new symmetryFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + symmetryFvPatchField(const symmetryFvPatchField&) = delete; //- Copy constructor setting internal field reference symmetryFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.C index ae41a9d815..9dc4540877 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -90,17 +90,6 @@ Foam::symmetryPlaneFvPatchField::symmetryPlaneFvPatchField } -template -Foam::symmetryPlaneFvPatchField::symmetryPlaneFvPatchField -( - const symmetryPlaneFvPatchField& ptf -) -: - basicSymmetryFvPatchField(ptf), - symmetryPlanePatch_(ptf.symmetryPlanePatch_) -{} - - template Foam::symmetryPlaneFvPatchField::symmetryPlaneFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.H index 5e74b11f8f..0cec5fe7e9 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/symmetryPlane/symmetryPlaneFvPatchField.H @@ -103,20 +103,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference symmetryPlaneFvPatchField ( const symmetryPlaneFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new symmetryPlaneFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference symmetryPlaneFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.C index c1aa140f90..8397def91d 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -93,16 +93,6 @@ Foam::wedgeFvPatchField::wedgeFvPatchField } -template -Foam::wedgeFvPatchField::wedgeFvPatchField -( - const wedgeFvPatchField& ptf -) -: - transformFvPatchField(ptf) -{} - - template Foam::wedgeFvPatchField::wedgeFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.H index d0f57db927..bcbd78517b 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/constraint/wedge/wedgeFvPatchField.H @@ -98,20 +98,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - wedgeFvPatchField - ( - const wedgeFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new wedgeFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + wedgeFvPatchField(const wedgeFvPatchField&) = delete; //- Copy constructor setting internal field reference wedgeFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.C index af7c4da1de..2eac817670 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -70,17 +70,6 @@ PrghPressureFvPatchScalarField {} -template -Foam::PrghPressureFvPatchScalarField:: -PrghPressureFvPatchScalarField -( - const PrghPressureFvPatchScalarField& ptf -) -: - PressureFvPatchScalarField(ptf) -{} - - template Foam::PrghPressureFvPatchScalarField:: PrghPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.H index 62241d0dcd..f73847db2d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/PrghPressure/PrghPressureFvPatchScalarField.H @@ -100,20 +100,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference PrghPressureFvPatchScalarField ( const PrghPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new PrghPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference PrghPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.C index 852af92c8e..4bed20a466 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -108,27 +108,6 @@ activeBaffleVelocityFvPatchVectorField } -Foam::activeBaffleVelocityFvPatchVectorField:: -activeBaffleVelocityFvPatchVectorField -( - const activeBaffleVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchVectorField(ptf), - pName_(ptf.pName_), - cyclicPatchName_(ptf.cyclicPatchName_), - cyclicPatchLabel_(ptf.cyclicPatchLabel_), - orientation_(ptf.orientation_), - initWallSf_(ptf.initWallSf_), - initCyclicSf_(ptf.initCyclicSf_), - nbrCyclicSf_(ptf.nbrCyclicSf_), - openFraction_(ptf.openFraction_), - openingTime_(ptf.openingTime_), - maxOpenFractionDelta_(ptf.maxOpenFractionDelta_), - curTimeIndex_(-1) -{} - - Foam::activeBaffleVelocityFvPatchVectorField:: activeBaffleVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.H index 98f527a428..704a5f5f5c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/activeBaffleVelocity/activeBaffleVelocityFvPatchVectorField.H @@ -176,20 +176,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference activeBaffleVelocityFvPatchVectorField ( const activeBaffleVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new activeBaffleVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference activeBaffleVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C index e5a9a0d39f..b0ccdbb764 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -126,30 +126,6 @@ activePressureForceBaffleVelocityFvPatchVectorField } -Foam::activePressureForceBaffleVelocityFvPatchVectorField:: -activePressureForceBaffleVelocityFvPatchVectorField -( - const activePressureForceBaffleVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchVectorField(ptf), - pName_(ptf.pName_), - cyclicPatchName_(ptf.cyclicPatchName_), - cyclicPatchLabel_(ptf.cyclicPatchLabel_), - orientation_(ptf.orientation_), - initWallSf_(ptf.initWallSf_), - initCyclicSf_(ptf.initCyclicSf_), - nbrCyclicSf_(ptf.nbrCyclicSf_), - openFraction_(ptf.openFraction_), - openingTime_(ptf.openingTime_), - maxOpenFractionDelta_(ptf.maxOpenFractionDelta_), - curTimeIndex_(-1), - minThresholdValue_(ptf.minThresholdValue_), - fBased_(ptf.fBased_), - baffleActivated_(ptf.baffleActivated_) -{} - - Foam::activePressureForceBaffleVelocityFvPatchVectorField:: activePressureForceBaffleVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.H index 9fa69e8b1f..e497a547b0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/activePressureForceBaffleVelocity/activePressureForceBaffleVelocityFvPatchVectorField.H @@ -187,20 +187,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference activePressureForceBaffleVelocityFvPatchVectorField ( const activePressureForceBaffleVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new activePressureForceBaffleVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference activePressureForceBaffleVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C index 8099c02064..98bdc5d81c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -120,20 +120,6 @@ Foam::advectiveFvPatchField::advectiveFvPatchField } -template -Foam::advectiveFvPatchField::advectiveFvPatchField -( - const advectiveFvPatchField& ptpsf -) -: - mixedFvPatchField(ptpsf), - phiName_(ptpsf.phiName_), - rhoName_(ptpsf.rhoName_), - fieldInf_(ptpsf.fieldInf_), - lInf_(ptpsf.lInf_) -{} - - template Foam::advectiveFvPatchField::advectiveFvPatchField ( @@ -159,7 +145,7 @@ Foam::advectiveFvPatchField::advectionSpeed() const this->db().objectRegistry::template lookupObject (phiName_); - fvsPatchField phip = + const fvsPatchField& phip = this->patch().template lookupPatchField ( phiName_ diff --git a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H index f6a2dc8c44..b2a19860bb 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H @@ -143,20 +143,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - advectiveFvPatchField - ( - const advectiveFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new advectiveFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + advectiveFvPatchField(const advectiveFvPatchField&) = delete; //- Copy constructor setting internal field reference advectiveFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C index 7e94b7c678..f3baca5bdc 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.C @@ -134,18 +134,6 @@ Foam::codedFixedValueFvPatchField::codedFixedValueFvPatchField } -template -Foam::codedFixedValueFvPatchField::codedFixedValueFvPatchField -( - const codedFixedValueFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - CodedBase(ptf), - redirectPatchFieldPtr_() -{} - - template Foam::codedFixedValueFvPatchField::codedFixedValueFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.H index 4f90628955..53cb97b0e2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedFixedValue/codedFixedValueFvPatchField.H @@ -157,20 +157,12 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + + //- Disallow copy without setting internal field reference codedFixedValueFvPatchField ( const codedFixedValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new codedFixedValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference codedFixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.C index 19f182a98b..c91bb1ad1a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.C @@ -134,18 +134,6 @@ Foam::codedMixedFvPatchField::codedMixedFvPatchField } -template -Foam::codedMixedFvPatchField::codedMixedFvPatchField -( - const codedMixedFvPatchField& ptf -) -: - mixedFvPatchField(ptf), - CodedBase(ptf), - redirectPatchFieldPtr_() -{} - - template Foam::codedMixedFvPatchField::codedMixedFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.H index 0d8986b47d..b69b3bcd63 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/codedMixed/codedMixedFvPatchField.H @@ -167,20 +167,9 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - codedMixedFvPatchField - ( - const codedMixedFvPatchField& - ); - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new codedMixedFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + codedMixedFvPatchField(const codedMixedFvPatchField&) = delete; //- Copy constructor setting internal field reference codedMixedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C index 1fbdecbcdc..2cd2e276b9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,21 +83,6 @@ cylindricalInletVelocityFvPatchVectorField {} -Foam::cylindricalInletVelocityFvPatchVectorField:: -cylindricalInletVelocityFvPatchVectorField -( - const cylindricalInletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - origin_(ptf.origin_), - axis_(ptf.axis_), - axialVelocity_(ptf.axialVelocity_, false), - radialVelocity_(ptf.radialVelocity_, false), - rpm_(ptf.rpm_, false) -{} - - Foam::cylindricalInletVelocityFvPatchVectorField:: cylindricalInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H index 438526ba9e..942c0f7b75 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/cylindricalInletVelocity/cylindricalInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -136,20 +136,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference cylindricalInletVelocityFvPatchVectorField ( const cylindricalInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new cylindricalInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference cylindricalInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.C index bb3f13c171..cf8c591980 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.C @@ -96,19 +96,6 @@ Foam::dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField {} -Foam::dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField -( - const dynamicPressureFvPatchScalarField& tppsf -) -: - fixedValueFvPatchScalarField(tppsf), - rhoName_(tppsf.rhoName_), - psiName_(tppsf.psiName_), - gamma_(tppsf.gamma_), - p0_(tppsf.p0_) -{} - - Foam::dynamicPressureFvPatchScalarField::dynamicPressureFvPatchScalarField ( const dynamicPressureFvPatchScalarField& tppsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.H index b70311cf24..555e30f9cd 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/dynamicPressure/dynamicPressureFvPatchScalarField.H @@ -106,11 +106,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference dynamicPressureFvPatchScalarField ( const dynamicPressureFvPatchScalarField& - ); + ) = delete; //- Copy constructor setting internal field reference dynamicPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.C index 4f2c3fb9e8..9051bfec3f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.C @@ -69,17 +69,6 @@ entrainmentPressureFvPatchScalarField {} -Foam::entrainmentPressureFvPatchScalarField:: -entrainmentPressureFvPatchScalarField -( - const entrainmentPressureFvPatchScalarField& tppsf -) -: - dynamicPressureFvPatchScalarField(tppsf), - phiName_(tppsf.phiName_) -{} - - Foam::entrainmentPressureFvPatchScalarField:: entrainmentPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.H index 19bc398766..ff56ba63f0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/entrainmentPressure/entrainmentPressureFvPatchScalarField.H @@ -131,20 +131,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference entrainmentPressureFvPatchScalarField ( const entrainmentPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new entrainmentPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference entrainmentPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C index 104d54ca84..2aeea63ced 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.C @@ -540,28 +540,6 @@ externalCoupledMixedFvPatchField } -template -Foam::externalCoupledMixedFvPatchField:: -externalCoupledMixedFvPatchField -( - const externalCoupledMixedFvPatchField& ecmpf -) -: - mixedFvPatchField(ecmpf), - commsDir_(ecmpf.commsDir_), - fName_(ecmpf.fName_), - waitInterval_(ecmpf.waitInterval_), - timeOut_(ecmpf.timeOut_), - calcFrequency_(ecmpf.calcFrequency_), - initByExternal_(ecmpf.initByExternal_), - log_(ecmpf.log_), - master_(ecmpf.master_), - offsets_(ecmpf.offsets_), - initialised_(ecmpf.initialised_), - coupledPatchIDs_(ecmpf.coupledPatchIDs_) -{} - - template Foam::externalCoupledMixedFvPatchField:: externalCoupledMixedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.H index 80dd2db99f..9aaca0df0a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/externalCoupledMixed/externalCoupledMixedFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -261,20 +261,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference externalCoupledMixedFvPatchField ( const externalCoupledMixedFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new externalCoupledMixedFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference externalCoupledMixedFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.C index d499ccb8e5..4b754be5ad 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.C @@ -92,17 +92,6 @@ Foam::fanPressureFvPatchScalarField::fanPressureFvPatchScalarField {} -Foam::fanPressureFvPatchScalarField::fanPressureFvPatchScalarField -( - const fanPressureFvPatchScalarField& pfopsf -) -: - totalPressureFvPatchScalarField(pfopsf), - fanCurve_(pfopsf.fanCurve_, false), - direction_(pfopsf.direction_) -{} - - Foam::fanPressureFvPatchScalarField::fanPressureFvPatchScalarField ( const fanPressureFvPatchScalarField& pfopsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H index e06b471956..649cf9b616 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fanPressure/fanPressureFvPatchScalarField.H @@ -170,20 +170,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fanPressureFvPatchScalarField ( const fanPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fanPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fanPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.C index 44e5ddf678..781f871491 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.C @@ -185,20 +185,6 @@ Foam::fanPressureJumpFvPatchScalarField::fanPressureJumpFvPatchScalarField {} -Foam::fanPressureJumpFvPatchScalarField::fanPressureJumpFvPatchScalarField -( - const fanPressureJumpFvPatchScalarField& ptf -) -: - fixedJumpFvPatchScalarField(ptf), - fanCurve_(ptf.fanCurve_, false), - jumpTable_(ptf.jumpTable_, false), - reverse_(ptf.reverse_), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_) -{} - - Foam::fanPressureJumpFvPatchScalarField::fanPressureJumpFvPatchScalarField ( const fanPressureJumpFvPatchScalarField& ptf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.H index 5145ed86d5..48e9d8640b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fanPressureJump/fanPressureJumpFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -160,20 +160,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fanPressureJumpFvPatchScalarField ( const fanPressureJumpFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fanPressureJumpFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fanPressureJumpFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.C index df27a7e369..fd24ff4b7a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -64,16 +64,6 @@ fixedFluxExtrapolatedPressureFvPatchScalarField {} -Foam::fixedFluxExtrapolatedPressureFvPatchScalarField:: -fixedFluxExtrapolatedPressureFvPatchScalarField -( - const fixedFluxExtrapolatedPressureFvPatchScalarField& wbppsf -) -: - fixedFluxPressureFvPatchScalarField(wbppsf) -{} - - Foam::fixedFluxExtrapolatedPressureFvPatchScalarField:: fixedFluxExtrapolatedPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.H index 96268e324b..ca875b7965 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxExtrapolatedPressure/fixedFluxExtrapolatedPressureFvPatchScalarField.H @@ -97,20 +97,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedFluxExtrapolatedPressureFvPatchScalarField ( const fixedFluxExtrapolatedPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedFluxExtrapolatedPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedFluxExtrapolatedPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C index c2d53e00c9..323725cb1a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -105,16 +105,6 @@ Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField } -Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField -( - const fixedFluxPressureFvPatchScalarField& wbppsf -) -: - fixedGradientFvPatchScalarField(wbppsf), - curTimeIndex_(-1) -{} - - Foam::fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField ( const fixedFluxPressureFvPatchScalarField& wbppsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.H index fc56899f99..f5eb6fd910 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -103,20 +103,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedFluxPressureFvPatchScalarField ( const fixedFluxPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedFluxPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedFluxPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.C index 566a021fa7..69f386a58c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -65,16 +65,6 @@ Foam::fixedInternalValueFvPatchField::fixedInternalValueFvPatchField {} -template -Foam::fixedInternalValueFvPatchField::fixedInternalValueFvPatchField -( - const fixedInternalValueFvPatchField& fivpf -) -: - zeroGradientFvPatchField(fivpf) -{} - - template Foam::fixedInternalValueFvPatchField::fixedInternalValueFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.H index f8196956cb..1d03ad23e2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedInternalValue/fixedInternalValueFvPatchField.H @@ -105,20 +105,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedInternalValueFvPatchField ( const fixedInternalValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedInternalValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedInternalValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C index af22c76a3b..a861b542f2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.C @@ -83,17 +83,6 @@ Foam::fixedJumpFvPatchField::fixedJumpFvPatchField } -template -Foam::fixedJumpFvPatchField::fixedJumpFvPatchField -( - const fixedJumpFvPatchField& ptf -) -: - jumpCyclicFvPatchField(ptf), - jump_(ptf.jump_) -{} - - template Foam::fixedJumpFvPatchField::fixedJumpFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.H index 271fd567a8..b78ac3999a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJump/fixedJumpFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -121,20 +121,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedJumpFvPatchField ( const fixedJumpFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedJumpFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedJumpFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C index b4feb9fc38..b7f6fbfeaf 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.C @@ -83,17 +83,6 @@ Foam::fixedJumpAMIFvPatchField::fixedJumpAMIFvPatchField } -template -Foam::fixedJumpAMIFvPatchField::fixedJumpAMIFvPatchField -( - const fixedJumpAMIFvPatchField& ptf -) -: - jumpCyclicAMIFvPatchField(ptf), - jump_(ptf.jump_) -{} - - template Foam::fixedJumpAMIFvPatchField::fixedJumpAMIFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.H index 20f292fc51..ac3e29213e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedJumpAMI/fixedJumpAMIFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -122,20 +122,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedJumpAMIFvPatchField ( const fixedJumpAMIFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedJumpAMIFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedJumpAMIFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.C index fc75ca77db..471766b0a9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,17 +67,6 @@ Foam::fixedMeanFvPatchField::fixedMeanFvPatchField {} -template -Foam::fixedMeanFvPatchField::fixedMeanFvPatchField -( - const fixedMeanFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - meanValue_(ptf.meanValue_, false) -{} - - template Foam::fixedMeanFvPatchField::fixedMeanFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.H index 8e5a43d029..997e24fbee 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedMean/fixedMeanFvPatchField.H @@ -112,20 +112,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - fixedMeanFvPatchField - ( - const fixedMeanFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedMeanFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + fixedMeanFvPatchField( const fixedMeanFvPatchField&) = delete; //- Copy constructor setting internal field reference fixedMeanFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.C index 0860b99e1a..52d4fc1cd1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2018-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,17 +79,6 @@ Foam::fixedMeanOutletInletFvPatchField::fixedMeanOutletInletFvPatchField {} -template -Foam::fixedMeanOutletInletFvPatchField::fixedMeanOutletInletFvPatchField -( - const fixedMeanOutletInletFvPatchField& ptf -) -: - outletInletFvPatchField(ptf), - meanValue_(ptf.meanValue_, false) -{} - - template Foam::fixedMeanOutletInletFvPatchField::fixedMeanOutletInletFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.H index 18fe2b86ee..7d1ee03676 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedMeanOutletInlet/fixedMeanOutletInletFvPatchField.H @@ -120,20 +120,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedMeanOutletInletFvPatchField ( const fixedMeanOutletInletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedMeanOutletInletFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedMeanOutletInletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C index b834ef160e..d9346938e8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2014-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2014-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -94,19 +94,6 @@ fixedNormalInletOutletVelocityFvPatchVectorField {} -Foam::fixedNormalInletOutletVelocityFvPatchVectorField:: -fixedNormalInletOutletVelocityFvPatchVectorField -( - const fixedNormalInletOutletVelocityFvPatchVectorField& pivpvf -) -: - directionMixedFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - fixTangentialInflow_(pivpvf.fixTangentialInflow_), - normalVelocity_(pivpvf.normalVelocity().clone()) -{} - - Foam::fixedNormalInletOutletVelocityFvPatchVectorField:: fixedNormalInletOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.H index 68a16dfe9b..8833d1baee 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalInletOutletVelocity/fixedNormalInletOutletVelocityFvPatchVectorField.H @@ -145,20 +145,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedNormalInletOutletVelocityFvPatchVectorField ( const fixedNormalInletOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedNormalInletOutletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedNormalInletOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C index 9c6c4d985a..57421873c9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -70,17 +70,6 @@ Foam::fixedNormalSlipFvPatchField::fixedNormalSlipFvPatchField } -template -Foam::fixedNormalSlipFvPatchField::fixedNormalSlipFvPatchField -( - const fixedNormalSlipFvPatchField& ptf -) -: - transformFvPatchField(ptf), - fixedValue_(ptf.fixedValue_) -{} - - template Foam::fixedNormalSlipFvPatchField::fixedNormalSlipFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.H index 6f329efd60..df50b8c836 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedNormalSlip/fixedNormalSlipFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -108,20 +108,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedNormalSlipFvPatchField ( const fixedNormalSlipFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedNormalSlipFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedNormalSlipFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.C index 3fb86edac8..a38d0adbc6 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -70,17 +70,6 @@ fixedPressureCompressibleDensityFvPatchScalarField {} -Foam::fixedPressureCompressibleDensityFvPatchScalarField:: -fixedPressureCompressibleDensityFvPatchScalarField -( - const fixedPressureCompressibleDensityFvPatchScalarField& ptf -) -: - fixedValueFvPatchField(ptf), - pName_(ptf.pName_) -{} - - Foam::fixedPressureCompressibleDensityFvPatchScalarField:: fixedPressureCompressibleDensityFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.H index d7e3e7ee2f..b4bd897c92 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedPressureCompressibleDensity/fixedPressureCompressibleDensityFvPatchScalarField.H @@ -127,20 +127,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedPressureCompressibleDensityFvPatchScalarField ( const fixedPressureCompressibleDensityFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedPressureCompressibleDensityFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedPressureCompressibleDensityFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C index 2b9b74e364..bec5c04161 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2015-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -103,19 +103,6 @@ Foam::fixedProfileFvPatchField::fixedProfileFvPatchField } -template -Foam::fixedProfileFvPatchField::fixedProfileFvPatchField -( - const fixedProfileFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - profile_(ptf.profile_, false), - origin_(ptf.origin_), - direction_(ptf.direction_) -{} - - template Foam::fixedProfileFvPatchField::fixedProfileFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H index f463bcb057..21e4209006 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H @@ -156,20 +156,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedProfileFvPatchField ( const fixedProfileFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedProfileFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedProfileFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C index 43ba196d78..846c7825b1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.C @@ -118,22 +118,6 @@ flowRateInletVelocityFvPatchVectorField {} -Foam::flowRateInletVelocityFvPatchVectorField:: -flowRateInletVelocityFvPatchVectorField -( - const flowRateInletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - flowRate_(ptf.flowRate_, false), - volumetric_(ptf.volumetric_), - rhoName_(ptf.rhoName_), - rhoInlet_(ptf.rhoInlet_), - alphaName_(ptf.alphaName_), - extrapolateProfile_(ptf.extrapolateProfile_) -{} - - Foam::flowRateInletVelocityFvPatchVectorField:: flowRateInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H index 4fcc747dc0..e80b0ac6f5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H @@ -181,20 +181,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference flowRateInletVelocityFvPatchVectorField ( const flowRateInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new flowRateInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference flowRateInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C index 86bf8ec690..59a16079ca 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -109,20 +109,6 @@ flowRateOutletVelocityFvPatchVectorField {} -Foam::flowRateOutletVelocityFvPatchVectorField:: -flowRateOutletVelocityFvPatchVectorField -( - const flowRateOutletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - flowRate_(ptf.flowRate_, false), - volumetric_(ptf.volumetric_), - rhoName_(ptf.rhoName_), - rhoOutlet_(ptf.rhoOutlet_) -{} - - Foam::flowRateOutletVelocityFvPatchVectorField:: flowRateOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H index 6966551753..43c7451adc 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/flowRateOutletVelocity/flowRateOutletVelocityFvPatchVectorField.H @@ -162,20 +162,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference flowRateOutletVelocityFvPatchVectorField ( const flowRateOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new flowRateOutletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference flowRateOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fluxCorrectedVelocity/fluxCorrectedVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/fluxCorrectedVelocity/fluxCorrectedVelocityFvPatchVectorField.H index 6b8cfe3ba9..86db8a1608 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fluxCorrectedVelocity/fluxCorrectedVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/fluxCorrectedVelocity/fluxCorrectedVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -135,15 +135,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fluxCorrectedVelocityFvPatchVectorField(*this) - ); - } - //- Construct as copy setting internal field reference fluxCorrectedVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.C index b70efe9dac..53c016068a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,16 +79,6 @@ Foam::freestreamFvPatchField::freestreamFvPatchField {} -template -Foam::freestreamFvPatchField::freestreamFvPatchField -( - const freestreamFvPatchField& ptf -) -: - inletOutletFvPatchField(ptf) -{} - - template Foam::freestreamFvPatchField::freestreamFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.H index 60da52e93c..39d6cb424e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestream/freestreamFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -107,20 +107,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference freestreamFvPatchField ( const freestreamFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new freestreamFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference freestreamFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.C index 9b7eed8b2f..d17cc4b5cb 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -91,18 +91,6 @@ freestreamPressureFvPatchScalarField {} -Foam::freestreamPressureFvPatchScalarField:: -freestreamPressureFvPatchScalarField -( - const freestreamPressureFvPatchScalarField& psf -) -: - mixedFvPatchScalarField(psf), - UName_(psf.UName_), - supersonic_(psf.supersonic_) -{} - - Foam::freestreamPressureFvPatchScalarField:: freestreamPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.H index d487952dec..94d2431fee 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestreamPressure/freestreamPressureFvPatchScalarField.H @@ -121,20 +121,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference freestreamPressureFvPatchScalarField ( const freestreamPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new freestreamPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference freestreamPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C index 8d3602be2e..a53755f253 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C @@ -78,15 +78,6 @@ Foam::freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField {} -Foam::freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField -( - const freestreamVelocityFvPatchVectorField& wbppsf -) -: - mixedFvPatchVectorField(wbppsf) -{} - - Foam::freestreamVelocityFvPatchVectorField::freestreamVelocityFvPatchVectorField ( const freestreamVelocityFvPatchVectorField& wbppsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.H index bdb5c6dde2..30d564e56e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.H @@ -111,20 +111,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference freestreamVelocityFvPatchVectorField ( const freestreamVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new freestreamVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference freestreamVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C index 811f018032..7079fc4d5a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -87,17 +87,6 @@ Foam::inletOutletFvPatchField::inletOutletFvPatchField } -template -Foam::inletOutletFvPatchField::inletOutletFvPatchField -( - const inletOutletFvPatchField& ptf -) -: - mixedFvPatchField(ptf), - phiName_(ptf.phiName_) -{} - - template Foam::inletOutletFvPatchField::inletOutletFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.H index 19cf871487..ab59a9b561 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/inletOutlet/inletOutletFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -124,20 +124,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - inletOutletFvPatchField - ( - const inletOutletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new inletOutletFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + inletOutletFvPatchField(const inletOutletFvPatchField&) = delete; //- Copy constructor setting internal field reference inletOutletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C index f9d3cced2b..3dab6b145e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -101,20 +101,6 @@ inletOutletTotalTemperatureFvPatchScalarField } -Foam::inletOutletTotalTemperatureFvPatchScalarField:: -inletOutletTotalTemperatureFvPatchScalarField -( - const inletOutletTotalTemperatureFvPatchScalarField& tppsf -) -: - inletOutletFvPatchScalarField(tppsf), - UName_(tppsf.UName_), - psiName_(tppsf.psiName_), - gamma_(tppsf.gamma_), - T0_(tppsf.T0_) -{} - - Foam::inletOutletTotalTemperatureFvPatchScalarField:: inletOutletTotalTemperatureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.H index 2c4fcab7b3..e445dd8034 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/inletOutletTotalTemperature/inletOutletTotalTemperatureFvPatchScalarField.H @@ -129,20 +129,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference inletOutletTotalTemperatureFvPatchScalarField ( const inletOutletTotalTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new inletOutletTotalTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference inletOutletTotalTemperatureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.C index fcda8bbbd3..274a09e092 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,16 +67,6 @@ interfaceCompressionFvPatchScalarField {} -Foam::interfaceCompressionFvPatchScalarField:: -interfaceCompressionFvPatchScalarField -( - const interfaceCompressionFvPatchScalarField& ptf -) -: - fixedValueFvPatchScalarField(ptf) -{} - - Foam::interfaceCompressionFvPatchScalarField:: interfaceCompressionFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.H index 506e6027a6..ba9614c5b0 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/interfaceCompression/interfaceCompressionFvPatchScalarField.H @@ -93,20 +93,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference interfaceCompressionFvPatchScalarField ( const interfaceCompressionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new interfaceCompressionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference interfaceCompressionFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.C index bbdd97c97e..9bdd1245f3 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -73,18 +73,6 @@ interstitialInletVelocityFvPatchVectorField {} -Foam::interstitialInletVelocityFvPatchVectorField:: -interstitialInletVelocityFvPatchVectorField -( - const interstitialInletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchVectorField(ptf), - inletVelocity_(ptf.inletVelocity_), - alphaName_(ptf.alphaName_) -{} - - Foam::interstitialInletVelocityFvPatchVectorField:: interstitialInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.H index fe64c67c1f..4556f02ea2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/interstitialInletVelocity/interstitialInletVelocityFvPatchVectorField.H @@ -104,20 +104,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference interstitialInletVelocityFvPatchVectorField ( const interstitialInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new interstitialInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference interstitialInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.C index c105343ace..99d572fecf 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -111,18 +111,6 @@ Foam::mappedFieldFvPatchField::mappedFieldFvPatchField {} -template -Foam::mappedFieldFvPatchField::mappedFieldFvPatchField -( - const mappedFieldFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - mappedPatchBase(ptf.patch().patch(), ptf), - mappedPatchFieldBase(ptf) -{} - - template Foam::mappedFieldFvPatchField::mappedFieldFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.H index bc4b28d307..3b46211943 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedFieldFvPatchField.H @@ -146,23 +146,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - mappedFieldFvPatchField - ( - const mappedFieldFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new mappedFieldFvPatchField - ( - *this - ) - ); - } + //- Disallow copy without setting internal field reference + mappedFieldFvPatchField(const mappedFieldFvPatchField&) = delete; //- Copy constructor setting internal field reference mappedFieldFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C index a630e05776..1e0e1dc971 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,17 +67,6 @@ mappedFixedInternalValueFvPatchField {} -template -Foam::mappedFixedInternalValueFvPatchField:: -mappedFixedInternalValueFvPatchField -( - const mappedFixedInternalValueFvPatchField& ptf -) -: - mappedFixedValueFvPatchField(ptf) -{} - - template Foam::mappedFixedInternalValueFvPatchField:: mappedFixedInternalValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.H index fb9b674426..2363deb3cd 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedInternalValue/mappedFixedInternalValueFvPatchField.H @@ -115,20 +115,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mappedFixedInternalValueFvPatchField ( const mappedFixedInternalValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new mappedFixedInternalValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mappedFixedInternalValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.C index e8d213adeb..5d6c72c70e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,17 +67,6 @@ Foam::mappedFixedValueFvPatchField::mappedFixedValueFvPatchField {} -template -Foam::mappedFixedValueFvPatchField::mappedFixedValueFvPatchField -( - const mappedFixedValueFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - mappedPatchFieldBase(ptf) -{} - - template Foam::mappedFixedValueFvPatchField::mappedFixedValueFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.H index 88e384cb77..119d6b0ab5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFixedValue/mappedFixedValueFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -142,20 +142,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mappedFixedValueFvPatchField ( const mappedFixedValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new mappedFixedValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mappedFixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.C index 4725d5e941..16a9807f48 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,18 +74,6 @@ Foam::mappedFlowRateFvPatchVectorField::mappedFlowRateFvPatchVectorField {} -Foam::mappedFlowRateFvPatchVectorField::mappedFlowRateFvPatchVectorField -( - const mappedFlowRateFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - nbrPhiName_(ptf.nbrPhiName_), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_) -{} - - Foam::mappedFlowRateFvPatchVectorField::mappedFlowRateFvPatchVectorField ( const mappedFlowRateFvPatchVectorField& ptf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.H index 1186ca47f8..ab154c5e9a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedFlowRate/mappedFlowRateFvPatchVectorField.H @@ -122,20 +122,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mappedFlowRateFvPatchVectorField ( const mappedFlowRateFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new mappedFlowRateFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mappedFlowRateFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.C index ae9ec01da7..6892a8c1b1 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -109,17 +109,6 @@ mappedVelocityFluxFixedValueFvPatchField } -Foam::mappedVelocityFluxFixedValueFvPatchField:: -mappedVelocityFluxFixedValueFvPatchField -( - const mappedVelocityFluxFixedValueFvPatchField& ptf -) -: - fixedValueFvPatchVectorField(ptf), - phiName_(ptf.phiName_) -{} - - Foam::mappedVelocityFluxFixedValueFvPatchField:: mappedVelocityFluxFixedValueFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.H index c61c060c53..fc9e4333b8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/mappedVelocityFluxFixedValue/mappedVelocityFluxFixedValueFvPatchField.H @@ -120,20 +120,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mappedVelocityFluxFixedValueFvPatchField ( const mappedVelocityFluxFixedValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new mappedVelocityFluxFixedValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mappedVelocityFluxFixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C index 79a5ddf5e1..62faa37154 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -96,19 +96,6 @@ matchedFlowRateOutletVelocityFvPatchVectorField {} -Foam::matchedFlowRateOutletVelocityFvPatchVectorField:: -matchedFlowRateOutletVelocityFvPatchVectorField -( - const matchedFlowRateOutletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - inletPatchName_(ptf.inletPatchName_), - volumetric_(ptf.volumetric_), - rhoName_(ptf.rhoName_) -{} - - Foam::matchedFlowRateOutletVelocityFvPatchVectorField:: matchedFlowRateOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.H index b8ab81729b..d18ef6c748 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.H @@ -130,20 +130,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference matchedFlowRateOutletVelocityFvPatchVectorField ( const matchedFlowRateOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new matchedFlowRateOutletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference matchedFlowRateOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.C index 9c6be841e9..5652ee3ea3 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,16 +67,6 @@ movingWallVelocityFvPatchVectorField {} -Foam::movingWallVelocityFvPatchVectorField:: -movingWallVelocityFvPatchVectorField -( - const movingWallVelocityFvPatchVectorField& mwvpvf -) -: - fixedValueFvPatchVectorField(mwvpvf) -{} - - Foam::movingWallVelocityFvPatchVectorField:: movingWallVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H index 9600c5d760..443dc88bfc 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/movingWallVelocity/movingWallVelocityFvPatchVectorField.H @@ -98,20 +98,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference movingWallVelocityFvPatchVectorField ( const movingWallVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new movingWallVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference movingWallVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.C index dc8bb4740c..107c28540a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,15 +67,6 @@ Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField } -Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField -( - const noSlipFvPatchVectorField& mwvpvf -) -: - fixedValueFvPatchVectorField(mwvpvf) -{} - - Foam::noSlipFvPatchVectorField::noSlipFvPatchVectorField ( const noSlipFvPatchVectorField& mwvpvf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.H index b7b95330f8..8cb31d60b6 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/noSlip/noSlipFvPatchVectorField.H @@ -96,20 +96,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference noSlipFvPatchVectorField ( const noSlipFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new noSlipFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference noSlipFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C index 803ca6497e..abdfd64984 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -87,17 +87,6 @@ Foam::outletInletFvPatchField::outletInletFvPatchField } -template -Foam::outletInletFvPatchField::outletInletFvPatchField -( - const outletInletFvPatchField& ptf -) -: - mixedFvPatchField(ptf), - phiName_(ptf.phiName_) -{} - - template Foam::outletInletFvPatchField::outletInletFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.H index 1e6a8940df..aaf207b390 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletInlet/outletInletFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -124,20 +124,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - outletInletFvPatchField - ( - const outletInletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new outletInletFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + outletInletFvPatchField(const outletInletFvPatchField&) = delete; //- Copy constructor setting internal field reference outletInletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.C index 28728bcfa8..dc1a42c4d4 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,20 +74,6 @@ outletMappedUniformInletFvPatchField {} -template -Foam::outletMappedUniformInletFvPatchField:: -outletMappedUniformInletFvPatchField -( - const outletMappedUniformInletFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - outletPatchName_(ptf.outletPatchName_), - phiName_(ptf.phiName_) -{} - - - template Foam::outletMappedUniformInletFvPatchField:: outletMappedUniformInletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.H index 0755bf699d..ad5be4c1bf 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletMappedUniformInlet/outletMappedUniformInletFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -116,20 +116,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference outletMappedUniformInletFvPatchField ( const outletMappedUniformInletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new outletMappedUniformInletFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference outletMappedUniformInletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.C index 8b7aa3bc12..ee461656ba 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,8 +31,8 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::outletPhaseMeanVelocityFvPatchVectorField -::outletPhaseMeanVelocityFvPatchVectorField +Foam::outletPhaseMeanVelocityFvPatchVectorField:: +outletPhaseMeanVelocityFvPatchVectorField ( const fvPatch& p, const DimensionedField& iF @@ -48,8 +48,8 @@ Foam::outletPhaseMeanVelocityFvPatchVectorField } -Foam::outletPhaseMeanVelocityFvPatchVectorField -::outletPhaseMeanVelocityFvPatchVectorField +Foam::outletPhaseMeanVelocityFvPatchVectorField:: +outletPhaseMeanVelocityFvPatchVectorField ( const outletPhaseMeanVelocityFvPatchVectorField& ptf, const fvPatch& p, @@ -63,8 +63,8 @@ Foam::outletPhaseMeanVelocityFvPatchVectorField {} -Foam::outletPhaseMeanVelocityFvPatchVectorField -::outletPhaseMeanVelocityFvPatchVectorField +Foam::outletPhaseMeanVelocityFvPatchVectorField:: +outletPhaseMeanVelocityFvPatchVectorField ( const fvPatch& p, const DimensionedField& iF, @@ -93,20 +93,8 @@ Foam::outletPhaseMeanVelocityFvPatchVectorField } -Foam::outletPhaseMeanVelocityFvPatchVectorField -::outletPhaseMeanVelocityFvPatchVectorField -( - const outletPhaseMeanVelocityFvPatchVectorField& ptf -) -: - mixedFvPatchField(ptf), - UnMean_(ptf.UnMean_, false), - alphaName_(ptf.alphaName_) -{} - - -Foam::outletPhaseMeanVelocityFvPatchVectorField -::outletPhaseMeanVelocityFvPatchVectorField +Foam::outletPhaseMeanVelocityFvPatchVectorField:: +outletPhaseMeanVelocityFvPatchVectorField ( const outletPhaseMeanVelocityFvPatchVectorField& ptf, const DimensionedField& iF diff --git a/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.H index 2db0270174..3ad8bb021f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/outletPhaseMeanVelocity/outletPhaseMeanVelocityFvPatchVectorField.H @@ -120,20 +120,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference outletPhaseMeanVelocityFvPatchVectorField ( const outletPhaseMeanVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new outletPhaseMeanVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference outletPhaseMeanVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.C index c9040f89b9..1fe5971c63 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,17 +69,6 @@ Foam::partialSlipFvPatchField::partialSlipFvPatchField } -template -Foam::partialSlipFvPatchField::partialSlipFvPatchField -( - const partialSlipFvPatchField& ptf -) -: - transformFvPatchField(ptf), - valueFraction_(ptf.valueFraction_) -{} - - template Foam::partialSlipFvPatchField::partialSlipFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.H index 8584f149c8..814493c4c3 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/partialSlip/partialSlipFvPatchField.H @@ -109,20 +109,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - partialSlipFvPatchField - ( - const partialSlipFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new partialSlipFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + partialSlipFvPatchField(const partialSlipFvPatchField&) = delete; //- Copy constructor setting internal field reference partialSlipFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C index 26ec4804af..ab8bdf8e75 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -101,17 +101,6 @@ phaseHydrostaticPressureFvPatchScalarField {} -Foam::phaseHydrostaticPressureFvPatchScalarField:: -phaseHydrostaticPressureFvPatchScalarField -( - const phaseHydrostaticPressureFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - phaseFraction_(ptf.phaseFraction_) -{} - - Foam::phaseHydrostaticPressureFvPatchScalarField:: phaseHydrostaticPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.H index 93a6cca07b..2fa922e8e7 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/phaseHydrostaticPressure/phaseHydrostaticPressureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -144,20 +144,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference phaseHydrostaticPressureFvPatchScalarField ( const phaseHydrostaticPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new phaseHydrostaticPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference phaseHydrostaticPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.C index c268fe260b..0f5ad95c5a 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -121,29 +121,6 @@ Foam::plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField {} -Foam::plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField -( - const plenumPressureFvPatchScalarField& tppsf -) -: - fixedValueFvPatchScalarField(tppsf), - gamma_(tppsf.gamma_), - R_(tppsf.R_), - supplyMassFlowRate_(tppsf.supplyMassFlowRate_), - supplyTotalTemperature_(tppsf.supplyTotalTemperature_), - plenumVolume_(tppsf.plenumVolume_), - plenumDensity_(tppsf.plenumDensity_), - plenumTemperature_(tppsf.plenumTemperature_), - rho_(tppsf.rho_), - hasRho_(tppsf.hasRho_), - inletAreaRatio_(tppsf.inletAreaRatio_), - inletDischargeCoefficient_(tppsf.inletDischargeCoefficient_), - timeScale_(tppsf.timeScale_), - phiName_(tppsf.phiName_), - UName_(tppsf.UName_) -{} - - Foam::plenumPressureFvPatchScalarField::plenumPressureFvPatchScalarField ( const plenumPressureFvPatchScalarField& tppsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.H index ec8d197bbd..8b78ad189c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/plenumPressure/plenumPressureFvPatchScalarField.H @@ -208,20 +208,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference plenumPressureFvPatchScalarField ( const plenumPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new plenumPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference plenumPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.C index 2e76472fea..46c4cc7f99 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2018-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,16 +79,6 @@ Foam::pressureFvPatchScalarField::pressureFvPatchScalarField {} -Foam::pressureFvPatchScalarField::pressureFvPatchScalarField -( - const pressureFvPatchScalarField& ptf -) -: - fixedValueFvPatchScalarField(ptf), - p_(ptf.p_) -{} - - Foam::pressureFvPatchScalarField::pressureFvPatchScalarField ( const pressureFvPatchScalarField& ptf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.H index 51840578ba..c9695e97ea 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressure/pressureFvPatchScalarField.H @@ -115,20 +115,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - pressureFvPatchScalarField - ( - const pressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureFvPatchScalarField(*this) - ); - } + //- Disallow copy without setting internal field reference + pressureFvPatchScalarField(const pressureFvPatchScalarField&) = delete; //- Copy constructor setting internal field reference pressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.C index 64655cb047..88d226d778 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,19 +85,6 @@ pressureDirectedInletOutletVelocityFvPatchVectorField } -Foam::pressureDirectedInletOutletVelocityFvPatchVectorField:: -pressureDirectedInletOutletVelocityFvPatchVectorField -( - const pressureDirectedInletOutletVelocityFvPatchVectorField& pivpvf -) -: - mixedFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - rhoName_(pivpvf.rhoName_), - inletDir_(pivpvf.inletDir_) -{} - - Foam::pressureDirectedInletOutletVelocityFvPatchVectorField:: pressureDirectedInletOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H index 9f3d57964a..956743fd15 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -129,23 +129,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureDirectedInletOutletVelocityFvPatchVectorField ( const pressureDirectedInletOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureDirectedInletOutletVelocityFvPatchVectorField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureDirectedInletOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.C index 5fc69b6487..abcb483a07 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -77,19 +77,6 @@ pressureDirectedInletVelocityFvPatchVectorField {} -Foam::pressureDirectedInletVelocityFvPatchVectorField:: -pressureDirectedInletVelocityFvPatchVectorField -( - const pressureDirectedInletVelocityFvPatchVectorField& pivpvf -) -: - fixedValueFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - rhoName_(pivpvf.rhoName_), - inletDir_(pivpvf.inletDir_) -{} - - Foam::pressureDirectedInletVelocityFvPatchVectorField:: pressureDirectedInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.H index 40955a3e4c..27b992b406 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletVelocity/pressureDirectedInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -128,20 +128,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureDirectedInletVelocityFvPatchVectorField ( const pressureDirectedInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureDirectedInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureDirectedInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.C index 5114040717..57f11dfba6 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,18 +83,6 @@ pressureInletOutletParSlipVelocityFvPatchVectorField } -Foam::pressureInletOutletParSlipVelocityFvPatchVectorField:: -pressureInletOutletParSlipVelocityFvPatchVectorField -( - const pressureInletOutletParSlipVelocityFvPatchVectorField& pivpvf -) -: - mixedFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - rhoName_(pivpvf.rhoName_) -{} - - Foam::pressureInletOutletParSlipVelocityFvPatchVectorField:: pressureInletOutletParSlipVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.H index 1dbb131d26..17befac102 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletParSlipVelocity/pressureInletOutletParSlipVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -125,23 +125,11 @@ public: const dictionary& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureInletOutletParSlipVelocityFvPatchVectorField ( const pressureInletOutletParSlipVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureInletOutletParSlipVelocityFvPatchVectorField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureInletOutletParSlipVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C index 8b97e3074e..e703a75ed6 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -87,18 +87,6 @@ pressureInletOutletVelocityFvPatchVectorField {} -Foam::pressureInletOutletVelocityFvPatchVectorField:: -pressureInletOutletVelocityFvPatchVectorField -( - const pressureInletOutletVelocityFvPatchVectorField& pivpvf -) -: - directionMixedFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - tangentialVelocity_(pivpvf.tangentialVelocity_, false) -{} - - Foam::pressureInletOutletVelocityFvPatchVectorField:: pressureInletOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.H index cbab2da9f2..0c2248cf69 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletOutletVelocity/pressureInletOutletVelocityFvPatchVectorField.H @@ -126,20 +126,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureInletOutletVelocityFvPatchVectorField ( const pressureInletOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureInletOutletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureInletOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C index ed544d39ad..f14a2296e8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,16 +66,6 @@ pressureInletUniformVelocityFvPatchVectorField {} -Foam::pressureInletUniformVelocityFvPatchVectorField:: -pressureInletUniformVelocityFvPatchVectorField -( - const pressureInletUniformVelocityFvPatchVectorField& pivpvf -) -: - pressureInletVelocityFvPatchVectorField(pivpvf) -{} - - Foam::pressureInletUniformVelocityFvPatchVectorField:: pressureInletUniformVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.H index a0268283fd..44b3428cb4 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletUniformVelocity/pressureInletUniformVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -97,20 +97,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureInletUniformVelocityFvPatchVectorField ( const pressureInletUniformVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureInletUniformVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureInletUniformVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.C index 14da410030..9ac2c2f0cc 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -72,18 +72,6 @@ pressureInletVelocityFvPatchVectorField {} -Foam::pressureInletVelocityFvPatchVectorField:: -pressureInletVelocityFvPatchVectorField -( - const pressureInletVelocityFvPatchVectorField& pivpvf -) -: - fixedValueFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - rhoName_(pivpvf.rhoName_) -{} - - Foam::pressureInletVelocityFvPatchVectorField:: pressureInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.H index 09c3194380..19964fa157 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureInletVelocity/pressureInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -115,20 +115,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureInletVelocityFvPatchVectorField ( const pressureInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.C index bd94dfba8e..4938935b00 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,18 +83,6 @@ pressureNormalInletOutletVelocityFvPatchVectorField } -Foam::pressureNormalInletOutletVelocityFvPatchVectorField:: -pressureNormalInletOutletVelocityFvPatchVectorField -( - const pressureNormalInletOutletVelocityFvPatchVectorField& pivpvf -) -: - mixedFvPatchVectorField(pivpvf), - phiName_(pivpvf.phiName_), - rhoName_(pivpvf.rhoName_) -{} - - Foam::pressureNormalInletOutletVelocityFvPatchVectorField:: pressureNormalInletOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.H index 65ad293a81..b5e912b865 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureNormalInletOutletVelocity/pressureNormalInletOutletVelocityFvPatchVectorField.H @@ -124,23 +124,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference pressureNormalInletOutletVelocityFvPatchVectorField ( const pressureNormalInletOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new pressureNormalInletOutletVelocityFvPatchVectorField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference pressureNormalInletOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.C index bcef61125e..5dae5cc676 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2016-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2016-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -80,20 +80,6 @@ prghTotalHydrostaticPressureFvPatchScalarField {} -Foam::prghTotalHydrostaticPressureFvPatchScalarField:: -prghTotalHydrostaticPressureFvPatchScalarField -( - const prghTotalHydrostaticPressureFvPatchScalarField& ptf -) -: - fixedValueFvPatchScalarField(ptf), - UName_(ptf.UName_), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_), - ph_rghName_(ptf.ph_rghName_) -{} - - Foam::prghTotalHydrostaticPressureFvPatchScalarField:: prghTotalHydrostaticPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.H index 83fb9bba90..e39e938a43 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/prghTotalHydrostaticPressure/prghTotalHydrostaticPressureFvPatchScalarField.H @@ -139,20 +139,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference prghTotalHydrostaticPressureFvPatchScalarField ( const prghTotalHydrostaticPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new prghTotalHydrostaticPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference prghTotalHydrostaticPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C index 34ec6b1e8d..ae0b80dff2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -92,19 +92,6 @@ rotatingPressureInletOutletVelocityFvPatchVectorField } -Foam::rotatingPressureInletOutletVelocityFvPatchVectorField:: -rotatingPressureInletOutletVelocityFvPatchVectorField -( - const rotatingPressureInletOutletVelocityFvPatchVectorField& rppvf -) -: - pressureInletOutletVelocityFvPatchVectorField(rppvf), - omega_(rppvf.omega_, false) -{ - calcTangentialVelocity(); -} - - Foam::rotatingPressureInletOutletVelocityFvPatchVectorField:: rotatingPressureInletOutletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H index f6902f06b2..755465b178 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingPressureInletOutletVelocity/rotatingPressureInletOutletVelocityFvPatchVectorField.H @@ -133,20 +133,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference rotatingPressureInletOutletVelocityFvPatchVectorField ( const rotatingPressureInletOutletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new rotatingPressureInletOutletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference rotatingPressureInletOutletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C index e89bc85dd5..972ef5a187 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.C @@ -70,17 +70,6 @@ rotatingTotalPressureFvPatchScalarField {} -Foam::rotatingTotalPressureFvPatchScalarField:: -rotatingTotalPressureFvPatchScalarField -( - const rotatingTotalPressureFvPatchScalarField& rtppsf -) -: - totalPressureFvPatchScalarField(rtppsf), - omega_(rtppsf.omega_, false) -{} - - Foam::rotatingTotalPressureFvPatchScalarField:: rotatingTotalPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H index 8d6c375c15..80b780942d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingTotalPressure/rotatingTotalPressureFvPatchScalarField.H @@ -125,20 +125,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference rotatingTotalPressureFvPatchScalarField ( const rotatingTotalPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new rotatingTotalPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference rotatingTotalPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C index 3700ff150d..ba5fa90203 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -88,19 +88,6 @@ rotatingWallVelocityFvPatchVectorField {} -Foam::rotatingWallVelocityFvPatchVectorField:: -rotatingWallVelocityFvPatchVectorField -( - const rotatingWallVelocityFvPatchVectorField& rwvpvf -) -: - fixedValueFvPatchField(rwvpvf), - origin_(rwvpvf.origin_), - axis_(rwvpvf.axis_), - omega_(rwvpvf.omega_, false) -{} - - Foam::rotatingWallVelocityFvPatchVectorField:: rotatingWallVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H index 0522323fc8..498eadc600 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/rotatingWallVelocity/rotatingWallVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -121,20 +121,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference rotatingWallVelocityFvPatchVectorField ( const rotatingWallVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new rotatingWallVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference rotatingWallVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.C index d89f1e7bd7..a481996799 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,14 +74,4 @@ Foam::slipFvPatchField::slipFvPatchField {} -template -Foam::slipFvPatchField::slipFvPatchField -( - const slipFvPatchField& ptf -) -: - basicSymmetryFvPatchField(ptf) -{} - - // ************************************************************************* // diff --git a/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.H index cdc47ae96a..3719fd363c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/slip/slipFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -93,20 +93,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - slipFvPatchField - ( - const slipFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new slipFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + slipFvPatchField(const slipFvPatchField&) = delete; //- Copy constructor setting internal field reference slipFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.C index c96acfa948..a00d826a71 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -119,23 +119,6 @@ supersonicFreestreamFvPatchVectorField {} -Foam::supersonicFreestreamFvPatchVectorField:: -supersonicFreestreamFvPatchVectorField -( - const supersonicFreestreamFvPatchVectorField& sfspvf -) -: - mixedFvPatchVectorField(sfspvf), - TName_(sfspvf.TName_), - pName_(sfspvf.pName_), - psiName_(sfspvf.psiName_), - UInf_(sfspvf.UInf_), - pInf_(sfspvf.pInf_), - TInf_(sfspvf.TInf_), - gamma_(sfspvf.gamma_) -{} - - Foam::supersonicFreestreamFvPatchVectorField:: supersonicFreestreamFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.H index bf461e935a..c00eee39d7 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/supersonicFreestream/supersonicFreestreamFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -142,20 +142,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference supersonicFreestreamFvPatchVectorField ( const supersonicFreestreamFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new supersonicFreestreamFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference supersonicFreestreamFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C index be36c16b21..a26a4852bd 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -78,17 +78,6 @@ surfaceNormalFixedValueFvPatchVectorField } -Foam::surfaceNormalFixedValueFvPatchVectorField:: -surfaceNormalFixedValueFvPatchVectorField -( - const surfaceNormalFixedValueFvPatchVectorField& pivpvf -) -: - fixedValueFvPatchVectorField(pivpvf), - refValue_(pivpvf.refValue_) -{} - - Foam::surfaceNormalFixedValueFvPatchVectorField:: surfaceNormalFixedValueFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H index 94d16dc90e..ec00b93b5f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalFixedValue/surfaceNormalFixedValueFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -115,20 +115,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference surfaceNormalFixedValueFvPatchVectorField ( const surfaceNormalFixedValueFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new surfaceNormalFixedValueFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference surfaceNormalFixedValueFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.C index c7117c4ef8..749e782374 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,17 +74,6 @@ surfaceNormalUniformFixedValueFvPatchVectorField } -Foam::surfaceNormalUniformFixedValueFvPatchVectorField:: -surfaceNormalUniformFixedValueFvPatchVectorField -( - const surfaceNormalUniformFixedValueFvPatchVectorField& pvf -) -: - fixedValueFvPatchVectorField(pvf), - uniformValue_(pvf.uniformValue_, false) -{} - - Foam::surfaceNormalUniformFixedValueFvPatchVectorField:: surfaceNormalUniformFixedValueFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.H index 946fb89bc1..f384340b55 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/surfaceNormalUniformFixedValue/surfaceNormalUniformFixedValueFvPatchVectorField.H @@ -115,20 +115,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference surfaceNormalUniformFixedValueFvPatchVectorField ( const surfaceNormalUniformFixedValueFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new surfaceNormalUniformFixedValueFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference surfaceNormalUniformFixedValueFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C index c1cd5958c3..468d1fb685 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -104,22 +104,6 @@ swirlFlowRateInletVelocityFvPatchVectorField {} -Foam::swirlFlowRateInletVelocityFvPatchVectorField:: -swirlFlowRateInletVelocityFvPatchVectorField -( - const swirlFlowRateInletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_), - origin_(ptf.origin_), - axis_(ptf.axis_), - flowRate_(ptf.flowRate_, false), - rpm_(ptf.rpm_, false) -{} - - Foam::swirlFlowRateInletVelocityFvPatchVectorField:: swirlFlowRateInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H index a68461e4b1..cdaebfa6a8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlFlowRateInletVelocity/swirlFlowRateInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -143,20 +143,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference swirlFlowRateInletVelocityFvPatchVectorField ( const swirlFlowRateInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new swirlFlowRateInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference swirlFlowRateInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C index 34fb7bb7bb..4ae9050f91 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -79,21 +79,6 @@ swirlInletVelocityFvPatchVectorField {} -Foam::swirlInletVelocityFvPatchVectorField:: -swirlInletVelocityFvPatchVectorField -( - const swirlInletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - origin_(ptf.origin_), - axis_(ptf.axis_), - axialVelocity_(ptf.axialVelocity_, false), - radialVelocity_(ptf.radialVelocity_, false), - tangentialVelocity_(ptf.tangentialVelocity_, false) -{} - - Foam::swirlInletVelocityFvPatchVectorField:: swirlInletVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.H index b4cc93037c..de94529d4d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.H @@ -136,20 +136,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference swirlInletVelocityFvPatchVectorField ( const swirlInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new swirlInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference swirlInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.C index f60f93b869..69ee0cdca2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -118,28 +118,6 @@ Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField {} -Foam::syringePressureFvPatchScalarField::syringePressureFvPatchScalarField -( - const syringePressureFvPatchScalarField& sppsf -) -: - fixedValueFvPatchScalarField(sppsf), - Ap_(sppsf.Ap_), - Sp_(sppsf.Sp_), - VsI_(sppsf.VsI_), - tas_(sppsf.tas_), - tae_(sppsf.tae_), - tds_(sppsf.tds_), - tde_(sppsf.tde_), - psI_(sppsf.psI_), - psi_(sppsf.psi_), - ams_(sppsf.ams_), - ams0_(sppsf.ams0_), - phiName_(sppsf.phiName_), - curTimeIndex_(-1) -{} - - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // Foam::scalar Foam::syringePressureFvPatchScalarField::Vs(const scalar t) const diff --git a/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.H index 7b64291172..2da47f271f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/syringePressure/syringePressureFvPatchScalarField.H @@ -175,20 +175,11 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new syringePressureFvPatchScalarField(*this) - ); - } - - //- Copy constructor + //- Disallow copy without setting internal field reference syringePressureFvPatchScalarField ( const syringePressureFvPatchScalarField& - ); + ) = delete; //- Copy constructor setting internal field reference syringePressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C index 655e4b7e84..1865caed60 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,18 +83,6 @@ timeVaryingMappedFixedValueFvPatchField {} -template -Foam::timeVaryingMappedFixedValueFvPatchField:: -timeVaryingMappedFixedValueFvPatchField -( - const timeVaryingMappedFixedValueFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - fieldMapper_(ptf.fieldMapper_) -{} - - template Foam::timeVaryingMappedFixedValueFvPatchField:: timeVaryingMappedFixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H index 1b618ad6e5..242b7e4472 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.H @@ -155,20 +155,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference timeVaryingMappedFixedValueFvPatchField ( const timeVaryingMappedFixedValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new timeVaryingMappedFixedValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference timeVaryingMappedFixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C index 5f469f5040..2380559c5c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.C @@ -70,17 +70,6 @@ Foam::totalPressureFvPatchScalarField::totalPressureFvPatchScalarField {} -Foam::totalPressureFvPatchScalarField::totalPressureFvPatchScalarField -( - const totalPressureFvPatchScalarField& tppsf -) -: - dynamicPressureFvPatchScalarField(tppsf), - UName_(tppsf.UName_), - phiName_(tppsf.phiName_) -{} - - Foam::totalPressureFvPatchScalarField::totalPressureFvPatchScalarField ( const totalPressureFvPatchScalarField& tppsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.H index a1c328e847..b652811c85 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/totalPressure/totalPressureFvPatchScalarField.H @@ -179,20 +179,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference totalPressureFvPatchScalarField ( const totalPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new totalPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference totalPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.C index 04820ef8c7..5cdcc8cb0f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -91,20 +91,6 @@ Foam::totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField } -Foam::totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField -( - const totalTemperatureFvPatchScalarField& tppsf -) -: - fixedValueFvPatchScalarField(tppsf), - UName_(tppsf.UName_), - phiName_(tppsf.phiName_), - psiName_(tppsf.psiName_), - gamma_(tppsf.gamma_), - T0_(tppsf.T0_) -{} - - Foam::totalTemperatureFvPatchScalarField::totalTemperatureFvPatchScalarField ( const totalTemperatureFvPatchScalarField& tppsf, diff --git a/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.H index 882eaba843..6990522100 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/totalTemperature/totalTemperatureFvPatchScalarField.H @@ -123,20 +123,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference totalTemperatureFvPatchScalarField ( const totalTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new totalTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference totalTemperatureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.C index b7b7ce1380..df2ad484ab 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,17 +71,6 @@ translatingWallVelocityFvPatchVectorField {} -Foam::translatingWallVelocityFvPatchVectorField:: -translatingWallVelocityFvPatchVectorField -( - const translatingWallVelocityFvPatchVectorField& twvpvf -) -: - fixedValueFvPatchField(twvpvf), - U_(twvpvf.U_, false) -{} - - Foam::translatingWallVelocityFvPatchVectorField:: translatingWallVelocityFvPatchVectorField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.H index 113c3a634c..32490457ef 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/translatingWallVelocity/translatingWallVelocityFvPatchVectorField.H @@ -113,20 +113,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference translatingWallVelocityFvPatchVectorField ( const translatingWallVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new translatingWallVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference translatingWallVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C index 5a378a5eb5..0278c4d1db 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -90,21 +90,6 @@ Foam::turbulentInletFvPatchField::turbulentInletFvPatchField {} -template -Foam::turbulentInletFvPatchField::turbulentInletFvPatchField -( - const turbulentInletFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - ranGen_(ptf.ranGen_), - fluctuationScale_(ptf.fluctuationScale_), - referenceField_(ptf.referenceField_), - alpha_(ptf.alpha_), - curTimeIndex_(-1) -{} - - template Foam::turbulentInletFvPatchField::turbulentInletFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.H index ecee6e01c0..abaa9ef272 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentInlet/turbulentInletFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -141,20 +141,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference turbulentInletFvPatchField ( const turbulentInletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new turbulentInletFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference turbulentInletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C index 24ccbb5137..3eb21c0c78 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -94,17 +94,6 @@ turbulentIntensityKineticEnergyInletFvPatchScalarField this->valueFraction() = 0.0; } -Foam::turbulentIntensityKineticEnergyInletFvPatchScalarField:: -turbulentIntensityKineticEnergyInletFvPatchScalarField -( - const turbulentIntensityKineticEnergyInletFvPatchScalarField& ptf -) -: - inletOutletFvPatchScalarField(ptf), - intensity_(ptf.intensity_), - UName_(ptf.UName_) -{} - Foam::turbulentIntensityKineticEnergyInletFvPatchScalarField:: turbulentIntensityKineticEnergyInletFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.H index 61e8e33ead..a3f537145d 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -130,23 +130,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference turbulentIntensityKineticEnergyInletFvPatchScalarField ( const turbulentIntensityKineticEnergyInletFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new turbulentIntensityKineticEnergyInletFvPatchScalarField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference turbulentIntensityKineticEnergyInletFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.C index 52bdee901a..64ddb0abbb 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -92,20 +92,6 @@ uniformDensityHydrostaticPressureFvPatchScalarField {} -Foam::uniformDensityHydrostaticPressureFvPatchScalarField:: -uniformDensityHydrostaticPressureFvPatchScalarField -( - const uniformDensityHydrostaticPressureFvPatchScalarField& ptf -) -: - fixedValueFvPatchScalarField(ptf), - rho_(ptf.rho_), - pRef_(ptf.pRef_), - pRefPointSpecified_(ptf.pRefPointSpecified_), - pRefPoint_(ptf.pRefPoint_) -{} - - Foam::uniformDensityHydrostaticPressureFvPatchScalarField:: uniformDensityHydrostaticPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.H index f25ab11d23..0a727dee28 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformDensityHydrostaticPressure/uniformDensityHydrostaticPressureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -132,20 +132,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformDensityHydrostaticPressureFvPatchScalarField ( const uniformDensityHydrostaticPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new uniformDensityHydrostaticPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformDensityHydrostaticPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C index a5cb26fa86..f45f8828a8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -81,17 +81,6 @@ Foam::uniformFixedGradientFvPatchField::uniformFixedGradientFvPatchField {} -template -Foam::uniformFixedGradientFvPatchField::uniformFixedGradientFvPatchField -( - const uniformFixedGradientFvPatchField& ptf -) -: - fixedGradientFvPatchField(ptf), - uniformGradient_(ptf.uniformGradient_, false) -{} - - template Foam::uniformFixedGradientFvPatchField::uniformFixedGradientFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H index a3483083d6..cd6f0434d4 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedGradient/uniformFixedGradientFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -123,20 +123,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformFixedGradientFvPatchField ( const uniformFixedGradientFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new uniformFixedGradientFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformFixedGradientFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C index d7ed3f534a..8ee8abcea6 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -84,17 +84,6 @@ Foam::uniformFixedValueFvPatchField::uniformFixedValueFvPatchField } -template -Foam::uniformFixedValueFvPatchField::uniformFixedValueFvPatchField -( - const uniformFixedValueFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf), - uniformValue_(ptf.uniformValue_, false) -{} - - template Foam::uniformFixedValueFvPatchField::uniformFixedValueFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H index a56dda41fd..cfaf1dfe72 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -122,20 +122,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformFixedValueFvPatchField ( const uniformFixedValueFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new uniformFixedValueFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformFixedValueFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C index 93fdef1e20..af9dbb6e46 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -104,18 +104,6 @@ Foam::uniformInletOutletFvPatchField::uniformInletOutletFvPatchField } -template -Foam::uniformInletOutletFvPatchField::uniformInletOutletFvPatchField -( - const uniformInletOutletFvPatchField& ptf -) -: - mixedFvPatchField(ptf), - phiName_(ptf.phiName_), - uniformInletValue_(ptf.uniformInletValue_, false) -{} - - template Foam::uniformInletOutletFvPatchField::uniformInletOutletFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H index dc0003318f..7c3a0e01b5 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.H @@ -127,20 +127,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformInletOutletFvPatchField ( const uniformInletOutletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new uniformInletOutletFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformInletOutletFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C index 47752f2871..42e25d8914 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,17 +83,6 @@ Foam::uniformJumpFvPatchField::uniformJumpFvPatchField } -template -Foam::uniformJumpFvPatchField::uniformJumpFvPatchField -( - const uniformJumpFvPatchField& ptf -) -: - fixedJumpFvPatchField(ptf), - jumpTable_(ptf.jumpTable_, false) -{} - - template Foam::uniformJumpFvPatchField::uniformJumpFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H index d9c817a74b..e9b6ac74be 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJump/uniformJumpFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -125,20 +125,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - uniformJumpFvPatchField - ( - const uniformJumpFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new uniformJumpFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + uniformJumpFvPatchField(const uniformJumpFvPatchField&) = delete; //- Copy constructor setting internal field reference uniformJumpFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C index bb13d58b0c..0f983bf1f2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -80,17 +80,6 @@ Foam::uniformJumpAMIFvPatchField::uniformJumpAMIFvPatchField } -template -Foam::uniformJumpAMIFvPatchField::uniformJumpAMIFvPatchField -( - const uniformJumpAMIFvPatchField& ptf -) -: - fixedJumpAMIFvPatchField(ptf), - jumpTable_(ptf.jumpTable_, false) -{} - - template Foam::uniformJumpAMIFvPatchField::uniformJumpAMIFvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H index 797b262175..c48218553e 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformJumpAMI/uniformJumpAMIFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -125,20 +125,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformJumpAMIFvPatchField ( const uniformJumpAMIFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new uniformJumpAMIFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformJumpAMIFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C index 824c3f2ef0..159bc4cd8f 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -105,22 +105,6 @@ uniformTotalPressureFvPatchScalarField } -Foam::uniformTotalPressureFvPatchScalarField:: -uniformTotalPressureFvPatchScalarField -( - const uniformTotalPressureFvPatchScalarField& ptf -) -: - fixedValueFvPatchScalarField(ptf), - UName_(ptf.UName_), - phiName_(ptf.phiName_), - rhoName_(ptf.rhoName_), - psiName_(ptf.psiName_), - gamma_(ptf.gamma_), - p0_(ptf.p0_, false) -{} - - Foam::uniformTotalPressureFvPatchScalarField:: uniformTotalPressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H index 5483371598..31717877ea 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformTotalPressure/uniformTotalPressureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -134,20 +134,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference uniformTotalPressureFvPatchScalarField ( const uniformTotalPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new uniformTotalPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference uniformTotalPressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.C index e5162ac409..7ca05f58f3 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,8 +31,8 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::variableHeightFlowRateFvPatchScalarField -::variableHeightFlowRateFvPatchScalarField +Foam::variableHeightFlowRateFvPatchScalarField:: +variableHeightFlowRateFvPatchScalarField ( const fvPatch& p, const DimensionedField& iF @@ -49,8 +49,8 @@ Foam::variableHeightFlowRateFvPatchScalarField } -Foam::variableHeightFlowRateFvPatchScalarField -::variableHeightFlowRateFvPatchScalarField +Foam::variableHeightFlowRateFvPatchScalarField:: +variableHeightFlowRateFvPatchScalarField ( const variableHeightFlowRateFvPatchScalarField& ptf, const fvPatch& p, @@ -65,8 +65,8 @@ Foam::variableHeightFlowRateFvPatchScalarField {} -Foam::variableHeightFlowRateFvPatchScalarField -::variableHeightFlowRateFvPatchScalarField +Foam::variableHeightFlowRateFvPatchScalarField:: +variableHeightFlowRateFvPatchScalarField ( const fvPatch& p, const DimensionedField& iF, @@ -97,21 +97,8 @@ Foam::variableHeightFlowRateFvPatchScalarField } -Foam::variableHeightFlowRateFvPatchScalarField - ::variableHeightFlowRateFvPatchScalarField -( - const variableHeightFlowRateFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - phiName_(ptf.phiName_), - lowerBound_(ptf.lowerBound_), - upperBound_(ptf.upperBound_) -{} - - -Foam::variableHeightFlowRateFvPatchScalarField - ::variableHeightFlowRateFvPatchScalarField +Foam::variableHeightFlowRateFvPatchScalarField:: +variableHeightFlowRateFvPatchScalarField ( const variableHeightFlowRateFvPatchScalarField& ptf, const DimensionedField& iF @@ -193,4 +180,5 @@ namespace Foam ); } + // ************************************************************************* // diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.H index 8127a49a37..23744c5b93 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRate/variableHeightFlowRateFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -128,20 +128,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference variableHeightFlowRateFvPatchScalarField ( const variableHeightFlowRateFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new variableHeightFlowRateFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference variableHeightFlowRateFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C index f02c6cd22a..01c6f3c595 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -29,8 +29,8 @@ License // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -Foam::variableHeightFlowRateInletVelocityFvPatchVectorField -::variableHeightFlowRateInletVelocityFvPatchVectorField +Foam::variableHeightFlowRateInletVelocityFvPatchVectorField:: +variableHeightFlowRateInletVelocityFvPatchVectorField ( const fvPatch& p, const DimensionedField& iF @@ -42,8 +42,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField {} -Foam::variableHeightFlowRateInletVelocityFvPatchVectorField -::variableHeightFlowRateInletVelocityFvPatchVectorField +Foam::variableHeightFlowRateInletVelocityFvPatchVectorField:: +variableHeightFlowRateInletVelocityFvPatchVectorField ( const fvPatch& p, const DimensionedField& iF, @@ -56,8 +56,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField {} -Foam::variableHeightFlowRateInletVelocityFvPatchVectorField -::variableHeightFlowRateInletVelocityFvPatchVectorField +Foam::variableHeightFlowRateInletVelocityFvPatchVectorField:: +variableHeightFlowRateInletVelocityFvPatchVectorField ( const variableHeightFlowRateInletVelocityFvPatchVectorField& ptf, const fvPatch& p, @@ -71,20 +71,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField {} -Foam::variableHeightFlowRateInletVelocityFvPatchVectorField -::variableHeightFlowRateInletVelocityFvPatchVectorField -( - const variableHeightFlowRateInletVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchField(ptf), - flowRate_(ptf.flowRate_, false), - alphaName_(ptf.alphaName_) -{} - - -Foam::variableHeightFlowRateInletVelocityFvPatchVectorField -::variableHeightFlowRateInletVelocityFvPatchVectorField +Foam::variableHeightFlowRateInletVelocityFvPatchVectorField:: +variableHeightFlowRateInletVelocityFvPatchVectorField ( const variableHeightFlowRateInletVelocityFvPatchVectorField& ptf, const DimensionedField& iF @@ -98,8 +86,8 @@ Foam::variableHeightFlowRateInletVelocityFvPatchVectorField // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // -void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField -::updateCoeffs() +void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField:: +updateCoeffs() { if (updated()) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H index 05a5fbff29..f17c433463 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -127,20 +127,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference variableHeightFlowRateInletVelocityFvPatchVectorField ( const variableHeightFlowRateInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new variableHeightFlowRateInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference variableHeightFlowRateInletVelocityFvPatchVectorField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C b/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C index 57ea63f06f..1129f85fd8 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -105,19 +105,6 @@ waveSurfacePressureFvPatchScalarField {} -Foam::waveSurfacePressureFvPatchScalarField:: -waveSurfacePressureFvPatchScalarField -( - const waveSurfacePressureFvPatchScalarField& wspsf -) -: - fixedValueFvPatchScalarField(wspsf), - phiName_(wspsf.phiName_), - zetaName_(wspsf.zetaName_), - rhoName_(wspsf.rhoName_) -{} - - Foam::waveSurfacePressureFvPatchScalarField:: waveSurfacePressureFvPatchScalarField ( diff --git a/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.H b/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.H index bb627510e1..a3eb678682 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -154,20 +154,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference waveSurfacePressureFvPatchScalarField ( const waveSurfacePressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new waveSurfacePressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference waveSurfacePressureFvPatchScalarField diff --git a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.C index e636592f64..9fcf26e07c 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,18 +75,6 @@ Foam::waveTransmissiveFvPatchField::waveTransmissiveFvPatchField {} -template -Foam::waveTransmissiveFvPatchField::waveTransmissiveFvPatchField -( - const waveTransmissiveFvPatchField& ptpsf -) -: - advectiveFvPatchField(ptpsf), - psiName_(ptpsf.psiName_), - gamma_(ptpsf.gamma_) -{} - - template Foam::waveTransmissiveFvPatchField::waveTransmissiveFvPatchField ( @@ -114,9 +102,11 @@ Foam::waveTransmissiveFvPatchField::advectionSpeed() const const surfaceScalarField& phi = this->db().template lookupObject(this->phiName_); - fvsPatchField phip = + scalarField phip + ( this->patch().template - lookupPatchField(this->phiName_); + lookupPatchField(this->phiName_) + ); if (phi.dimensions() == dimDensity*dimVelocity*dimArea) { diff --git a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H index a59c51557c..8653b1e0ea 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/waveTransmissive/waveTransmissiveFvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -135,20 +135,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference waveTransmissiveFvPatchField ( const waveTransmissiveFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new waveTransmissiveFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference waveTransmissiveFvPatchField diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C index 21f56ee39f..66ffa93917 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -130,21 +130,6 @@ Foam::fvPatchField::fvPatchField } -template -Foam::fvPatchField::fvPatchField -( - const fvPatchField& ptf -) -: - Field(ptf), - patch_(ptf.patch_), - internalField_(ptf.internalField_), - updated_(false), - manipulatedMatrix_(false), - patchType_(ptf.patchType_) -{} - - template Foam::fvPatchField::fvPatchField ( diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H index dae76ec6ce..f3a0a3f3b3 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/fvPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -198,13 +198,14 @@ public: const bool mappingRequired=true ); - //- Copy constructor - fvPatchField(const fvPatchField&); + //- Disallow copy without setting internal field reference + fvPatchField(const fvPatchField&) = delete; - //- Construct and return a clone - virtual tmp> clone() const + //- Disallow clone without setting internal field reference + tmp> clone() const { - return tmp>(new fvPatchField(*this)); + NotImplemented; + return tmp>(nullptr); } //- Copy constructor setting internal field reference diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.C index 0025d6a3d9..d0f37064ed 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -72,16 +72,6 @@ Foam::calculatedFvsPatchField::calculatedFvsPatchField {} -template -Foam::calculatedFvsPatchField::calculatedFvsPatchField -( - const calculatedFvsPatchField& ptf -) -: - fvsPatchField(ptf) -{} - - template Foam::calculatedFvsPatchField::calculatedFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.H index f18fc7b82e..45aec3d0ae 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/basic/calculated/calculatedFvsPatchField.H @@ -84,20 +84,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - calculatedFvsPatchField - ( - const calculatedFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new calculatedFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + calculatedFvsPatchField(const calculatedFvsPatchField&) = delete; //- Copy constructor setting internal field reference calculatedFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.C index f7f83661c6..b30a66db67 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,16 +75,6 @@ Foam::coupledFvsPatchField::coupledFvsPatchField {} -template -Foam::coupledFvsPatchField::coupledFvsPatchField -( - const coupledFvsPatchField& ptf -) -: - fvsPatchField(ptf) -{} - - template Foam::coupledFvsPatchField::coupledFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.H index 48977fbea7..93dadce73d 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/basic/coupled/coupledFvsPatchField.H @@ -93,14 +93,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - coupledFvsPatchField - ( - const coupledFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const = 0; + //- Disallow copy without setting internal field reference + coupledFvsPatchField(const coupledFvsPatchField&) = delete; //- Copy constructor setting internal field reference coupledFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.C index f6f92dacc2..3c3734247b 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,16 +63,6 @@ Foam::fixedValueFvsPatchField::fixedValueFvsPatchField {} -template -Foam::fixedValueFvsPatchField::fixedValueFvsPatchField -( - const fixedValueFvsPatchField& ptf -) -: - fvsPatchField(ptf) -{} - - template Foam::fixedValueFvsPatchField::fixedValueFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.H index e073d1e7e3..20949f1c35 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/basic/fixedValue/fixedValueFvsPatchField.H @@ -85,20 +85,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedValueFvsPatchField ( const fixedValueFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new fixedValueFvsPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedValueFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.C index 0b742de5a6..a2ac047943 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.C @@ -71,35 +71,6 @@ Foam::slicedFvsPatchField::slicedFvsPatchField } -template -Foam::tmp> -Foam::slicedFvsPatchField::clone() const -{ - return tmp> - ( - new slicedFvsPatchField(*this) - ); -} - - -template -Foam::slicedFvsPatchField::slicedFvsPatchField -( - const slicedFvsPatchField& ptf -) -: - fvsPatchField - ( - ptf.patch(), - ptf.internalField(), - Field() - ) -{ - // Transfer the slice from the argument - UList::shallowCopy(ptf); -} - - template Foam::tmp> Foam::slicedFvsPatchField::clone diff --git a/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.H index d5239b3bef..f2cb477b5c 100644 --- a/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/basic/sliced/slicedFvsPatchField.H @@ -82,11 +82,8 @@ public: const fvsPatchField& pf ); - //- Copy constructor - slicedFvsPatchField(const slicedFvsPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const; + //- Disallow copy without setting internal field reference + slicedFvsPatchField(const slicedFvsPatchField&) = delete; //- Copy constructor setting internal field reference slicedFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.C index 7f39358e07..1606409053 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,17 +86,6 @@ Foam::cyclicFvsPatchField::cyclicFvsPatchField } -template -Foam::cyclicFvsPatchField::cyclicFvsPatchField -( - const cyclicFvsPatchField& ptf -) -: - coupledFvsPatchField(ptf), - cyclicPatch_(ptf.cyclicPatch_) -{} - - template Foam::cyclicFvsPatchField::cyclicFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.H index c094d9f017..b73e244ae3 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclic/cyclicFvsPatchField.H @@ -90,20 +90,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cyclicFvsPatchField - ( - const cyclicFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cyclicFvsPatchField(const cyclicFvsPatchField&) = delete; //- Copy constructor setting internal field reference cyclicFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicACMI/cyclicACMIFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicACMI/cyclicACMIFvsPatchField.H index 731a7d8725..3bb6fddad5 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicACMI/cyclicACMIFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicACMI/cyclicACMIFvsPatchField.H @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,15 +63,6 @@ public: //- Inherit parent constructors using cyclicAMIFvsPatchField::cyclicAMIFvsPatchField; - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicACMIFvsPatchField(*this) - ); - } - //- Construct and return a clone setting internal field reference virtual tmp> clone ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.C index 8312c573c3..07a2cc46d8 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,17 +86,6 @@ Foam::cyclicAMIFvsPatchField::cyclicAMIFvsPatchField } -template -Foam::cyclicAMIFvsPatchField::cyclicAMIFvsPatchField -( - const cyclicAMIFvsPatchField& ptf -) -: - coupledFvsPatchField(ptf), - cyclicAMIPatch_(ptf.cyclicAMIPatch_) -{} - - template Foam::cyclicAMIFvsPatchField::cyclicAMIFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.H index e29300309a..8cd9f2b863 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicAMI/cyclicAMIFvsPatchField.H @@ -90,20 +90,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cyclicAMIFvsPatchField - ( - const cyclicAMIFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicAMIFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cyclicAMIFvsPatchField(const cyclicAMIFvsPatchField&) = delete; //- Copy constructor setting internal field reference cyclicAMIFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvsPatchField.H index 52c915c58d..39a9d4face 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicRepeatAMI/cyclicRepeatAMIFvsPatchField.H @@ -63,15 +63,6 @@ public: //- Inherit parent constructors using cyclicAMIFvsPatchField::cyclicAMIFvsPatchField; - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicRepeatAMIFvsPatchField(*this) - ); - } - //- Construct and return a clone setting internal field reference virtual tmp> clone ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.C index 5756fe14d7..5c4784f117 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,16 +63,6 @@ Foam::cyclicSlipFvsPatchField::cyclicSlipFvsPatchField {} -template -Foam::cyclicSlipFvsPatchField::cyclicSlipFvsPatchField -( - const cyclicSlipFvsPatchField& ptf -) -: - cyclicFvsPatchField(ptf) -{} - - template Foam::cyclicSlipFvsPatchField::cyclicSlipFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.H index a96bab82c7..2f9ccd8e45 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/cyclicSlip/cyclicSlipFvsPatchField.H @@ -85,20 +85,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cyclicSlipFvsPatchField - ( - const cyclicSlipFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cyclicSlipFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cyclicSlipFvsPatchField(const cyclicSlipFvsPatchField&) = delete; //- Copy constructor setting internal field reference cyclicSlipFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.C index c6df73ad37..abd36b1e86 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -85,21 +85,6 @@ Foam::emptyFvsPatchField::emptyFvsPatchField } -template -Foam::emptyFvsPatchField::emptyFvsPatchField -( - const emptyFvsPatchField& ptf -) -: - fvsPatchField - ( - ptf.patch(), - ptf.internalField(), - Field(0) - ) -{} - - template Foam::emptyFvsPatchField::emptyFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.H index 2c53f02f4b..87d89cf335 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/empty/emptyFvsPatchField.H @@ -85,20 +85,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - emptyFvsPatchField - ( - const emptyFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new emptyFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + emptyFvsPatchField(const emptyFvsPatchField&) = delete; //- Copy constructor setting internal field reference emptyFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.C index 7bb0131f95..599f457b7c 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -99,17 +99,6 @@ Foam::processorFvsPatchField::processorFvsPatchField } -template -Foam::processorFvsPatchField::processorFvsPatchField -( - const processorFvsPatchField& ptf -) -: - coupledFvsPatchField(ptf), - procPatch_(refCast(ptf.patch())) -{} - - template Foam::processorFvsPatchField::processorFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H index f2d34a7761..4581350877 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/processor/processorFvsPatchField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -98,17 +98,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - processorFvsPatchField(const processorFvsPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new processorFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + processorFvsPatchField(const processorFvsPatchField&) = delete; //- Copy constructor setting internal field reference processorFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.C index 0eacbf7e67..40c77e631c 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -99,17 +99,6 @@ Foam::processorCyclicFvsPatchField::processorCyclicFvsPatchField } -template -Foam::processorCyclicFvsPatchField::processorCyclicFvsPatchField -( - const processorCyclicFvsPatchField& ptf -) -: - coupledFvsPatchField(ptf), - procPatch_(refCast(ptf.patch())) -{} - - template Foam::processorCyclicFvsPatchField::processorCyclicFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H index 3d4d306287..33d514f287 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/processorCyclic/processorCyclicFvsPatchField.H @@ -99,17 +99,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - processorCyclicFvsPatchField(const processorCyclicFvsPatchField&); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new processorCyclicFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + processorCyclicFvsPatchField + ( + const processorCyclicFvsPatchField& + ) = delete; //- Copy constructor setting internal field reference processorCyclicFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.C index 8727b3fe07..966555f389 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,16 +83,6 @@ Foam::symmetryFvsPatchField::symmetryFvsPatchField } -template -Foam::symmetryFvsPatchField::symmetryFvsPatchField -( - const symmetryFvsPatchField& ptf -) -: - fvsPatchField(ptf) -{} - - template Foam::symmetryFvsPatchField::symmetryFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.H index 2e75d8814e..89b3779b6a 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetry/symmetryFvsPatchField.H @@ -85,20 +85,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - symmetryFvsPatchField - ( - const symmetryFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new symmetryFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + symmetryFvsPatchField(const symmetryFvsPatchField&) = delete; //- Copy constructor setting internal field reference symmetryFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.C index fa5f93e4af..fd7ce2c99c 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,16 +83,6 @@ Foam::symmetryPlaneFvsPatchField::symmetryPlaneFvsPatchField } -template -Foam::symmetryPlaneFvsPatchField::symmetryPlaneFvsPatchField -( - const symmetryPlaneFvsPatchField& ptf -) -: - fvsPatchField(ptf) -{} - - template Foam::symmetryPlaneFvsPatchField::symmetryPlaneFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.H index 314643a737..155580c0c4 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/symmetryPlane/symmetryPlaneFvsPatchField.H @@ -86,20 +86,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference symmetryPlaneFvsPatchField ( const symmetryPlaneFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new symmetryPlaneFvsPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference symmetryPlaneFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.C index 16dc882d4f..d4026652e5 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.C @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -83,16 +83,6 @@ Foam::wedgeFvsPatchField::wedgeFvsPatchField } -template -Foam::wedgeFvsPatchField::wedgeFvsPatchField -( - const wedgeFvsPatchField& ptf -) -: - fvsPatchField(ptf) -{} - - template Foam::wedgeFvsPatchField::wedgeFvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.H index 84aadc01e8..ead056ff11 100644 --- a/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/constraint/wedge/wedgeFvsPatchField.H @@ -85,20 +85,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - wedgeFvsPatchField - ( - const wedgeFvsPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new wedgeFvsPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + wedgeFvsPatchField(const wedgeFvsPatchField&) = delete; //- Copy constructor setting internal field reference wedgeFvsPatchField diff --git a/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.C b/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.C index 8b07d59eaa..51a1761420 100644 --- a/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.C +++ b/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -102,18 +102,6 @@ Foam::fvsPatchField::fvsPatchField } -template -Foam::fvsPatchField::fvsPatchField -( - const fvsPatchField& ptf -) -: - Field(ptf), - patch_(ptf.patch_), - internalField_(ptf.internalField_) -{} - - template Foam::fvsPatchField::fvsPatchField ( diff --git a/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.H b/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.H index 426f1b6255..4ff4bdd35c 100644 --- a/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.H +++ b/src/finiteVolume/fields/fvsPatchFields/fvsPatchField/fvsPatchField.H @@ -179,13 +179,14 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - fvsPatchField(const fvsPatchField&); + //- Disallow copy without setting internal field reference + fvsPatchField(const fvsPatchField&) = delete; - //- Construct and return a clone - virtual tmp> clone() const + //- Disallow clone without setting internal field reference + tmp> clone() const { - return tmp>(new fvsPatchField(*this)); + NotImplemented; + return tmp>(nullptr); } //- Copy constructor setting internal field reference diff --git a/src/functionObjects/field/yPlus/yPlus.C b/src/functionObjects/field/yPlus/yPlus.C index 07fa0d8dac..5b523844c8 100644 --- a/src/functionObjects/field/yPlus/yPlus.C +++ b/src/functionObjects/field/yPlus/yPlus.C @@ -79,18 +79,19 @@ Foam::tmp Foam::functionObjects::yPlus::calcYPlus volScalarField::Boundary& yPlusBf = tyPlus.ref().boundaryFieldRef(); - volScalarField::Boundary d = nearWallDist(mesh_).y(); + const nearWallDist nwd(mesh_); + const volScalarField::Boundary& d = nwd.y(); - const volScalarField::Boundary nutBf = - turbModel.nut()().boundaryField(); + const tmp tnut = turbModel.nut(); + const volScalarField::Boundary& nutBf = tnut().boundaryField(); - const volScalarField::Boundary nuEffBf = - turbModel.nuEff()().boundaryField(); + const tmp tnuEff = turbModel.nuEff(); + const volScalarField::Boundary& nuEffBf = tnuEff().boundaryField(); - const volScalarField::Boundary nuBf = - turbModel.nu()().boundaryField(); + const tmp tnu = turbModel.nu(); + const volScalarField::Boundary& nuBf = tnu().boundaryField(); - const fvPatchList& patches = mesh_.boundary(); + const fvPatchList& patches = mesh_.boundary(); forAll(patches, patchi) { diff --git a/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.C b/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.C index 7ffc4837dc..61614ef1f2 100644 --- a/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.C +++ b/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,16 +67,6 @@ Foam::cellMotionFvPatchField::cellMotionFvPatchField {} -template -Foam::cellMotionFvPatchField::cellMotionFvPatchField -( - const cellMotionFvPatchField& ptf -) -: - fixedValueFvPatchField(ptf) -{} - - template Foam::cellMotionFvPatchField::cellMotionFvPatchField ( diff --git a/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.H b/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.H index 40546a9da8..7ea571db0b 100644 --- a/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.H +++ b/src/fvMotionSolver/fvPatchFields/derived/cellMotion/cellMotionFvPatchField.H @@ -86,20 +86,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - cellMotionFvPatchField - ( - const cellMotionFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new cellMotionFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + cellMotionFvPatchField(const cellMotionFvPatchField&) = delete; //- Copy constructor setting internal field reference cellMotionFvPatchField diff --git a/src/fvMotionSolver/fvPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementFvPatchField.H b/src/fvMotionSolver/fvPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementFvPatchField.H index bff4626cd9..6248acedde 100644 --- a/src/fvMotionSolver/fvPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementFvPatchField.H +++ b/src/fvMotionSolver/fvPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementFvPatchField.H @@ -96,24 +96,11 @@ public: slipFvPatchField(ptf, p, iF, mapper) {} - - //- Copy constructor + //- Disallow copy without setting internal field reference surfaceSlipDisplacementFvPatchField ( const surfaceSlipDisplacementFvPatchField& ptf - ) - : - slipFvPatchField(ptf) - {} - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new surfaceSlipDisplacementFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference surfaceSlipDisplacementFvPatchField diff --git a/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingDisplacement/angularOscillatingDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingDisplacement/angularOscillatingDisplacementPointPatchVectorField.H index ad34d747ee..d0b29a495e 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingDisplacement/angularOscillatingDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingDisplacement/angularOscillatingDisplacementPointPatchVectorField.H @@ -93,18 +93,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new angularOscillatingDisplacementPointPatchVectorField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference angularOscillatingDisplacementPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingVelocity/angularOscillatingVelocityPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingVelocity/angularOscillatingVelocityPointPatchVectorField.H index 49b1b84446..9b10cdb374 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingVelocity/angularOscillatingVelocityPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/angularOscillatingVelocity/angularOscillatingVelocityPointPatchVectorField.H @@ -93,18 +93,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new angularOscillatingVelocityPointPatchVectorField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference angularOscillatingVelocityPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/oscillatingDisplacement/oscillatingDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/oscillatingDisplacement/oscillatingDisplacementPointPatchVectorField.H index 01be9f3756..b4129d2da8 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/oscillatingDisplacement/oscillatingDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/oscillatingDisplacement/oscillatingDisplacementPointPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -88,18 +88,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new oscillatingDisplacementPointPatchVectorField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference oscillatingDisplacementPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/oscillatingVelocity/oscillatingVelocityPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/oscillatingVelocity/oscillatingVelocityPointPatchVectorField.H index f34925665f..eb417b7067 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/oscillatingVelocity/oscillatingVelocityPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/oscillatingVelocity/oscillatingVelocityPointPatchVectorField.H @@ -90,18 +90,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new oscillatingVelocityPointPatchVectorField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference oscillatingVelocityPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C index 37d82726e4..78717a2cec 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -362,22 +362,6 @@ surfaceDisplacementPointPatchVectorField {} -surfaceDisplacementPointPatchVectorField:: -surfaceDisplacementPointPatchVectorField -( - const surfaceDisplacementPointPatchVectorField& ppf -) -: - fixedValuePointPatchVectorField(ppf), - velocity_(ppf.velocity_), - surfacesDict_(ppf.surfacesDict_), - projectMode_(ppf.projectMode_), - projectDir_(ppf.projectDir_), - wedgePlane_(ppf.wedgePlane_), - frozenPointsZone_(ppf.frozenPointsZone_) -{} - - surfaceDisplacementPointPatchVectorField:: surfaceDisplacementPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H index 846defd634..69af4da029 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceDisplacement/surfaceDisplacementPointPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -153,23 +153,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference surfaceDisplacementPointPatchVectorField ( const surfaceDisplacementPointPatchVectorField& - ); - - //- Construct and return a clone - virtual autoPtr clone() const - { - return autoPtr - ( - new surfaceDisplacementPointPatchVectorField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference surfaceDisplacementPointPatchVectorField diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C b/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C index d611b595a4..7e0613b71c 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -349,21 +349,6 @@ surfaceSlipDisplacementPointPatchVectorField {} -surfaceSlipDisplacementPointPatchVectorField:: -surfaceSlipDisplacementPointPatchVectorField -( - const surfaceSlipDisplacementPointPatchVectorField& ppf -) -: - pointPatchVectorField(ppf), - surfacesDict_(ppf.surfacesDict_), - projectMode_(ppf.projectMode_), - projectDir_(ppf.projectDir_), - wedgePlane_(ppf.wedgePlane_), - frozenPointsZone_(ppf.frozenPointsZone_) -{} - - surfaceSlipDisplacementPointPatchVectorField:: surfaceSlipDisplacementPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.H index 15e8360f5a..2a9df0f5a3 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/surfaceSlipDisplacement/surfaceSlipDisplacementPointPatchVectorField.H @@ -144,23 +144,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference surfaceSlipDisplacementPointPatchVectorField ( const surfaceSlipDisplacementPointPatchVectorField& - ); - - //- Construct and return a clone - virtual autoPtr clone() const - { - return autoPtr - ( - new surfaceSlipDisplacementPointPatchVectorField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference surfaceSlipDisplacementPointPatchVectorField diff --git a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C index 216bc64948..0219eafa92 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C +++ b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -150,30 +150,6 @@ timeVaryingMappedFixedValuePointPatchField {} -template -Foam::timeVaryingMappedFixedValuePointPatchField:: -timeVaryingMappedFixedValuePointPatchField -( - const timeVaryingMappedFixedValuePointPatchField& ptf -) -: - fixedValuePointPatchField(ptf), - fieldTableName_(ptf.fieldTableName_), - setAverage_(ptf.setAverage_), - perturb_(ptf.perturb_), - mapMethod_(ptf.mapMethod_), - mapperPtr_(ptf.mapperPtr_), - sampleTimes_(ptf.sampleTimes_), - startSampleTime_(ptf.startSampleTime_), - startSampledValues_(ptf.startSampledValues_), - startAverage_(ptf.startAverage_), - endSampleTime_(ptf.endSampleTime_), - endSampledValues_(ptf.endSampledValues_), - endAverage_(ptf.endAverage_), - offset_(ptf.offset_, false) -{} - - template Foam::timeVaryingMappedFixedValuePointPatchField:: timeVaryingMappedFixedValuePointPatchField diff --git a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H index 771aae73f1..6361640978 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValuePointPatchField.H @@ -131,20 +131,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference timeVaryingMappedFixedValuePointPatchField ( const timeVaryingMappedFixedValuePointPatchField& - ); - - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new timeVaryingMappedFixedValuePointPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference timeVaryingMappedFixedValuePointPatchField diff --git a/src/fvMotionSolver/pointPatchFields/derived/uniformInterpolatedDisplacement/uniformInterpolatedDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/uniformInterpolatedDisplacement/uniformInterpolatedDisplacementPointPatchVectorField.H index dad19cefc2..a2f996152d 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/uniformInterpolatedDisplacement/uniformInterpolatedDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/uniformInterpolatedDisplacement/uniformInterpolatedDisplacementPointPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -108,18 +108,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new uniformInterpolatedDisplacementPointPatchVectorField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference uniformInterpolatedDisplacementPointPatchVectorField ( diff --git a/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H b/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H index fca764119b..6f717cff36 100644 --- a/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H +++ b/src/fvMotionSolver/pointPatchFields/derived/waveDisplacement/waveDisplacementPointPatchVectorField.H @@ -143,18 +143,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new waveDisplacementPointPatchVectorField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference waveDisplacementPointPatchVectorField ( diff --git a/src/genericPatchFields/genericFvPatchField/genericFvPatchField.C b/src/genericPatchFields/genericFvPatchField/genericFvPatchField.C index 10e2b1a9c3..838f2fdc4e 100644 --- a/src/genericPatchFields/genericFvPatchField/genericFvPatchField.C +++ b/src/genericPatchFields/genericFvPatchField/genericFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -496,23 +496,6 @@ Foam::genericFvPatchField::genericFvPatchField } -template -Foam::genericFvPatchField::genericFvPatchField -( - const genericFvPatchField& ptf -) -: - genericPatchField(ptf), - calculatedFvPatchField(ptf), - dict_(ptf.dict_), - scalarFields_(ptf.scalarFields_), - vectorFields_(ptf.vectorFields_), - sphericalTensorFields_(ptf.sphericalTensorFields_), - symmTensorFields_(ptf.symmTensorFields_), - tensorFields_(ptf.tensorFields_) -{} - - template Foam::genericFvPatchField::genericFvPatchField ( diff --git a/src/genericPatchFields/genericFvPatchField/genericFvPatchField.H b/src/genericPatchFields/genericFvPatchField/genericFvPatchField.H index 14a7efa980..c628bbd0f6 100644 --- a/src/genericPatchFields/genericFvPatchField/genericFvPatchField.H +++ b/src/genericPatchFields/genericFvPatchField/genericFvPatchField.H @@ -102,20 +102,8 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor - genericFvPatchField - ( - const genericFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new genericFvPatchField(*this) - ); - } + //- Disallow copy without setting internal field reference + genericFvPatchField(const genericFvPatchField&) = delete; //- Copy constructor setting internal field reference genericFvPatchField diff --git a/src/genericPatchFields/genericPointPatchField/genericPointPatchField.H b/src/genericPatchFields/genericPointPatchField/genericPointPatchField.H index e9b4a1110f..d8c3554c4d 100644 --- a/src/genericPatchFields/genericPointPatchField/genericPointPatchField.H +++ b/src/genericPatchFields/genericPointPatchField/genericPointPatchField.H @@ -98,18 +98,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new genericPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference genericPointPatchField ( diff --git a/src/lagrangian/parcel/submodels/CloudFunctionObjects/PatchCollisionDensity/PatchCollisionDensity.C b/src/lagrangian/parcel/submodels/CloudFunctionObjects/PatchCollisionDensity/PatchCollisionDensity.C index c5c0883876..b938726299 100644 --- a/src/lagrangian/parcel/submodels/CloudFunctionObjects/PatchCollisionDensity/PatchCollisionDensity.C +++ b/src/lagrangian/parcel/submodels/CloudFunctionObjects/PatchCollisionDensity/PatchCollisionDensity.C @@ -127,8 +127,16 @@ Foam::PatchCollisionDensity::PatchCollisionDensity : CloudFunctionObject(ppm), minSpeed_(ppm.minSpeed_), - collisionDensity_(ppm.collisionDensity_), - collisionDensity0_(ppm.collisionDensity0_), + collisionDensity_ + ( + volScalarField::Internal::null(), + ppm.collisionDensity_ + ), + collisionDensity0_ + ( + volScalarField::Internal::null(), + ppm.collisionDensity0_ + ), time0_(ppm.time0_) {} diff --git a/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.C b/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.C index 6dc97eee67..79efad23e3 100644 --- a/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.C +++ b/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2014-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2014-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,17 +71,6 @@ zeroFixedValuePointPatchField } -template -Foam::zeroFixedValuePointPatchField:: -zeroFixedValuePointPatchField -( - const zeroFixedValuePointPatchField& ptf -) -: - fixedValuePointPatchField(ptf) -{} - - template Foam::zeroFixedValuePointPatchField:: zeroFixedValuePointPatchField diff --git a/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.H b/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.H index 030147b105..e0d34c27bf 100644 --- a/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.H +++ b/src/mesh/snappyHexMesh/externalDisplacementMeshMover/zeroFixedValue/zeroFixedValuePointPatchField.H @@ -92,23 +92,11 @@ public: const pointPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference zeroFixedValuePointPatchField ( const zeroFixedValuePointPatchField& - ); - - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new zeroFixedValuePointPatchField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference zeroFixedValuePointPatchField diff --git a/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPointPatchField/cyclicACMIPointPatchField.H b/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPointPatchField/cyclicACMIPointPatchField.H index 91715fb1e3..7f6ea4fb03 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPointPatchField/cyclicACMIPointPatchField.H +++ b/src/meshTools/AMIInterpolation/patches/cyclicACMI/cyclicACMIPointPatchField/cyclicACMIPointPatchField.H @@ -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-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -63,18 +63,6 @@ public: //- Inherit parent constructors using cyclicAMIPointPatchField::cyclicAMIPointPatchField; - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new cyclicACMIPointPatchField - ( - *this - ) - ); - } - //- Construct and return a clone setting internal field reference virtual autoPtr> clone ( diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.H b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.H index 849a6ac374..43f47bc692 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.H +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.H @@ -135,18 +135,6 @@ public: const pointPatchFieldMapper& ); - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new cyclicAMIPointPatchField - ( - *this - ) - ); - } - //- Construct as copy setting internal field reference cyclicAMIPointPatchField ( diff --git a/src/meshTools/AMIInterpolation/patches/cyclicRepeatAMI/cyclicRepeatAMIPointPatchField/cyclicRepeatAMIPointPatchField.H b/src/meshTools/AMIInterpolation/patches/cyclicRepeatAMI/cyclicRepeatAMIPointPatchField/cyclicRepeatAMIPointPatchField.H index 80996ebddd..f999e0a502 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicRepeatAMI/cyclicRepeatAMIPointPatchField/cyclicRepeatAMIPointPatchField.H +++ b/src/meshTools/AMIInterpolation/patches/cyclicRepeatAMI/cyclicRepeatAMIPointPatchField/cyclicRepeatAMIPointPatchField.H @@ -63,18 +63,6 @@ public: //- Inherit parent constructors using cyclicAMIPointPatchField::cyclicAMIPointPatchField; - //- Construct and return a clone - virtual autoPtr> clone() const - { - return autoPtr> - ( - new cyclicRepeatAMIPointPatchField - ( - *this - ) - ); - } - //- Construct and return a clone setting internal field reference virtual autoPtr> clone ( diff --git a/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C b/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C index 781a9f5304..953fcf7378 100644 --- a/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C +++ b/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -97,22 +97,6 @@ Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField } -Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField -( - const MarshakRadiationFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - radiationCoupledBase - ( - ptf.patch(), - ptf.emissivityMethod(), - ptf.emissivity_ - ), - TName_(ptf.TName_) -{} - - Foam::MarshakRadiationFvPatchScalarField::MarshakRadiationFvPatchScalarField ( const MarshakRadiationFvPatchScalarField& ptf, diff --git a/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.H b/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.H index 4bbe482f29..aabde4548c 100644 --- a/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.H +++ b/src/radiationModels/derivedFvPatchFields/MarshakRadiation/MarshakRadiationFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -116,20 +116,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference MarshakRadiationFvPatchScalarField ( const MarshakRadiationFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new MarshakRadiationFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference MarshakRadiationFvPatchScalarField diff --git a/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.C b/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.C index f95eaee436..f28e87a607 100644 --- a/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.C +++ b/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -94,23 +94,6 @@ MarshakRadiationFixedTemperatureFvPatchScalarField } -Foam::MarshakRadiationFixedTemperatureFvPatchScalarField:: -MarshakRadiationFixedTemperatureFvPatchScalarField -( - const MarshakRadiationFixedTemperatureFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - radiationCoupledBase - ( - ptf.patch(), - ptf.emissivityMethod(), - ptf.emissivity_ - ), - Trad_(ptf.Trad_) -{} - - Foam::MarshakRadiationFixedTemperatureFvPatchScalarField:: MarshakRadiationFixedTemperatureFvPatchScalarField ( diff --git a/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.H b/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.H index 543f9df6bf..c533b9f408 100644 --- a/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.H +++ b/src/radiationModels/derivedFvPatchFields/MarshakRadiationFixedTemperature/MarshakRadiationFixedTemperatureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -116,20 +116,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference MarshakRadiationFixedTemperatureFvPatchScalarField ( const MarshakRadiationFixedTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new MarshakRadiationFixedTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference MarshakRadiationFixedTemperatureFvPatchScalarField diff --git a/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C b/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C index 9414d55f57..f0fbd965e9 100644 --- a/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C +++ b/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -107,23 +107,6 @@ greyDiffusiveRadiationMixedFvPatchScalarField } -Foam::greyDiffusiveRadiationMixedFvPatchScalarField:: -greyDiffusiveRadiationMixedFvPatchScalarField -( - const greyDiffusiveRadiationMixedFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - radiationCoupledBase - ( - ptf.patch(), - ptf.emissivityMethod(), - ptf.emissivity_ - ), - TName_(ptf.TName_) -{} - - Foam::greyDiffusiveRadiationMixedFvPatchScalarField:: greyDiffusiveRadiationMixedFvPatchScalarField ( diff --git a/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.H b/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.H index 82fe18cf6d..a9ceb32278 100644 --- a/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.H +++ b/src/radiationModels/derivedFvPatchFields/greyDiffusiveRadiation/greyDiffusiveRadiationMixedFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -118,20 +118,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference greyDiffusiveRadiationMixedFvPatchScalarField ( const greyDiffusiveRadiationMixedFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new greyDiffusiveRadiationMixedFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference greyDiffusiveRadiationMixedFvPatchScalarField diff --git a/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.C b/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.C index 024deaf5e7..57f5aeb9e0 100644 --- a/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.C +++ b/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -92,23 +92,6 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField } -Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField:: -greyDiffusiveViewFactorFixedValueFvPatchScalarField -( - const greyDiffusiveViewFactorFixedValueFvPatchScalarField& ptf -) -: - fixedValueFvPatchScalarField(ptf), - radiationCoupledBase - ( - ptf.patch(), - ptf.emissivityMethod(), - ptf.emissivity_ - ), - qro_(ptf.qro_) -{} - - Foam::greyDiffusiveViewFactorFixedValueFvPatchScalarField:: greyDiffusiveViewFactorFixedValueFvPatchScalarField ( diff --git a/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.H b/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.H index 3760887fca..8e793742b7 100644 --- a/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.H +++ b/src/radiationModels/derivedFvPatchFields/greyDiffusiveViewFactor/greyDiffusiveViewFactorFixedValueFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -116,20 +116,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference greyDiffusiveViewFactorFixedValueFvPatchScalarField ( const greyDiffusiveViewFactorFixedValueFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new greyDiffusiveViewFactorFixedValueFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference greyDiffusiveViewFactorFixedValueFvPatchScalarField diff --git a/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C b/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C index 42e156a98b..9db3ade229 100644 --- a/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C +++ b/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -111,23 +111,6 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField } -Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField:: -wideBandDiffusiveRadiationMixedFvPatchScalarField -( - const wideBandDiffusiveRadiationMixedFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - radiationCoupledBase - ( - ptf.patch(), - ptf.emissivityMethod(), - ptf.emissivity_ - ), - TName_(ptf.TName_) -{} - - Foam::wideBandDiffusiveRadiationMixedFvPatchScalarField:: wideBandDiffusiveRadiationMixedFvPatchScalarField ( diff --git a/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.H b/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.H index a848a9692d..405cc8ee33 100644 --- a/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.H +++ b/src/radiationModels/derivedFvPatchFields/wideBandDiffusiveRadiation/wideBandDiffusiveRadiationMixedFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -111,20 +111,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference wideBandDiffusiveRadiationMixedFvPatchScalarField ( const wideBandDiffusiveRadiationMixedFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new wideBandDiffusiveRadiationMixedFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference wideBandDiffusiveRadiationMixedFvPatchScalarField diff --git a/src/regionModels/regionModel/regionModel1D/regionModel1D.C b/src/regionModels/regionModel/regionModel1D/regionModel1D.C index d807834d3d..f9b4f399e7 100644 --- a/src/regionModels/regionModel/regionModel1D/regionModel1D.C +++ b/src/regionModels/regionModel/regionModel1D/regionModel1D.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -117,9 +117,7 @@ void Foam::regionModels::regionModel1D::initialise() boundaryFaceCells_.setSize(localPyrolysisFacei); surfaceScalarField& nMagSf = nMagSfPtr_(); - - surfaceScalarField::Boundary nMagSfBf = - nMagSf.boundaryFieldRef(); + surfaceScalarField::Boundary& nMagSfBf = nMagSf.boundaryFieldRef(); localPyrolysisFacei = 0; diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C index 851ca38c54..748c224239 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,19 +75,6 @@ filmHeightInletVelocityFvPatchVectorField {} -Foam::filmHeightInletVelocityFvPatchVectorField:: -filmHeightInletVelocityFvPatchVectorField -( - const filmHeightInletVelocityFvPatchVectorField& fhivpvf -) -: - fixedValueFvPatchVectorField(fhivpvf), - phiName_(fhivpvf.phiName_), - rhoName_(fhivpvf.rhoName_), - deltafName_(fhivpvf.deltafName_) -{} - - Foam::filmHeightInletVelocityFvPatchVectorField:: filmHeightInletVelocityFvPatchVectorField ( diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.H index 10674d49b2..63bfc2a7b9 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/filmHeightInletVelocity/filmHeightInletVelocityFvPatchVectorField.H @@ -136,20 +136,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference filmHeightInletVelocityFvPatchVectorField ( const filmHeightInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new filmHeightInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference filmHeightInletVelocityFvPatchVectorField diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C index 90a1cc9cc5..fbb90331cf 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,19 +75,6 @@ inclinedFilmNusseltHeightFvPatchScalarField {} -Foam::inclinedFilmNusseltHeightFvPatchScalarField:: -inclinedFilmNusseltHeightFvPatchScalarField -( - const inclinedFilmNusseltHeightFvPatchScalarField& wmfrhpsf -) -: - fixedValueFvPatchScalarField(wmfrhpsf), - GammaMean_(wmfrhpsf.GammaMean_().clone().ptr()), - a_(wmfrhpsf.a_().clone().ptr()), - omega_(wmfrhpsf.omega_().clone().ptr()) -{} - - Foam::inclinedFilmNusseltHeightFvPatchScalarField:: inclinedFilmNusseltHeightFvPatchScalarField ( diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H index 877e7db566..1a3088ad67 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltHeight/inclinedFilmNusseltHeightFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -99,20 +99,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference inclinedFilmNusseltHeightFvPatchScalarField ( const inclinedFilmNusseltHeightFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new inclinedFilmNusseltHeightFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference inclinedFilmNusseltHeightFvPatchScalarField diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C index 155714dbde..4151f1d8ed 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,19 +75,6 @@ inclinedFilmNusseltInletVelocityFvPatchVectorField {} -Foam::inclinedFilmNusseltInletVelocityFvPatchVectorField:: -inclinedFilmNusseltInletVelocityFvPatchVectorField -( - const inclinedFilmNusseltInletVelocityFvPatchVectorField& fmfrpvf -) -: - fixedValueFvPatchVectorField(fmfrpvf), - GammaMean_(fmfrpvf.GammaMean_().clone().ptr()), - a_(fmfrpvf.a_().clone().ptr()), - omega_(fmfrpvf.omega_().clone().ptr()) -{} - - Foam::inclinedFilmNusseltInletVelocityFvPatchVectorField:: inclinedFilmNusseltInletVelocityFvPatchVectorField ( diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H index 12f0b79aa3..d6f0b817eb 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/inclinedFilmNusseltInletVelocity/inclinedFilmNusseltInletVelocityFvPatchVectorField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -99,20 +99,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference inclinedFilmNusseltInletVelocityFvPatchVectorField ( const inclinedFilmNusseltInletVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new inclinedFilmNusseltInletVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference inclinedFilmNusseltInletVelocityFvPatchVectorField diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.C index 88b88c0a52..7108db7801 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.C @@ -94,21 +94,6 @@ alphatFilmWallFunctionFvPatchScalarField {} -alphatFilmWallFunctionFvPatchScalarField:: -alphatFilmWallFunctionFvPatchScalarField -( - const alphatFilmWallFunctionFvPatchScalarField& fwfpsf -) -: - fixedValueFvPatchScalarField(fwfpsf), - B_(fwfpsf.B_), - yPlusCrit_(fwfpsf.yPlusCrit_), - Cmu_(fwfpsf.Cmu_), - kappa_(fwfpsf.kappa_), - Prt_(fwfpsf.Prt_) -{} - - alphatFilmWallFunctionFvPatchScalarField:: alphatFilmWallFunctionFvPatchScalarField ( diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.H index b4d4f71d69..6cdb07ceb0 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/alphatFilmWallFunction/alphatFilmWallFunctionFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -138,20 +138,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphatFilmWallFunctionFvPatchScalarField ( const alphatFilmWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphatFilmWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphatFilmWallFunctionFvPatchScalarField diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.C b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.C index c70d292b7d..8bdd9eedf8 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.C +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.C @@ -192,17 +192,6 @@ nutkFilmWallFunctionFvPatchScalarField::nutkFilmWallFunctionFvPatchScalarField {} -nutkFilmWallFunctionFvPatchScalarField::nutkFilmWallFunctionFvPatchScalarField -( - const nutkFilmWallFunctionFvPatchScalarField& wfpsf -) -: - nutkWallFunctionFvPatchScalarField(wfpsf), - B_(wfpsf.B_), - yPlusCrit_(wfpsf.yPlusCrit_) -{} - - nutkFilmWallFunctionFvPatchScalarField::nutkFilmWallFunctionFvPatchScalarField ( const nutkFilmWallFunctionFvPatchScalarField& wfpsf, diff --git a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.H b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.H index 9e279e40db..43cc2c4526 100644 --- a/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.H +++ b/src/regionModels/surfaceFilmModels/derivedFvPatchFields/wallFunctions/nutkFilmWallFunction/nutkFilmWallFunctionFvPatchScalarField.H @@ -123,20 +123,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference nutkFilmWallFunctionFvPatchScalarField ( const nutkFilmWallFunctionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new nutkFilmWallFunctionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference nutkFilmWallFunctionFvPatchScalarField diff --git a/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.H b/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.H index 3bccdedf89..922539da0b 100644 --- a/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.H +++ b/src/regionModels/thermalBaffleModels/derivedFvPatchFields/thermalBaffle/thermalBaffleFvPatchScalarField.H @@ -230,16 +230,6 @@ public: const fvPatchFieldMapper& ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new thermalBaffleFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference thermalBaffleFvPatchScalarField ( diff --git a/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.C b/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.C index d891e56b91..82146d775f 100644 --- a/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.C +++ b/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.C @@ -68,16 +68,6 @@ adsorptionMassFractionFvPatchScalarField {} -Foam::adsorptionMassFractionFvPatchScalarField:: -adsorptionMassFractionFvPatchScalarField -( - const adsorptionMassFractionFvPatchScalarField& ptf -) -: - specieTransferMassFractionFvPatchScalarField(ptf) -{} - - Foam::adsorptionMassFractionFvPatchScalarField:: adsorptionMassFractionFvPatchScalarField ( diff --git a/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.H b/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.H index e84d352baf..918c783175 100644 --- a/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.H +++ b/src/specieTransfer/derivedFvPatchFields/adsorptionMassFraction/adsorptionMassFractionFvPatchScalarField.H @@ -134,20 +134,12 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + + //- Disallow copy without setting internal field reference adsorptionMassFractionFvPatchScalarField ( const adsorptionMassFractionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new adsorptionMassFractionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference adsorptionMassFractionFvPatchScalarField diff --git a/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.C b/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.C index 21713d6018..391188f90c 100644 --- a/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.C +++ b/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.C @@ -72,17 +72,6 @@ semiPermeableBaffleMassFractionFvPatchScalarField {} -Foam::semiPermeableBaffleMassFractionFvPatchScalarField:: -semiPermeableBaffleMassFractionFvPatchScalarField -( - const semiPermeableBaffleMassFractionFvPatchScalarField& ptf -) -: - mappedPatchBase(ptf.patch().patch(), ptf), - specieTransferMassFractionFvPatchScalarField(ptf) -{} - - Foam::semiPermeableBaffleMassFractionFvPatchScalarField:: semiPermeableBaffleMassFractionFvPatchScalarField ( diff --git a/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.H b/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.H index 065aebc9f5..393affe4c6 100644 --- a/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.H +++ b/src/specieTransfer/derivedFvPatchFields/semiPermeableBaffleMassFraction/semiPermeableBaffleMassFractionFvPatchScalarField.H @@ -137,20 +137,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference semiPermeableBaffleMassFractionFvPatchScalarField ( const semiPermeableBaffleMassFractionFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new semiPermeableBaffleMassFractionFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference semiPermeableBaffleMassFractionFvPatchScalarField diff --git a/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.C b/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.C index 0971027db9..f25a8e4e0e 100644 --- a/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.C +++ b/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.C @@ -140,22 +140,6 @@ specieTransferMassFractionFvPatchScalarField {} -Foam::specieTransferMassFractionFvPatchScalarField:: -specieTransferMassFractionFvPatchScalarField -( - const specieTransferMassFractionFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - phiName_(ptf.phiName_), - UName_(ptf.UName_), - phiYp_(ptf.size(), 0), - timeIndex_(-1), - c_(ptf.c_), - property_(ptf.property_) -{} - - Foam::specieTransferMassFractionFvPatchScalarField:: specieTransferMassFractionFvPatchScalarField ( diff --git a/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.H b/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.H index 54133ccbcc..09dcaf2c81 100644 --- a/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.H +++ b/src/specieTransfer/derivedFvPatchFields/specieTransferMassFraction/specieTransferMassFractionFvPatchScalarField.H @@ -138,11 +138,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference specieTransferMassFractionFvPatchScalarField ( const specieTransferMassFractionFvPatchScalarField& - ); + ) = delete; //- Copy constructor setting internal field reference specieTransferMassFractionFvPatchScalarField diff --git a/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.C b/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.C index f92aa50723..9a4ef5c975 100644 --- a/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.C +++ b/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.C @@ -82,18 +82,6 @@ specieTransferTemperatureFvPatchScalarField {} -Foam::specieTransferTemperatureFvPatchScalarField:: -specieTransferTemperatureFvPatchScalarField -( - const specieTransferTemperatureFvPatchScalarField& ptf -) -: - mixedEnergyCalculatedTemperatureFvPatchScalarField(ptf), - phiName_(ptf.phiName_), - UName_(ptf.UName_) -{} - - Foam::specieTransferTemperatureFvPatchScalarField:: specieTransferTemperatureFvPatchScalarField ( diff --git a/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.H b/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.H index 9df6ad2756..ca7566cdf1 100644 --- a/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.H +++ b/src/specieTransfer/derivedFvPatchFields/specieTransferTemperature/specieTransferTemperatureFvPatchScalarField.H @@ -121,20 +121,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference specieTransferTemperatureFvPatchScalarField ( const specieTransferTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new specieTransferTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference specieTransferTemperatureFvPatchScalarField diff --git a/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.C b/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.C index 47160b4b61..b8a9d1b19a 100644 --- a/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.C +++ b/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -78,17 +78,6 @@ specieTransferVelocityFvPatchVectorField {} -Foam::specieTransferVelocityFvPatchVectorField:: -specieTransferVelocityFvPatchVectorField -( - const specieTransferVelocityFvPatchVectorField& ptf -) -: - fixedValueFvPatchVectorField(ptf), - rhoName_(ptf.rhoName_) -{} - - Foam::specieTransferVelocityFvPatchVectorField:: specieTransferVelocityFvPatchVectorField ( diff --git a/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.H b/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.H index 19c8477abc..9cb5fe6e30 100644 --- a/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.H +++ b/src/specieTransfer/derivedFvPatchFields/specieTransferVelocity/specieTransferVelocityFvPatchVectorField.H @@ -117,20 +117,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference specieTransferVelocityFvPatchVectorField ( const specieTransferVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new specieTransferVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference specieTransferVelocityFvPatchVectorField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C index 4447006db5..a5e1c261cd 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,15 +75,6 @@ Foam::energyJumpFvPatchScalarField::energyJumpFvPatchScalarField } -Foam::energyJumpFvPatchScalarField::energyJumpFvPatchScalarField -( - const energyJumpFvPatchScalarField& ptf -) -: - fixedJumpFvPatchField(ptf) -{} - - Foam::energyJumpFvPatchScalarField::energyJumpFvPatchScalarField ( const energyJumpFvPatchScalarField& ptf, diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H index d0985fd1a6..2602327f59 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -88,20 +88,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference energyJumpFvPatchScalarField ( const energyJumpFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new energyJumpFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference energyJumpFvPatchScalarField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C index 3dbe2b04e4..3e82f09197 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2012-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2012-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -75,15 +75,6 @@ Foam::energyJumpAMIFvPatchScalarField::energyJumpAMIFvPatchScalarField } -Foam::energyJumpAMIFvPatchScalarField::energyJumpAMIFvPatchScalarField -( - const energyJumpAMIFvPatchScalarField& ptf -) -: - fixedJumpAMIFvPatchField(ptf) -{} - - Foam::energyJumpAMIFvPatchScalarField::energyJumpAMIFvPatchScalarField ( const energyJumpAMIFvPatchScalarField& ptf, diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.H index d307299cf8..c4a03d2e2d 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.H @@ -89,20 +89,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference energyJumpAMIFvPatchScalarField ( const energyJumpAMIFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new energyJumpAMIFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference energyJumpAMIFvPatchScalarField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.C index c3cb0e8ee4..7099a2c2be 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,16 +67,6 @@ fixedEnergyFvPatchScalarField {} -Foam::fixedEnergyFvPatchScalarField:: -fixedEnergyFvPatchScalarField -( - const fixedEnergyFvPatchScalarField& tppsf -) -: - fixedValueFvPatchScalarField(tppsf) -{} - - Foam::fixedEnergyFvPatchScalarField:: fixedEnergyFvPatchScalarField ( diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.H index 9b81edfdeb..bff721d615 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.H @@ -88,20 +88,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedEnergyFvPatchScalarField ( const fixedEnergyFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedEnergyFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedEnergyFvPatchScalarField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.C index 9b89a158d0..43122b9476 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -80,17 +80,6 @@ gradientEnergyCalculatedTemperatureFvPatchScalarField {} -Foam::gradientEnergyCalculatedTemperatureFvPatchScalarField:: -gradientEnergyCalculatedTemperatureFvPatchScalarField -( - const gradientEnergyCalculatedTemperatureFvPatchScalarField& ptf -) -: - calculatedFvPatchScalarField(ptf), - heGradient_(ptf.heGradient_) -{} - - Foam::gradientEnergyCalculatedTemperatureFvPatchScalarField:: gradientEnergyCalculatedTemperatureFvPatchScalarField ( diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.H index 0e0921ae86..af534a9ac4 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyCalculatedTemperatureFvPatchScalarField.H @@ -92,20 +92,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference gradientEnergyCalculatedTemperatureFvPatchScalarField ( const gradientEnergyCalculatedTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new gradientEnergyCalculatedTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference gradientEnergyCalculatedTemperatureFvPatchScalarField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.C index 3d54b6ccfd..5457d58965 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -69,16 +69,6 @@ gradientEnergyFvPatchScalarField {} -Foam::gradientEnergyFvPatchScalarField:: -gradientEnergyFvPatchScalarField -( - const gradientEnergyFvPatchScalarField& tppsf -) -: - fixedGradientFvPatchScalarField(tppsf) -{} - - Foam::gradientEnergyFvPatchScalarField:: gradientEnergyFvPatchScalarField ( diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.H index 693d93ea11..ae7835bcc8 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.H @@ -99,20 +99,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference gradientEnergyFvPatchScalarField ( const gradientEnergyFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new gradientEnergyFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference gradientEnergyFvPatchScalarField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.C index def645ea62..9151d6767b 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -86,19 +86,6 @@ mixedEnergyCalculatedTemperatureFvPatchScalarField {} -Foam::mixedEnergyCalculatedTemperatureFvPatchScalarField:: -mixedEnergyCalculatedTemperatureFvPatchScalarField -( - const mixedEnergyCalculatedTemperatureFvPatchScalarField& ptf -) -: - calculatedFvPatchScalarField(ptf), - heRefValue_(ptf.heRefValue_), - heRefGrad_(ptf.heRefGrad_), - heValueFraction_(ptf.heValueFraction_) -{} - - Foam::mixedEnergyCalculatedTemperatureFvPatchScalarField:: mixedEnergyCalculatedTemperatureFvPatchScalarField ( diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.H index 45f6ed164a..76c7592ae2 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyCalculatedTemperatureFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -98,20 +98,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mixedEnergyCalculatedTemperatureFvPatchScalarField ( const mixedEnergyCalculatedTemperatureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new mixedEnergyCalculatedTemperatureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mixedEnergyCalculatedTemperatureFvPatchScalarField diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.C b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.C index 52fd156180..911549b57e 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.C +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -72,16 +72,6 @@ mixedEnergyFvPatchScalarField {} -Foam::mixedEnergyFvPatchScalarField:: -mixedEnergyFvPatchScalarField -( - const mixedEnergyFvPatchScalarField& tppsf -) -: - mixedFvPatchScalarField(tppsf) -{} - - Foam::mixedEnergyFvPatchScalarField:: mixedEnergyFvPatchScalarField ( diff --git a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.H b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.H index b63f76d5fe..468d0c98e8 100644 --- a/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.H +++ b/src/thermophysicalModels/basic/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.H @@ -98,20 +98,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mixedEnergyFvPatchScalarField ( const mixedEnergyFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new mixedEnergyFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mixedEnergyFvPatchScalarField diff --git a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.C b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.C index a052b82250..686cd721cd 100644 --- a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.C +++ b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -68,16 +68,6 @@ fixedUnburntEnthalpyFvPatchScalarField {} -Foam::fixedUnburntEnthalpyFvPatchScalarField:: -fixedUnburntEnthalpyFvPatchScalarField -( - const fixedUnburntEnthalpyFvPatchScalarField& tppsf -) -: - fixedValueFvPatchScalarField(tppsf) -{} - - Foam::fixedUnburntEnthalpyFvPatchScalarField:: fixedUnburntEnthalpyFvPatchScalarField ( diff --git a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.H b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.H index 3900916330..fd612e357f 100644 --- a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.H +++ b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/fixedUnburntEnthalpy/fixedUnburntEnthalpyFvPatchScalarField.H @@ -84,20 +84,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference fixedUnburntEnthalpyFvPatchScalarField ( const fixedUnburntEnthalpyFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new fixedUnburntEnthalpyFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference fixedUnburntEnthalpyFvPatchScalarField diff --git a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.C b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.C index 52e7bed90f..ad2bcc0eff 100644 --- a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.C +++ b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -67,16 +67,6 @@ gradientUnburntEnthalpyFvPatchScalarField {} -Foam::gradientUnburntEnthalpyFvPatchScalarField:: -gradientUnburntEnthalpyFvPatchScalarField -( - const gradientUnburntEnthalpyFvPatchScalarField& tppsf -) -: - fixedGradientFvPatchScalarField(tppsf) -{} - - Foam::gradientUnburntEnthalpyFvPatchScalarField:: gradientUnburntEnthalpyFvPatchScalarField ( diff --git a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.H b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.H index 1672a9fd07..d9697434dc 100644 --- a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.H +++ b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/gradientUnburntEnthalpy/gradientUnburntEnthalpyFvPatchScalarField.H @@ -84,20 +84,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference gradientUnburntEnthalpyFvPatchScalarField ( const gradientUnburntEnthalpyFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new gradientUnburntEnthalpyFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference gradientUnburntEnthalpyFvPatchScalarField diff --git a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.C b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.C index 92a335b724..34c4c1e279 100644 --- a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.C +++ b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -71,16 +71,6 @@ mixedUnburntEnthalpyFvPatchScalarField {} -Foam::mixedUnburntEnthalpyFvPatchScalarField:: -mixedUnburntEnthalpyFvPatchScalarField -( - const mixedUnburntEnthalpyFvPatchScalarField& tppsf -) -: - mixedFvPatchScalarField(tppsf) -{} - - Foam::mixedUnburntEnthalpyFvPatchScalarField:: mixedUnburntEnthalpyFvPatchScalarField ( diff --git a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.H b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.H index 19ea3bea92..e63775b2ea 100644 --- a/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.H +++ b/src/thermophysicalModels/reactionThermo/derivedFvPatchFields/mixedUnburntEnthalpy/mixedUnburntEnthalpyFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -84,20 +84,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference mixedUnburntEnthalpyFvPatchScalarField ( const mixedUnburntEnthalpyFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new mixedUnburntEnthalpyFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference mixedUnburntEnthalpyFvPatchScalarField diff --git a/src/thermophysicalModels/thermophysicalProperties/thermophysicalPropertiesSelector/thermophysicalPropertiesSelectorI.H b/src/thermophysicalModels/thermophysicalProperties/thermophysicalPropertiesSelector/thermophysicalPropertiesSelectorI.H index 96093751e9..eed1016cbe 100644 --- a/src/thermophysicalModels/thermophysicalProperties/thermophysicalPropertiesSelector/thermophysicalPropertiesSelectorI.H +++ b/src/thermophysicalModels/thermophysicalProperties/thermophysicalPropertiesSelector/thermophysicalPropertiesSelectorI.H @@ -27,8 +27,8 @@ License template inline const ThermophysicalProperties& -Foam::thermophysicalPropertiesSelector -::properties() const +Foam::thermophysicalPropertiesSelector:: +properties() const { return propertiesPtr_(); } diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.C b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.C index 6761421026..c019a79cad 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.C +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.C @@ -106,16 +106,6 @@ Foam::alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField {} -Foam::alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField -( - const alphaContactAngleFvPatchScalarField& acpsf -) -: - fixedGradientFvPatchScalarField(acpsf), - limit_(acpsf.limit_) -{} - - Foam::alphaContactAngleFvPatchScalarField::alphaContactAngleFvPatchScalarField ( const alphaContactAngleFvPatchScalarField& acpsf, diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.H b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.H index bf3f6e1240..9f6132286a 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.H +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/alphaContactAngle/alphaContactAngleFvPatchScalarField.H @@ -119,11 +119,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphaContactAngleFvPatchScalarField ( const alphaContactAngleFvPatchScalarField& - ); + ) = delete; //- Copy constructor setting internal field reference alphaContactAngleFvPatchScalarField diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.C b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.C index 6a66bd276a..78e7323374 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.C +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.C @@ -71,17 +71,6 @@ constantAlphaContactAngleFvPatchScalarField {} -Foam::constantAlphaContactAngleFvPatchScalarField:: -constantAlphaContactAngleFvPatchScalarField -( - const constantAlphaContactAngleFvPatchScalarField& gcpsf -) -: - alphaContactAngleFvPatchScalarField(gcpsf), - theta0_(gcpsf.theta0_) -{} - - Foam::constantAlphaContactAngleFvPatchScalarField:: constantAlphaContactAngleFvPatchScalarField ( diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.H b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.H index 0c79df57eb..3806c86a0c 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.H +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/constantAlphaContactAngle/constantAlphaContactAngleFvPatchScalarField.H @@ -94,20 +94,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference constantAlphaContactAngleFvPatchScalarField ( const constantAlphaContactAngleFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new constantAlphaContactAngleFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference constantAlphaContactAngleFvPatchScalarField diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.C b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.C index 50930b3fcc..a4fe669a8e 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.C +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.C @@ -90,20 +90,6 @@ dynamicAlphaContactAngleFvPatchScalarField } -Foam::dynamicAlphaContactAngleFvPatchScalarField:: -dynamicAlphaContactAngleFvPatchScalarField -( - const dynamicAlphaContactAngleFvPatchScalarField& gcpsf -) -: - alphaContactAngleFvPatchScalarField(gcpsf), - theta0_(gcpsf.theta0_), - uTheta_(gcpsf.uTheta_), - thetaA_(gcpsf.thetaA_), - thetaR_(gcpsf.thetaR_) -{} - - Foam::dynamicAlphaContactAngleFvPatchScalarField:: dynamicAlphaContactAngleFvPatchScalarField ( diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.H b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.H index 73b63d2800..82d6090269 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.H +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/dynamicAlphaContactAngle/dynamicAlphaContactAngleFvPatchScalarField.H @@ -156,20 +156,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference dynamicAlphaContactAngleFvPatchScalarField ( const dynamicAlphaContactAngleFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new dynamicAlphaContactAngleFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference dynamicAlphaContactAngleFvPatchScalarField diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C index c141ba5a85..dbbbeb8581 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.C @@ -74,18 +74,6 @@ temperatureDependentAlphaContactAngleFvPatchScalarField {} -Foam::temperatureDependentAlphaContactAngleFvPatchScalarField:: -temperatureDependentAlphaContactAngleFvPatchScalarField -( - const temperatureDependentAlphaContactAngleFvPatchScalarField& psf -) -: - alphaContactAngleFvPatchScalarField(psf), - TName_(psf.TName_), - theta0_(psf.theta0_, false) -{} - - Foam::temperatureDependentAlphaContactAngleFvPatchScalarField:: temperatureDependentAlphaContactAngleFvPatchScalarField ( diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H index ec1abedced..42b96af265 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/temperatureDependentAlphaContactAngle/temperatureDependentAlphaContactAngleFvPatchScalarField.H @@ -119,23 +119,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference temperatureDependentAlphaContactAngleFvPatchScalarField ( const temperatureDependentAlphaContactAngleFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new temperatureDependentAlphaContactAngleFvPatchScalarField - ( - *this - ) - ); - } + ) = delete; //- Copy constructor setting internal field reference temperatureDependentAlphaContactAngleFvPatchScalarField diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/timeVaryingAlphaContactAngle/timeVaryingAlphaContactAngleFvPatchScalarField.H b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/timeVaryingAlphaContactAngle/timeVaryingAlphaContactAngleFvPatchScalarField.H index 183293eee7..99eebf4908 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/timeVaryingAlphaContactAngle/timeVaryingAlphaContactAngleFvPatchScalarField.H +++ b/src/twoPhaseModels/twoPhaseProperties/alphaContactAngle/timeVaryingAlphaContactAngle/timeVaryingAlphaContactAngleFvPatchScalarField.H @@ -93,15 +93,6 @@ public: const fvPatchFieldMapper& ); - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new timeVaryingAlphaContactAngleFvPatchScalarField(*this) - ); - } - //- Construct as copy setting internal field reference timeVaryingAlphaContactAngleFvPatchScalarField ( diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.C b/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.C index 340a4aa679..b531eb9d28 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.C +++ b/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.C @@ -83,17 +83,6 @@ alphaFixedPressureFvPatchScalarField } -Foam::alphaFixedPressureFvPatchScalarField:: -alphaFixedPressureFvPatchScalarField -( - const alphaFixedPressureFvPatchScalarField& tppsf -) -: - fixedValueFvPatchScalarField(tppsf), - p_(tppsf.p_) -{} - - Foam::alphaFixedPressureFvPatchScalarField:: alphaFixedPressureFvPatchScalarField ( diff --git a/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.H b/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.H index 3782790d83..ac8c7e7653 100644 --- a/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.H +++ b/src/twoPhaseModels/twoPhaseProperties/alphaFixedPressure/alphaFixedPressureFvPatchScalarField.H @@ -89,20 +89,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference alphaFixedPressureFvPatchScalarField ( const alphaFixedPressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new alphaFixedPressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference alphaFixedPressureFvPatchScalarField diff --git a/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.C b/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.C index d0ca44dbb6..16f85848e3 100644 --- a/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.C +++ b/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -93,17 +93,6 @@ Foam::waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField {} -Foam::waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField -( - const waveAlphaFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - UName_(ptf.UName_), - liquid_(ptf.liquid_), - inletOutlet_(ptf.inletOutlet_) -{} - Foam::waveAlphaFvPatchScalarField::waveAlphaFvPatchScalarField ( const waveAlphaFvPatchScalarField& ptf, diff --git a/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.H b/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.H index 790496e3b7..51d4e5aa19 100644 --- a/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.H +++ b/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -134,20 +134,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference waveAlphaFvPatchScalarField ( const waveAlphaFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new waveAlphaFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference waveAlphaFvPatchScalarField diff --git a/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.C b/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.C index eeb70e0a9f..998016c9ae 100644 --- a/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.C +++ b/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -91,19 +91,6 @@ Foam::waveInletOutletFvPatchField::waveInletOutletFvPatchField {} -template -Foam::waveInletOutletFvPatchField::waveInletOutletFvPatchField -( - const waveInletOutletFvPatchField& ptf -) -: - mixedFvPatchField(ptf), - inletValueAbove_(ptf.inletValueAbove_, false), - inletValueBelow_(ptf.inletValueBelow_, false), - phiName_(ptf.phiName_) -{} - - template Foam::waveInletOutletFvPatchField::waveInletOutletFvPatchField ( diff --git a/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.H b/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.H index 9e018ad057..36e5ad288e 100644 --- a/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.H +++ b/src/waves/derivedFvPatchFields/waveInletOutlet/waveInletOutletFvPatchField.H @@ -121,20 +121,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference waveInletOutletFvPatchField ( const waveInletOutletFvPatchField& - ); - - //- Construct and return a clone - virtual tmp> clone() const - { - return tmp> - ( - new waveInletOutletFvPatchField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference waveInletOutletFvPatchField diff --git a/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.C b/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.C index c89074266d..d1a439d79b 100644 --- a/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.C +++ b/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -88,17 +88,6 @@ Foam::wavePressureFvPatchScalarField::wavePressureFvPatchScalarField {} -Foam::wavePressureFvPatchScalarField::wavePressureFvPatchScalarField -( - const wavePressureFvPatchScalarField& ptf -) -: - mixedFvPatchScalarField(ptf), - UName_(ptf.UName_), - rhoName_(ptf.rhoName_) -{} - - Foam::wavePressureFvPatchScalarField::wavePressureFvPatchScalarField ( const wavePressureFvPatchScalarField& ptf, diff --git a/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.H b/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.H index 8ed381dfd6..5417145058 100644 --- a/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.H +++ b/src/waves/derivedFvPatchFields/wavePressure/wavePressureFvPatchScalarField.H @@ -124,20 +124,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference wavePressureFvPatchScalarField ( const wavePressureFvPatchScalarField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new wavePressureFvPatchScalarField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference wavePressureFvPatchScalarField diff --git a/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.C b/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.C index c22c180d79..2bcc4f55c8 100644 --- a/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.C +++ b/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2017-2020 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -97,20 +97,6 @@ Foam::waveVelocityFvPatchVectorField::waveVelocityFvPatchVectorField {} -Foam::waveVelocityFvPatchVectorField::waveVelocityFvPatchVectorField -( - const waveVelocityFvPatchVectorField& ptf -) -: - directionMixedFvPatchVectorField(ptf), - phiName_(ptf.phiName_), - pName_(ptf.pName_), - inletOutlet_(ptf.inletOutlet_), - faceCellSubset_(nullptr), - faceCellSubsetTimeIndex_(-1) -{} - - Foam::waveVelocityFvPatchVectorField::waveVelocityFvPatchVectorField ( const waveVelocityFvPatchVectorField& ptf, diff --git a/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.H b/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.H index ab7ffba852..d85499b72e 100644 --- a/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.H +++ b/src/waves/derivedFvPatchFields/waveVelocity/waveVelocityFvPatchVectorField.H @@ -156,20 +156,11 @@ public: const fvPatchFieldMapper& ); - //- Copy constructor + //- Disallow copy without setting internal field reference waveVelocityFvPatchVectorField ( const waveVelocityFvPatchVectorField& - ); - - //- Construct and return a clone - virtual tmp clone() const - { - return tmp - ( - new waveVelocityFvPatchVectorField(*this) - ); - } + ) = delete; //- Copy constructor setting internal field reference waveVelocityFvPatchVectorField