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&
);
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new smoluchowskiJumpTFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference
smoluchowskiJumpTFvPatchScalarField
(

View File

@ -115,15 +115,6 @@ public:
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
maxwellSlipUFvPatchVectorField
(

View File

@ -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<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>
Foam::mixedFixedValueSlipFvPatchField<Type>::mixedFixedValueSlipFvPatchField
(

View File

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

View File

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

View File

@ -83,15 +83,6 @@ public:
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
adjointOutletPressureFvPatchScalarField
(

View File

@ -83,15 +83,6 @@ public:
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
adjointOutletVelocityFvPatchVectorField
(

View File

@ -162,15 +162,6 @@ public:
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
alphaContactAngleFvPatchScalarField
(

View File

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

View File

@ -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<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new JohnsonJacksonParticleSlipFvPatchVectorField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
JohnsonJacksonParticleSlipFvPatchVectorField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new JohnsonJacksonParticleThetaFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
JohnsonJacksonParticleThetaFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatFixedDmdtfWallBoilingWallFunctionFvPatchScalarField
(
*this
)
);
}
) = delete;
//- Copy constructor setting internal field reference
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
(

View File

@ -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

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatPhaseJayatillekeWallFunctionFvPatchScalarField
(
*this
)
);
}
) = delete;
//- Copy constructor setting internal field reference
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
(

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatWallBoilingWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
alphatWallBoilingWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new copiedFixedValueFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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::
fixedMultiPhaseHeatFluxFvPatchScalarField
(

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new fixedMultiPhaseHeatFluxFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
fixedMultiPhaseHeatFluxFvPatchScalarField

View File

@ -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];

View File

@ -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];

View File

@ -162,15 +162,6 @@ public:
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
alphaContactAngleFvPatchScalarField
(

View File

@ -162,15 +162,6 @@ public:
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
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::
hydrostaticDisplacementFvPatchVectorField
(

View File

@ -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<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new hydrostaticDisplacementFvPatchVectorField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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::
tractionDisplacementFvPatchVectorField
(

View File

@ -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<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new tractionDisplacementFvPatchVectorField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
tractionDisplacementFvPatchVectorField

View File

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

View File

@ -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<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new tractionDisplacementCorrectionFvPatchVectorField(*this)
);
}
) = delete;
//- Construct as copy setting internal field reference
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}
(

View File

@ -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<fvPatch${FieldType} > clone() const
{
return tmp<fvPatch${FieldType} >
(
new ${typeName}FixedValueFvPatch${FieldType}(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
${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}
(

View File

@ -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<pointPatchField<${TemplateType}>> clone() const
{
return autoPtr<pointPatchField<${TemplateType}>>
(
new ${typeName}FixedValuePointPatch${FieldType}(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
${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}
(

View File

@ -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<fvPatch${FieldType} > clone() const
{
return tmp<fvPatch${FieldType} >
(
new ${typeName}MixedValueFvPatch${FieldType}(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
${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
(

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentMixingLengthDissipationRateInletFvPatchScalarField
(
*this
)
);
}
) = delete;
//- Copy constructor setting internal field reference
turbulentMixingLengthDissipationRateInletFvPatchScalarField

View File

@ -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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentMixingLengthFrequencyInletFvPatchScalarField
(
*this
)
);
}
) = delete;
//- Copy constructor setting internal field reference
turbulentMixingLengthFrequencyInletFvPatchScalarField

View File

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

View File

@ -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<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new fixedShearStressFvPatchVectorField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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
(
const porousBafflePressureFvPatchField& ptf,

View File

@ -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<fvPatchField<scalar>> clone() const
{
return tmp<fvPatchField<scalar>>
(
new porousBafflePressureFvPatchField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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::
epsilonWallFunctionFvPatchScalarField
(

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new epsilonWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
epsilonWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new fWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
fWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new kLowReWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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>
Foam::kqRWallFunctionFvPatchField<Type>::kqRWallFunctionFvPatchField
(

View File

@ -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<fvPatchField<Type>> clone() const
{
return tmp<fvPatchField<Type>>
(
new kqRWallFunctionFvPatchField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
kqRWallFunctionFvPatchField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutLowReWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
nutLowReWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutURoughWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
nutURoughWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUSpaldingWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
nutUSpaldingWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUTabulatedWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
nutUTabulatedWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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
(
const nutWallFunctionFvPatchScalarField& wfpsf,

View File

@ -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

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutkRoughWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
nutkRoughWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutkWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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
(
const omegaWallFunctionFvPatchScalarField& owfpsf,

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new omegaWallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
omegaWallFunctionFvPatchScalarField

View File

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

View File

@ -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<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new v2WallFunctionFvPatchScalarField(*this)
);
}
) = delete;
//- Copy constructor setting internal field reference
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>
Foam::GeometricField<Type, PatchField, GeoMesh>::Boundary::
Boundary

View File

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

View File

@ -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<Type, PatchField, GeoMesh>&
);
GeometricField(const GeometricField<Type, PatchField, GeoMesh>&);
//- Move constructor
GeometricField
(
GeometricField<Type, PatchField, GeoMesh>&&
);
GeometricField(GeometricField<Type, PatchField, GeoMesh>&&);
//- Construct as copy of tmp<GeometricField> deleting argument
GeometricField
(
const tmp<GeometricField<Type, PatchField, GeoMesh>>&
);
GeometricField(const tmp<GeometricField<Type, PatchField, GeoMesh>>&);
//- Construct as copy resetting IO parameters
GeometricField

View File

@ -81,18 +81,6 @@ public:
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
basicSymmetryPointPatchField
(

View File

@ -84,18 +84,6 @@ public:
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
calculatedPointPatchField
(

View File

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

View File

@ -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<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new fixedValuePointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference
fixedValuePointPatchField
(

View File

@ -90,18 +90,6 @@ public:
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
valuePointPatchField
(
@ -109,8 +97,8 @@ public:
const DimensionedField<Type, pointMesh>&
);
//- Copy constructor
valuePointPatchField(const valuePointPatchField<Type>&) = default;
//- Disallow copy without setting internal field reference
valuePointPatchField(const valuePointPatchField<Type>&) = delete;
//- Construct and return a clone setting internal field reference
virtual autoPtr<pointPatchField<Type>> clone

View File

@ -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<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new zeroGradientPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference
zeroGradientPointPatchField
(

View File

@ -90,18 +90,6 @@ public:
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
cyclicPointPatchField
(

View File

@ -85,18 +85,6 @@ public:
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
cyclicSlipPointPatchField
(

View File

@ -85,18 +85,6 @@ public:
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
emptyPointPatchField
(

View File

@ -89,18 +89,6 @@ public:
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
processorPointPatchField
(

View File

@ -93,18 +93,6 @@ public:
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
processorCyclicPointPatchField
(

View File

@ -85,18 +85,6 @@ public:
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
symmetryPointPatchField
(

View File

@ -90,18 +90,6 @@ public:
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
symmetryPlanePointPatchField
(

View File

@ -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<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new wedgePointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference
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>
Foam::codedFixedValuePointPatchField<Type>::codedFixedValuePointPatchField
(

View File

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

View File

@ -102,18 +102,6 @@ public:
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
fixedNormalSlipPointPatchField
(
@ -137,6 +125,7 @@ public:
);
}
// Member Functions
//- Update the patch field

View File

@ -84,18 +84,6 @@ public:
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
slipPointPatchField
(

View File

@ -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<class Type>
Foam::uniformFixedValuePointPatchField<Type>::
uniformFixedValuePointPatchField
(
const uniformFixedValuePointPatchField<Type>& ptf
)
:
fixedValuePointPatchField<Type>(ptf),
uniformValue_(ptf.uniformValue_, false)
{}
template<class Type>
Foam::uniformFixedValuePointPatchField<Type>::
uniformFixedValuePointPatchField

View File

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

View File

@ -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<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>
Foam::pointPatchField<Type>::pointPatchField
(

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