PatchFields: Removed simple copy constructors and clone functions

These do not necessarily set the internal field reference correctly and it is
safer that the correct internal field is provided as an argument.
This commit is contained in:
Henry Weller
2020-10-03 22:16:10 +01:00
parent cdd2db01cc
commit 7e3f4976a8
470 changed files with 733 additions and 5738 deletions

View File

@ -107,15 +107,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new smoluchowskiJumpTFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
smoluchowskiJumpTFvPatchScalarField smoluchowskiJumpTFvPatchScalarField
( (

View File

@ -115,15 +115,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new maxwellSlipUFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
maxwellSlipUFvPatchVectorField maxwellSlipUFvPatchVectorField
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -70,18 +70,6 @@ Foam::mixedFixedValueSlipFvPatchField<Type>::mixedFixedValueSlipFvPatchField
{} {}
template<class Type>
Foam::mixedFixedValueSlipFvPatchField<Type>::mixedFixedValueSlipFvPatchField
(
const mixedFixedValueSlipFvPatchField<Type>& ptf
)
:
transformFvPatchField<Type>(ptf),
refValue_(ptf.refValue_),
valueFraction_(ptf.valueFraction_)
{}
template<class Type> template<class Type>
Foam::mixedFixedValueSlipFvPatchField<Type>::mixedFixedValueSlipFvPatchField Foam::mixedFixedValueSlipFvPatchField<Type>::mixedFixedValueSlipFvPatchField
( (

View File

@ -94,20 +94,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
mixedFixedValueSlipFvPatchField mixedFixedValueSlipFvPatchField
( (
const mixedFixedValueSlipFvPatchField<Type>& const mixedFixedValueSlipFvPatchField<Type>&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchField<Type>> clone() const
{
return tmp<fvPatchField<Type>>
(
new mixedFixedValueSlipFvPatchField<Type>(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
mixedFixedValueSlipFvPatchField mixedFixedValueSlipFvPatchField

View File

@ -121,15 +121,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new fixedRhoFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
fixedRhoFvPatchScalarField fixedRhoFvPatchScalarField
( (

View File

@ -83,15 +83,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new adjointOutletPressureFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
adjointOutletPressureFvPatchScalarField adjointOutletPressureFvPatchScalarField
( (

View File

@ -83,15 +83,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new adjointOutletVelocityFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
adjointOutletVelocityFvPatchVectorField adjointOutletVelocityFvPatchVectorField
( (

View File

@ -162,15 +162,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphaContactAngleFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
alphaContactAngleFvPatchScalarField alphaContactAngleFvPatchScalarField
( (

View File

@ -101,17 +101,6 @@ JohnsonJacksonParticleSlipFvPatchVectorField
} }
Foam::JohnsonJacksonParticleSlipFvPatchVectorField::
JohnsonJacksonParticleSlipFvPatchVectorField
(
const JohnsonJacksonParticleSlipFvPatchVectorField& ptf
)
:
partialSlipFvPatchVectorField(ptf),
specularityCoefficient_(ptf.specularityCoefficient_)
{}
Foam::JohnsonJacksonParticleSlipFvPatchVectorField:: Foam::JohnsonJacksonParticleSlipFvPatchVectorField::
JohnsonJacksonParticleSlipFvPatchVectorField JohnsonJacksonParticleSlipFvPatchVectorField
( (

View File

@ -104,20 +104,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
JohnsonJacksonParticleSlipFvPatchVectorField JohnsonJacksonParticleSlipFvPatchVectorField
( (
const JohnsonJacksonParticleSlipFvPatchVectorField& const JohnsonJacksonParticleSlipFvPatchVectorField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new JohnsonJacksonParticleSlipFvPatchVectorField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
JohnsonJacksonParticleSlipFvPatchVectorField JohnsonJacksonParticleSlipFvPatchVectorField

View File

@ -120,18 +120,6 @@ JohnsonJacksonParticleThetaFvPatchScalarField
} }
Foam::JohnsonJacksonParticleThetaFvPatchScalarField::
JohnsonJacksonParticleThetaFvPatchScalarField
(
const JohnsonJacksonParticleThetaFvPatchScalarField& ptf
)
:
mixedFvPatchScalarField(ptf),
restitutionCoefficient_(ptf.restitutionCoefficient_),
specularityCoefficient_(ptf.specularityCoefficient_)
{}
Foam::JohnsonJacksonParticleThetaFvPatchScalarField:: Foam::JohnsonJacksonParticleThetaFvPatchScalarField::
JohnsonJacksonParticleThetaFvPatchScalarField JohnsonJacksonParticleThetaFvPatchScalarField
( (

View File

@ -107,20 +107,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
JohnsonJacksonParticleThetaFvPatchScalarField JohnsonJacksonParticleThetaFvPatchScalarField
( (
const JohnsonJacksonParticleThetaFvPatchScalarField& const JohnsonJacksonParticleThetaFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new JohnsonJacksonParticleThetaFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
JohnsonJacksonParticleThetaFvPatchScalarField JohnsonJacksonParticleThetaFvPatchScalarField

View File

@ -81,17 +81,6 @@ alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField
{} {}
alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField::
alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField
(
const alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField& psf
)
:
alphatPhaseChangeWallFunctionFvPatchScalarField(psf),
fixedDmdtf_(psf.fixedDmdtf_)
{}
alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField:: alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField::
alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField
( (

View File

@ -97,23 +97,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField
( (
const alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField& const alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField
(
*this
)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField

View File

@ -102,19 +102,6 @@ alphatPhaseChangeWallFunctionFvPatchScalarField
{} {}
alphatPhaseChangeWallFunctionFvPatchScalarField::
alphatPhaseChangeWallFunctionFvPatchScalarField
(
const alphatPhaseChangeWallFunctionFvPatchScalarField& awfpsf
)
:
alphatPhaseJayatillekeWallFunctionFvPatchScalarField(awfpsf),
otherPhaseName_(awfpsf.otherPhaseName_),
relax_(awfpsf.relax_),
dmdtf_(awfpsf.dmdtf_)
{}
alphatPhaseChangeWallFunctionFvPatchScalarField:: alphatPhaseChangeWallFunctionFvPatchScalarField::
alphatPhaseChangeWallFunctionFvPatchScalarField alphatPhaseChangeWallFunctionFvPatchScalarField
( (

View File

@ -104,11 +104,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
alphatPhaseChangeWallFunctionFvPatchScalarField alphatPhaseChangeWallFunctionFvPatchScalarField
( (
const alphatPhaseChangeWallFunctionFvPatchScalarField& const alphatPhaseChangeWallFunctionFvPatchScalarField&
); ) = delete;
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
alphatPhaseChangeWallFunctionFvPatchScalarField alphatPhaseChangeWallFunctionFvPatchScalarField

View File

@ -137,18 +137,6 @@ alphatPhaseJayatillekeWallFunctionFvPatchScalarField
{} {}
alphatPhaseJayatillekeWallFunctionFvPatchScalarField::
alphatPhaseJayatillekeWallFunctionFvPatchScalarField
(
const alphatPhaseJayatillekeWallFunctionFvPatchScalarField& awfpsf
)
:
fixedValueFvPatchScalarField(awfpsf),
Prt_(awfpsf.Prt_)
{}
alphatPhaseJayatillekeWallFunctionFvPatchScalarField:: alphatPhaseJayatillekeWallFunctionFvPatchScalarField::
alphatPhaseJayatillekeWallFunctionFvPatchScalarField alphatPhaseJayatillekeWallFunctionFvPatchScalarField
( (

View File

@ -143,23 +143,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
alphatPhaseJayatillekeWallFunctionFvPatchScalarField alphatPhaseJayatillekeWallFunctionFvPatchScalarField
( (
const alphatPhaseJayatillekeWallFunctionFvPatchScalarField& const alphatPhaseJayatillekeWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatPhaseJayatillekeWallFunctionFvPatchScalarField
(
*this
)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
alphatPhaseJayatillekeWallFunctionFvPatchScalarField alphatPhaseJayatillekeWallFunctionFvPatchScalarField

View File

@ -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::
alphatWallBoilingWallFunctionFvPatchScalarField alphatWallBoilingWallFunctionFvPatchScalarField
( (

View File

@ -239,20 +239,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
alphatWallBoilingWallFunctionFvPatchScalarField alphatWallBoilingWallFunctionFvPatchScalarField
( (
const alphatWallBoilingWallFunctionFvPatchScalarField& const alphatWallBoilingWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatWallBoilingWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
alphatWallBoilingWallFunctionFvPatchScalarField alphatWallBoilingWallFunctionFvPatchScalarField

View File

@ -66,16 +66,6 @@ Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField
{} {}
Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField
(
const copiedFixedValueFvPatchScalarField& awfpsf
)
:
fixedValueFvPatchScalarField(awfpsf),
sourceFieldName_(awfpsf.sourceFieldName_)
{}
Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField Foam::copiedFixedValueFvPatchScalarField::copiedFixedValueFvPatchScalarField
( (
const copiedFixedValueFvPatchScalarField& awfpsf, const copiedFixedValueFvPatchScalarField& awfpsf,

View File

@ -93,20 +93,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
copiedFixedValueFvPatchScalarField copiedFixedValueFvPatchScalarField
( (
const copiedFixedValueFvPatchScalarField& const copiedFixedValueFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new copiedFixedValueFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
copiedFixedValueFvPatchScalarField copiedFixedValueFvPatchScalarField

View File

@ -78,19 +78,6 @@ fixedMultiPhaseHeatFluxFvPatchScalarField
{} {}
Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
fixedMultiPhaseHeatFluxFvPatchScalarField
(
const fixedMultiPhaseHeatFluxFvPatchScalarField& psf
)
:
fixedValueFvPatchScalarField(psf),
q_(psf.q_),
relax_(psf.relax_),
Tmin_(psf.Tmin_)
{}
Foam::fixedMultiPhaseHeatFluxFvPatchScalarField:: Foam::fixedMultiPhaseHeatFluxFvPatchScalarField::
fixedMultiPhaseHeatFluxFvPatchScalarField fixedMultiPhaseHeatFluxFvPatchScalarField
( (

View File

@ -105,20 +105,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
fixedMultiPhaseHeatFluxFvPatchScalarField fixedMultiPhaseHeatFluxFvPatchScalarField
( (
const fixedMultiPhaseHeatFluxFvPatchScalarField& const fixedMultiPhaseHeatFluxFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new fixedMultiPhaseHeatFluxFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
fixedMultiPhaseHeatFluxFvPatchScalarField fixedMultiPhaseHeatFluxFvPatchScalarField

View File

@ -212,8 +212,13 @@ while (pimple.correct())
// Update the fixedFluxPressure BCs to ensure flux consistency // Update the fixedFluxPressure BCs to ensure flux consistency
{ {
surfaceScalarField::Boundary phib(phi.boundaryField()); surfaceScalarField::Boundary phib
(
surfaceScalarField::Internal::null(),
phi.boundaryField()
);
phib = 0; phib = 0;
forAll(phases, phasei) forAll(phases, phasei)
{ {
phaseModel& phase = phases[phasei]; phaseModel& phase = phases[phasei];

View File

@ -195,8 +195,13 @@ while (pimple.correct())
// Update the fixedFluxPressure BCs to ensure flux consistency // Update the fixedFluxPressure BCs to ensure flux consistency
{ {
surfaceScalarField::Boundary phib(phi.boundaryField()); surfaceScalarField::Boundary phib
(
surfaceScalarField::Internal::null(),
phi.boundaryField()
);
phib = 0; phib = 0;
forAll(phases, phasei) forAll(phases, phasei)
{ {
phaseModel& phase = phases[phasei]; phaseModel& phase = phases[phasei];

View File

@ -162,15 +162,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphaContactAngleFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
alphaContactAngleFvPatchScalarField alphaContactAngleFvPatchScalarField
( (

View File

@ -162,15 +162,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphaContactAngleFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
alphaContactAngleFvPatchScalarField alphaContactAngleFvPatchScalarField
( (

View File

@ -74,19 +74,6 @@ hydrostaticDisplacementFvPatchVectorField
{} {}
Foam::hydrostaticDisplacementFvPatchVectorField::
hydrostaticDisplacementFvPatchVectorField
(
const hydrostaticDisplacementFvPatchVectorField& tdpvf
)
:
tractionDisplacementFvPatchVectorField(tdpvf),
rhoLiquid_(tdpvf.rhoLiquid_),
liquidSurfacePressure_(tdpvf.liquidSurfacePressure_),
liquidSurfacePoint_(tdpvf.liquidSurfacePoint_)
{}
Foam::hydrostaticDisplacementFvPatchVectorField:: Foam::hydrostaticDisplacementFvPatchVectorField::
hydrostaticDisplacementFvPatchVectorField hydrostaticDisplacementFvPatchVectorField
( (

View File

@ -97,20 +97,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
hydrostaticDisplacementFvPatchVectorField hydrostaticDisplacementFvPatchVectorField
( (
const hydrostaticDisplacementFvPatchVectorField& const hydrostaticDisplacementFvPatchVectorField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new hydrostaticDisplacementFvPatchVectorField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
hydrostaticDisplacementFvPatchVectorField hydrostaticDisplacementFvPatchVectorField

View File

@ -76,18 +76,6 @@ tractionDisplacementFvPatchVectorField
{} {}
Foam::tractionDisplacementFvPatchVectorField::
tractionDisplacementFvPatchVectorField
(
const tractionDisplacementFvPatchVectorField& tdpvf
)
:
fixedGradientFvPatchVectorField(tdpvf),
traction_(tdpvf.traction_),
pressure_(tdpvf.pressure_, false)
{}
Foam::tractionDisplacementFvPatchVectorField:: Foam::tractionDisplacementFvPatchVectorField::
tractionDisplacementFvPatchVectorField tractionDisplacementFvPatchVectorField
( (

View File

@ -98,20 +98,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
tractionDisplacementFvPatchVectorField tractionDisplacementFvPatchVectorField
( (
const tractionDisplacementFvPatchVectorField& const tractionDisplacementFvPatchVectorField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new tractionDisplacementFvPatchVectorField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
tractionDisplacementFvPatchVectorField tractionDisplacementFvPatchVectorField

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -82,18 +82,6 @@ tractionDisplacementCorrectionFvPatchVectorField
} }
tractionDisplacementCorrectionFvPatchVectorField::
tractionDisplacementCorrectionFvPatchVectorField
(
const tractionDisplacementCorrectionFvPatchVectorField& tdpvf
)
:
fixedGradientFvPatchVectorField(tdpvf),
traction_(tdpvf.traction_),
pressure_(tdpvf.pressure_)
{}
tractionDisplacementCorrectionFvPatchVectorField:: tractionDisplacementCorrectionFvPatchVectorField::
tractionDisplacementCorrectionFvPatchVectorField tractionDisplacementCorrectionFvPatchVectorField
( (

View File

@ -90,20 +90,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct as copy setting internal field reference //- Disallow copy without setting internal field reference
tractionDisplacementCorrectionFvPatchVectorField tractionDisplacementCorrectionFvPatchVectorField
( (
const tractionDisplacementCorrectionFvPatchVectorField& const tractionDisplacementCorrectionFvPatchVectorField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new tractionDisplacementCorrectionFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
tractionDisplacementCorrectionFvPatchVectorField tractionDisplacementCorrectionFvPatchVectorField

View File

@ -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}::
${typeName}FixedValueFvPatch${FieldType} ${typeName}FixedValueFvPatch${FieldType}
( (

View File

@ -85,20 +85,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
${typeName}FixedValueFvPatch${FieldType} ${typeName}FixedValueFvPatch${FieldType}
( (
const ${typeName}FixedValueFvPatch${FieldType}& const ${typeName}FixedValueFvPatch${FieldType}&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatch${FieldType} > clone() const
{
return tmp<fvPatch${FieldType} >
(
new ${typeName}FixedValueFvPatch${FieldType}(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
${typeName}FixedValueFvPatch${FieldType} ${typeName}FixedValueFvPatch${FieldType}

View File

@ -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}::
${typeName}FixedValuePointPatch${FieldType} ${typeName}FixedValuePointPatch${FieldType}
( (

View File

@ -85,20 +85,11 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
${typeName}FixedValuePointPatch${FieldType} ${typeName}FixedValuePointPatch${FieldType}
( (
const ${typeName}FixedValuePointPatch${FieldType}& const ${typeName}FixedValuePointPatch${FieldType}&
); ) = delete;
//- Construct and return a clone
virtual autoPtr<pointPatchField<${TemplateType}>> clone() const
{
return autoPtr<pointPatchField<${TemplateType}>>
(
new ${typeName}FixedValuePointPatch${FieldType}(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
${typeName}FixedValuePointPatch${FieldType} ${typeName}FixedValuePointPatch${FieldType}

View File

@ -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}::
${typeName}MixedValueFvPatch${FieldType} ${typeName}MixedValueFvPatch${FieldType}
( (

View File

@ -85,20 +85,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
${typeName}MixedValueFvPatch${FieldType} ${typeName}MixedValueFvPatch${FieldType}
( (
const ${typeName}MixedValueFvPatch${FieldType}& const ${typeName}MixedValueFvPatch${FieldType}&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatch${FieldType} > clone() const
{
return tmp<fvPatch${FieldType} >
(
new ${typeName}MixedValueFvPatch${FieldType}(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
${typeName}MixedValueFvPatch${FieldType} ${typeName}MixedValueFvPatch${FieldType}

View File

@ -91,18 +91,6 @@ turbulentMixingLengthDissipationRateInletFvPatchScalarField
} }
turbulentMixingLengthDissipationRateInletFvPatchScalarField::
turbulentMixingLengthDissipationRateInletFvPatchScalarField
(
const turbulentMixingLengthDissipationRateInletFvPatchScalarField& ptf
)
:
inletOutletFvPatchScalarField(ptf),
mixingLength_(ptf.mixingLength_),
kName_(ptf.kName_)
{}
turbulentMixingLengthDissipationRateInletFvPatchScalarField:: turbulentMixingLengthDissipationRateInletFvPatchScalarField::
turbulentMixingLengthDissipationRateInletFvPatchScalarField turbulentMixingLengthDissipationRateInletFvPatchScalarField
( (

View File

@ -132,23 +132,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
turbulentMixingLengthDissipationRateInletFvPatchScalarField turbulentMixingLengthDissipationRateInletFvPatchScalarField
( (
const turbulentMixingLengthDissipationRateInletFvPatchScalarField& const turbulentMixingLengthDissipationRateInletFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentMixingLengthDissipationRateInletFvPatchScalarField
(
*this
)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
turbulentMixingLengthDissipationRateInletFvPatchScalarField turbulentMixingLengthDissipationRateInletFvPatchScalarField

View File

@ -53,6 +53,7 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField
this->valueFraction() = 0.0; this->valueFraction() = 0.0;
} }
turbulentMixingLengthFrequencyInletFvPatchScalarField:: turbulentMixingLengthFrequencyInletFvPatchScalarField::
turbulentMixingLengthFrequencyInletFvPatchScalarField turbulentMixingLengthFrequencyInletFvPatchScalarField
( (
@ -67,6 +68,7 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField
kName_(ptf.kName_) kName_(ptf.kName_)
{} {}
turbulentMixingLengthFrequencyInletFvPatchScalarField:: turbulentMixingLengthFrequencyInletFvPatchScalarField::
turbulentMixingLengthFrequencyInletFvPatchScalarField turbulentMixingLengthFrequencyInletFvPatchScalarField
( (
@ -88,16 +90,6 @@ turbulentMixingLengthFrequencyInletFvPatchScalarField
this->valueFraction() = 0.0; this->valueFraction() = 0.0;
} }
turbulentMixingLengthFrequencyInletFvPatchScalarField::
turbulentMixingLengthFrequencyInletFvPatchScalarField
(
const turbulentMixingLengthFrequencyInletFvPatchScalarField& ptf
)
:
inletOutletFvPatchScalarField(ptf),
mixingLength_(ptf.mixingLength_),
kName_(ptf.kName_)
{}
turbulentMixingLengthFrequencyInletFvPatchScalarField:: turbulentMixingLengthFrequencyInletFvPatchScalarField::
turbulentMixingLengthFrequencyInletFvPatchScalarField turbulentMixingLengthFrequencyInletFvPatchScalarField

View File

@ -133,23 +133,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
turbulentMixingLengthFrequencyInletFvPatchScalarField turbulentMixingLengthFrequencyInletFvPatchScalarField
( (
const turbulentMixingLengthFrequencyInletFvPatchScalarField& const turbulentMixingLengthFrequencyInletFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentMixingLengthFrequencyInletFvPatchScalarField
(
*this
)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
turbulentMixingLengthFrequencyInletFvPatchScalarField turbulentMixingLengthFrequencyInletFvPatchScalarField

View File

@ -70,16 +70,6 @@ Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
{} {}
Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
(
const fixedShearStressFvPatchVectorField& ptf
)
:
fixedValueFvPatchVectorField(ptf),
tau0_(ptf.tau0_)
{}
Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField Foam::fixedShearStressFvPatchVectorField::fixedShearStressFvPatchVectorField
( (
const fixedShearStressFvPatchVectorField& ptf, const fixedShearStressFvPatchVectorField& ptf,

View File

@ -89,20 +89,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
fixedShearStressFvPatchVectorField fixedShearStressFvPatchVectorField
( (
const fixedShearStressFvPatchVectorField& const fixedShearStressFvPatchVectorField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new fixedShearStressFvPatchVectorField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
fixedShearStressFvPatchVectorField fixedShearStressFvPatchVectorField

View File

@ -83,20 +83,6 @@ Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField
{} {}
Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField
(
const porousBafflePressureFvPatchField& ptf
)
:
fixedJumpFvPatchField<scalar>(ptf),
phiName_(ptf.phiName_),
rhoName_(ptf.rhoName_),
D_(ptf.D_),
I_(ptf.I_),
length_(ptf.length_)
{}
Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField Foam::porousBafflePressureFvPatchField::porousBafflePressureFvPatchField
( (
const porousBafflePressureFvPatchField& ptf, const porousBafflePressureFvPatchField& ptf,

View File

@ -148,20 +148,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
porousBafflePressureFvPatchField porousBafflePressureFvPatchField
( (
const porousBafflePressureFvPatchField& const porousBafflePressureFvPatchField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchField<scalar>> clone() const
{
return tmp<fvPatchField<scalar>>
(
new porousBafflePressureFvPatchField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
porousBafflePressureFvPatchField porousBafflePressureFvPatchField

View File

@ -286,21 +286,6 @@ epsilonWallFunctionFvPatchScalarField
{} {}
Foam::epsilonWallFunctionFvPatchScalarField::
epsilonWallFunctionFvPatchScalarField
(
const epsilonWallFunctionFvPatchScalarField& ewfpsf
)
:
fixedValueFvPatchField<scalar>(ewfpsf),
G_(),
epsilon_(),
initialised_(false),
master_(-1),
cornerWeights_()
{}
Foam::epsilonWallFunctionFvPatchScalarField:: Foam::epsilonWallFunctionFvPatchScalarField::
epsilonWallFunctionFvPatchScalarField epsilonWallFunctionFvPatchScalarField
( (

View File

@ -179,20 +179,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
epsilonWallFunctionFvPatchScalarField epsilonWallFunctionFvPatchScalarField
( (
const epsilonWallFunctionFvPatchScalarField& const epsilonWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new epsilonWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
epsilonWallFunctionFvPatchScalarField epsilonWallFunctionFvPatchScalarField

View File

@ -71,15 +71,6 @@ fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField
{} {}
fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField
(
const fWallFunctionFvPatchScalarField& v2wfpsf
)
:
fixedValueFvPatchField<scalar>(v2wfpsf)
{}
fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField fWallFunctionFvPatchScalarField::fWallFunctionFvPatchScalarField
( (
const fWallFunctionFvPatchScalarField& v2wfpsf, const fWallFunctionFvPatchScalarField& v2wfpsf,

View File

@ -103,20 +103,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
fWallFunctionFvPatchScalarField fWallFunctionFvPatchScalarField
( (
const fWallFunctionFvPatchScalarField& const fWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new fWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
fWallFunctionFvPatchScalarField fWallFunctionFvPatchScalarField

View File

@ -71,16 +71,6 @@ kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField
{} {}
kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField
(
const kLowReWallFunctionFvPatchScalarField& kwfpsf
)
:
fixedValueFvPatchField<scalar>(kwfpsf),
Ceps2_(kwfpsf.Ceps2_)
{}
kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField kLowReWallFunctionFvPatchScalarField::kLowReWallFunctionFvPatchScalarField
( (
const kLowReWallFunctionFvPatchScalarField& kwfpsf, const kLowReWallFunctionFvPatchScalarField& kwfpsf,

View File

@ -113,20 +113,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
kLowReWallFunctionFvPatchScalarField kLowReWallFunctionFvPatchScalarField
( (
const kLowReWallFunctionFvPatchScalarField& const kLowReWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new kLowReWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
kLowReWallFunctionFvPatchScalarField kLowReWallFunctionFvPatchScalarField

View File

@ -64,16 +64,6 @@ Foam::kqRWallFunctionFvPatchField<Type>::kqRWallFunctionFvPatchField
{} {}
template<class Type>
Foam::kqRWallFunctionFvPatchField<Type>::kqRWallFunctionFvPatchField
(
const kqRWallFunctionFvPatchField& tkqrwfpf
)
:
zeroGradientFvPatchField<Type>(tkqrwfpf)
{}
template<class Type> template<class Type>
Foam::kqRWallFunctionFvPatchField<Type>::kqRWallFunctionFvPatchField Foam::kqRWallFunctionFvPatchField<Type>::kqRWallFunctionFvPatchField
( (

View File

@ -102,20 +102,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
kqRWallFunctionFvPatchField kqRWallFunctionFvPatchField
( (
const kqRWallFunctionFvPatchField& const kqRWallFunctionFvPatchField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchField<Type>> clone() const
{
return tmp<fvPatchField<Type>>
(
new kqRWallFunctionFvPatchField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
kqRWallFunctionFvPatchField kqRWallFunctionFvPatchField

View File

@ -77,15 +77,6 @@ nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField
{} {}
nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField
(
const nutLowReWallFunctionFvPatchScalarField& nlrwfpsf
)
:
nutWallFunctionFvPatchScalarField(nlrwfpsf)
{}
nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField nutLowReWallFunctionFvPatchScalarField::nutLowReWallFunctionFvPatchScalarField
( (
const nutLowReWallFunctionFvPatchScalarField& nlrwfpsf, const nutLowReWallFunctionFvPatchScalarField& nlrwfpsf,

View File

@ -107,20 +107,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutLowReWallFunctionFvPatchScalarField nutLowReWallFunctionFvPatchScalarField
( (
const nutLowReWallFunctionFvPatchScalarField& const nutLowReWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutLowReWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutLowReWallFunctionFvPatchScalarField nutLowReWallFunctionFvPatchScalarField

View File

@ -260,17 +260,6 @@ nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField
{} {}
nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField
(
const nutURoughWallFunctionFvPatchScalarField& rwfpsf
)
:
nutUWallFunctionFvPatchScalarField(rwfpsf),
Ks_(rwfpsf.Ks_),
Cs_(rwfpsf.Cs_)
{}
nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField nutURoughWallFunctionFvPatchScalarField::nutURoughWallFunctionFvPatchScalarField
( (
const nutURoughWallFunctionFvPatchScalarField& rwfpsf, const nutURoughWallFunctionFvPatchScalarField& rwfpsf,

View File

@ -139,20 +139,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutURoughWallFunctionFvPatchScalarField nutURoughWallFunctionFvPatchScalarField
( (
const nutURoughWallFunctionFvPatchScalarField& const nutURoughWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutURoughWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutURoughWallFunctionFvPatchScalarField nutURoughWallFunctionFvPatchScalarField

View File

@ -167,16 +167,6 @@ nutUSpaldingWallFunctionFvPatchScalarField
{} {}
nutUSpaldingWallFunctionFvPatchScalarField::
nutUSpaldingWallFunctionFvPatchScalarField
(
const nutUSpaldingWallFunctionFvPatchScalarField& wfpsf
)
:
nutWallFunctionFvPatchScalarField(wfpsf)
{}
nutUSpaldingWallFunctionFvPatchScalarField:: nutUSpaldingWallFunctionFvPatchScalarField::
nutUSpaldingWallFunctionFvPatchScalarField nutUSpaldingWallFunctionFvPatchScalarField
( (

View File

@ -123,20 +123,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutUSpaldingWallFunctionFvPatchScalarField nutUSpaldingWallFunctionFvPatchScalarField
( (
const nutUSpaldingWallFunctionFvPatchScalarField& const nutUSpaldingWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUSpaldingWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutUSpaldingWallFunctionFvPatchScalarField nutUSpaldingWallFunctionFvPatchScalarField

View File

@ -152,18 +152,6 @@ nutUTabulatedWallFunctionFvPatchScalarField
{} {}
nutUTabulatedWallFunctionFvPatchScalarField::
nutUTabulatedWallFunctionFvPatchScalarField
(
const nutUTabulatedWallFunctionFvPatchScalarField& wfpsf
)
:
nutWallFunctionFvPatchScalarField(wfpsf),
uPlusTableName_(wfpsf.uPlusTableName_),
uPlusTable_(wfpsf.uPlusTable_)
{}
nutUTabulatedWallFunctionFvPatchScalarField:: nutUTabulatedWallFunctionFvPatchScalarField::
nutUTabulatedWallFunctionFvPatchScalarField nutUTabulatedWallFunctionFvPatchScalarField
( (

View File

@ -131,20 +131,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutUTabulatedWallFunctionFvPatchScalarField nutUTabulatedWallFunctionFvPatchScalarField
( (
const nutUTabulatedWallFunctionFvPatchScalarField& const nutUTabulatedWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUTabulatedWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutUTabulatedWallFunctionFvPatchScalarField nutUTabulatedWallFunctionFvPatchScalarField

View File

@ -160,15 +160,6 @@ nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField
{} {}
nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField
(
const nutUWallFunctionFvPatchScalarField& sawfpsf
)
:
nutWallFunctionFvPatchScalarField(sawfpsf)
{}
nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField nutUWallFunctionFvPatchScalarField::nutUWallFunctionFvPatchScalarField
( (
const nutUWallFunctionFvPatchScalarField& sawfpsf, const nutUWallFunctionFvPatchScalarField& sawfpsf,

View File

@ -109,20 +109,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutUWallFunctionFvPatchScalarField nutUWallFunctionFvPatchScalarField
( (
const nutUWallFunctionFvPatchScalarField& const nutUWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutUWallFunctionFvPatchScalarField nutUWallFunctionFvPatchScalarField

View File

@ -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 Foam::nutWallFunctionFvPatchScalarField::nutWallFunctionFvPatchScalarField
( (
const nutWallFunctionFvPatchScalarField& wfpsf, const nutWallFunctionFvPatchScalarField& wfpsf,

View File

@ -144,11 +144,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutWallFunctionFvPatchScalarField nutWallFunctionFvPatchScalarField
( (
const nutWallFunctionFvPatchScalarField& const nutWallFunctionFvPatchScalarField&
); ) = delete;
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutWallFunctionFvPatchScalarField nutWallFunctionFvPatchScalarField

View File

@ -172,17 +172,6 @@ nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField
{} {}
nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField
(
const nutkRoughWallFunctionFvPatchScalarField& rwfpsf
)
:
nutkWallFunctionFvPatchScalarField(rwfpsf),
Ks_(rwfpsf.Ks_),
Cs_(rwfpsf.Cs_)
{}
nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField nutkRoughWallFunctionFvPatchScalarField::nutkRoughWallFunctionFvPatchScalarField
( (
const nutkRoughWallFunctionFvPatchScalarField& rwfpsf, const nutkRoughWallFunctionFvPatchScalarField& rwfpsf,

View File

@ -143,20 +143,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutkRoughWallFunctionFvPatchScalarField nutkRoughWallFunctionFvPatchScalarField
( (
const nutkRoughWallFunctionFvPatchScalarField& const nutkRoughWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutkRoughWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutkRoughWallFunctionFvPatchScalarField nutkRoughWallFunctionFvPatchScalarField

View File

@ -113,15 +113,6 @@ nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField
{} {}
nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField
(
const nutkWallFunctionFvPatchScalarField& wfpsf
)
:
nutWallFunctionFvPatchScalarField(wfpsf)
{}
nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField nutkWallFunctionFvPatchScalarField::nutkWallFunctionFvPatchScalarField
( (
const nutkWallFunctionFvPatchScalarField& wfpsf, const nutkWallFunctionFvPatchScalarField& wfpsf,

View File

@ -106,20 +106,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
nutkWallFunctionFvPatchScalarField nutkWallFunctionFvPatchScalarField
( (
const nutkWallFunctionFvPatchScalarField& const nutkWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutkWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
nutkWallFunctionFvPatchScalarField nutkWallFunctionFvPatchScalarField

View File

@ -331,22 +331,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
{} {}
omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
(
const omegaWallFunctionFvPatchScalarField& owfpsf
)
:
fixedValueFvPatchField<scalar>(owfpsf),
beta1_(owfpsf.beta1_),
blended_(owfpsf.blended_),
G_(),
omega_(),
initialised_(false),
master_(-1),
cornerWeights_()
{}
omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
( (
const omegaWallFunctionFvPatchScalarField& owfpsf, const omegaWallFunctionFvPatchScalarField& owfpsf,

View File

@ -187,20 +187,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
omegaWallFunctionFvPatchScalarField omegaWallFunctionFvPatchScalarField
( (
const omegaWallFunctionFvPatchScalarField& const omegaWallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new omegaWallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
omegaWallFunctionFvPatchScalarField omegaWallFunctionFvPatchScalarField

View File

@ -70,15 +70,6 @@ v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField
{} {}
v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField
(
const v2WallFunctionFvPatchScalarField& v2wfpsf
)
:
fixedValueFvPatchField<scalar>(v2wfpsf)
{}
v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField v2WallFunctionFvPatchScalarField::v2WallFunctionFvPatchScalarField
( (
const v2WallFunctionFvPatchScalarField& v2wfpsf, const v2WallFunctionFvPatchScalarField& v2wfpsf,

View File

@ -105,20 +105,11 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
v2WallFunctionFvPatchScalarField v2WallFunctionFvPatchScalarField
( (
const v2WallFunctionFvPatchScalarField& const v2WallFunctionFvPatchScalarField&
); ) = delete;
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new v2WallFunctionFvPatchScalarField(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
v2WallFunctionFvPatchScalarField v2WallFunctionFvPatchScalarField

View File

@ -355,42 +355,6 @@ Boundary
} }
template<class Type, template<class> class PatchField, class GeoMesh>
Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::
Boundary
(
const typename GeometricField<Type, PatchField, GeoMesh>::
Boundary& btf
)
:
FieldField<PatchField, Type>(btf),
bmesh_(btf.bmesh_)
{
if (debug)
{
InfoInFunction << endl;
}
}
template<class Type, template<class> class PatchField, class GeoMesh>
Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::
Boundary
(
typename GeometricField<Type, PatchField, GeoMesh>::
Boundary&& btf
)
:
FieldField<PatchField, Type>(move(btf)),
bmesh_(btf.bmesh_)
{
if (debug)
{
InfoInFunction << endl;
}
}
template<class Type, template<class> class PatchField, class GeoMesh> template<class Type, template<class> class PatchField, class GeoMesh>
Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary:: Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::
Boundary Boundary

View File

@ -449,7 +449,7 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField
timeIndex_(gf.timeIndex()), timeIndex_(gf.timeIndex()),
field0Ptr_(nullptr), field0Ptr_(nullptr),
fieldPrevIterPtr_(nullptr), fieldPrevIterPtr_(nullptr),
boundaryField_(move(gf.boundaryField_)) boundaryField_(*this, gf.boundaryField_)
{ {
if (debug) if (debug)
{ {

View File

@ -130,12 +130,7 @@ public:
//- Construct from a BoundaryMesh, //- Construct from a BoundaryMesh,
// reference to the internal field // reference to the internal field
// and a patch field type // and a patch field type
Boundary Boundary(const BoundaryMesh&, const Internal&, const word&);
(
const BoundaryMesh&,
const Internal&,
const word&
);
//- Construct from a BoundaryMesh, //- Construct from a BoundaryMesh,
// reference to the internal field // reference to the internal field
@ -160,49 +155,24 @@ public:
); );
//- Construct as copy setting the reference to the internal field //- Construct as copy setting the reference to the internal field
Boundary Boundary(const Internal&, const Boundary&);
(
const Internal&,
const Boundary&
);
//- Copy constructor //- Copy constructor deleted
// Dangerous because Field may be set to a field which gets deleted // as it would not set the internalField reference correctly
// Need new type of BoundaryField, one which is part of a geometric Boundary(const Boundary&) = delete;
// field for which snGrad etc. may be called and a free standing
// BoundaryField for which such operations are unavailable.
Boundary
(
const Boundary&
);
//- Move constructor //- Move constructor deleted
// Dangerous because Field may be set to a field which gets deleted // as it would not set the internalField reference correctly
// Need new type of BoundaryField, one which is part of a geometric Boundary(Boundary&&) = delete;
// field for which snGrad etc. may be called and a free standing
// BoundaryField for which such operations are unavailable.
Boundary
(
Boundary&&
);
//- Construct from dictionary //- Construct from dictionary
Boundary Boundary(const BoundaryMesh&, const Internal&, const dictionary&);
(
const BoundaryMesh&,
const Internal&,
const dictionary&
);
// Member Functions // Member Functions
//- Read the boundary field //- Read the boundary field
void readField void readField(const Internal& field, const dictionary& dict);
(
const Internal& field,
const dictionary& dict
);
//- Update the boundary condition coefficients //- Update the boundary condition coefficients
void updateCoeffs(); void updateCoeffs();
@ -379,22 +349,13 @@ public:
); );
//- Copy constructor //- Copy constructor
GeometricField GeometricField(const GeometricField<Type, PatchField, GeoMesh>&);
(
const GeometricField<Type, PatchField, GeoMesh>&
);
//- Move constructor //- Move constructor
GeometricField GeometricField(GeometricField<Type, PatchField, GeoMesh>&&);
(
GeometricField<Type, PatchField, GeoMesh>&&
);
//- Construct as copy of tmp<GeometricField> deleting argument //- Construct as copy of tmp<GeometricField> deleting argument
GeometricField GeometricField(const tmp<GeometricField<Type, PatchField, GeoMesh>>&);
(
const tmp<GeometricField<Type, PatchField, GeoMesh>>&
);
//- Construct as copy resetting IO parameters //- Construct as copy resetting IO parameters
GeometricField GeometricField

View File

@ -81,18 +81,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new basicSymmetryPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
basicSymmetryPointPatchField basicSymmetryPointPatchField
( (

View File

@ -84,18 +84,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new calculatedPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
calculatedPointPatchField calculatedPointPatchField
( (

View File

@ -85,9 +85,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const = 0;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
coupledPointPatchField coupledPointPatchField
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -85,18 +85,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new fixedValuePointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedValuePointPatchField fixedValuePointPatchField
( (

View File

@ -90,18 +90,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new valuePointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
valuePointPatchField valuePointPatchField
( (
@ -109,8 +97,8 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
valuePointPatchField(const valuePointPatchField<Type>&) = default; valuePointPatchField(const valuePointPatchField<Type>&) = delete;
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual autoPtr<pointPatchField<Type>> clone virtual autoPtr<pointPatchField<Type>> clone

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -84,18 +84,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new zeroGradientPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
zeroGradientPointPatchField zeroGradientPointPatchField
( (

View File

@ -90,18 +90,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new cyclicPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
cyclicPointPatchField cyclicPointPatchField
( (

View File

@ -85,18 +85,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new cyclicSlipPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
cyclicSlipPointPatchField cyclicSlipPointPatchField
( (

View File

@ -85,18 +85,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new emptyPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
emptyPointPatchField emptyPointPatchField
( (

View File

@ -89,18 +89,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new processorPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
processorPointPatchField processorPointPatchField
( (

View File

@ -93,18 +93,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new processorCyclicPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
processorCyclicPointPatchField processorCyclicPointPatchField
( (

View File

@ -85,18 +85,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new symmetryPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
symmetryPointPatchField symmetryPointPatchField
( (

View File

@ -90,18 +90,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new symmetryPlanePointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
symmetryPlanePointPatchField symmetryPlanePointPatchField
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -85,18 +85,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new wedgePointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
wedgePointPatchField wedgePointPatchField
( (

View File

@ -136,18 +136,6 @@ Foam::codedFixedValuePointPatchField<Type>::codedFixedValuePointPatchField
} }
template<class Type>
Foam::codedFixedValuePointPatchField<Type>::codedFixedValuePointPatchField
(
const codedFixedValuePointPatchField<Type>& ptf
)
:
fixedValuePointPatchField<Type>(ptf),
CodedBase<codedFixedValuePointPatchFieldBase>(ptf),
redirectPatchFieldPtr_()
{}
template<class Type> template<class Type>
Foam::codedFixedValuePointPatchField<Type>::codedFixedValuePointPatchField Foam::codedFixedValuePointPatchField<Type>::codedFixedValuePointPatchField
( (

View File

@ -159,20 +159,11 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
codedFixedValuePointPatchField codedFixedValuePointPatchField
( (
const codedFixedValuePointPatchField<Type>& const codedFixedValuePointPatchField<Type>&
); ) = delete;
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new codedFixedValuePointPatchField<Type>(*this)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
codedFixedValuePointPatchField codedFixedValuePointPatchField

View File

@ -102,18 +102,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new fixedNormalSlipPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedNormalSlipPointPatchField fixedNormalSlipPointPatchField
( (
@ -137,6 +125,7 @@ public:
); );
} }
// Member Functions // Member Functions
//- Update the patch field //- Update the patch field

View File

@ -84,18 +84,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new slipPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
slipPointPatchField slipPointPatchField
( (

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -86,18 +86,6 @@ uniformFixedValuePointPatchField
} }
template<class Type>
Foam::uniformFixedValuePointPatchField<Type>::
uniformFixedValuePointPatchField
(
const uniformFixedValuePointPatchField<Type>& ptf
)
:
fixedValuePointPatchField<Type>(ptf),
uniformValue_(ptf.uniformValue_, false)
{}
template<class Type> template<class Type>
Foam::uniformFixedValuePointPatchField<Type>:: Foam::uniformFixedValuePointPatchField<Type>::
uniformFixedValuePointPatchField uniformFixedValuePointPatchField

View File

@ -102,23 +102,11 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Copy constructor //- Disallow copy without setting internal field reference
uniformFixedValuePointPatchField uniformFixedValuePointPatchField
( (
const uniformFixedValuePointPatchField<Type>& const uniformFixedValuePointPatchField<Type>&
); ) = delete;
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new uniformFixedValuePointPatchField<Type>
(
*this
)
);
}
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference
uniformFixedValuePointPatchField uniformFixedValuePointPatchField

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -74,19 +74,6 @@ Foam::pointPatchField<Type>::pointPatchField
{} {}
template<class Type>
Foam::pointPatchField<Type>::pointPatchField
(
const pointPatchField<Type>& ptf
)
:
patch_(ptf.patch_),
internalField_(ptf.internalField_),
updated_(false),
patchType_(ptf.patchType_)
{}
template<class Type> template<class Type>
Foam::pointPatchField<Type>::pointPatchField Foam::pointPatchField<Type>::pointPatchField
( (

Some files were not shown because too many files have changed in this diff Show More