Use factory Clone for patch fields

This commit is contained in:
Mark OLESEN
2024-01-23 11:22:19 +00:00
committed by Andrew Heather
parent 7cfd053079
commit 152eceeb56
361 changed files with 3157 additions and 5623 deletions

View File

@ -110,15 +110,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
( (
@ -126,18 +117,22 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new smoluchowskiJumpTFvPatchScalarField(*this, iF)
);
} }
// Mapping functions // Mapping functions
//- Map (and resize as needed) from self given a mapping object //- Map (and resize as needed) from self given a mapping object

View File

@ -118,15 +118,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
( (
@ -134,16 +125,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new maxwellSlipUFvPatchVectorField(*this, iF)
);
} }

View File

@ -135,15 +135,6 @@ public:
const fixedRhoFvPatchScalarField& const fixedRhoFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new fixedRhoFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedRhoFvPatchScalarField fixedRhoFvPatchScalarField
( (
@ -151,16 +142,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new fixedRhoFvPatchScalarField(*this, iF)
);
} }

View File

@ -196,18 +196,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentTemperatureTwoPhaseRadCoupledMixedFvPatchScalarField
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
turbulentTemperatureTwoPhaseRadCoupledMixedFvPatchScalarField turbulentTemperatureTwoPhaseRadCoupledMixedFvPatchScalarField
( (
@ -215,20 +203,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new turbulentTemperatureTwoPhaseRadCoupledMixedFvPatchScalarField
(
*this,
iF
)
);
} }

View File

@ -85,15 +85,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
( (
@ -101,16 +92,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new adjointOutletPressureFvPatchScalarField(*this, iF)
);
} }

View File

@ -85,15 +85,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
( (
@ -101,16 +92,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new adjointOutletVelocityFvPatchVectorField(*this, iF)
);
} }

View File

@ -164,15 +164,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
( (
@ -180,16 +171,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new alphaContactAngleFvPatchScalarField(*this, iF)
);
} }

View File

@ -164,15 +164,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
( (
@ -180,16 +171,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new alphaContactAngleFvPatchScalarField(*this, iF)
);
} }

View File

@ -100,15 +100,6 @@ public:
const tractionDisplacementFvPatchVectorField& const tractionDisplacementFvPatchVectorField&
); );
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new tractionDisplacementFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
tractionDisplacementFvPatchVectorField tractionDisplacementFvPatchVectorField
( (
@ -116,16 +107,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new tractionDisplacementFvPatchVectorField(*this, iF)
);
} }

View File

@ -98,15 +98,6 @@ public:
const tractionDisplacementCorrectionFvPatchVectorField& const tractionDisplacementCorrectionFvPatchVectorField&
); );
//- 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
( (
@ -114,16 +105,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new tractionDisplacementCorrectionFvPatchVectorField(*this, iF)
);
} }

View File

@ -107,15 +107,6 @@ public:
const ${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)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
${typeName}FixedValueFvPatch${FieldType} ${typeName}FixedValueFvPatch${FieldType}
( (
@ -123,16 +114,19 @@ public:
const DimensionedField<${TemplateType}, volMesh>& const DimensionedField<${TemplateType}, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatch${FieldType}> clone virtual tmp<fvPatchField<${TemplateType}>> clone() const
{
return fvPatchField<${TemplateType}>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<${TemplateType}>> clone
( (
const DimensionedField<${TemplateType}, volMesh>& iF const DimensionedField<${TemplateType}, volMesh>& iF
) const ) const
{ {
return tmp<fvPatch${FieldType}> return fvPatchField<${TemplateType}>::Clone(*this, iF);
(
new ${typeName}FixedValueFvPatch${FieldType}(*this, iF)
);
} }

View File

@ -108,15 +108,6 @@ public:
const ${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)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
${typeName}FixedValuePointPatch${FieldType} ${typeName}FixedValuePointPatch${FieldType}
( (
@ -124,16 +115,19 @@ public:
const DimensionedField<${TemplateType}, pointMesh>& const DimensionedField<${TemplateType}, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<${TemplateType}>> clone() const
{
return pointPatchField<${TemplateType}>::Clone(*this);
}
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual autoPtr<pointPatchField<${TemplateType}>> clone virtual autoPtr<pointPatchField<${TemplateType}>> clone
( (
const DimensionedField<${TemplateType}, pointMesh>& iF const DimensionedField<${TemplateType}, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<${TemplateType}>> return pointPatchField<${TemplateType}>::Clone(*this, iF);
(
new ${typeName}FixedValuePointPatch${FieldType}(*this, iF)
);
} }

View File

@ -107,15 +107,6 @@ public:
const ${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)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
${typeName}MixedValueFvPatch${FieldType} ${typeName}MixedValueFvPatch${FieldType}
( (
@ -123,16 +114,19 @@ public:
const DimensionedField<${TemplateType}, volMesh>& const DimensionedField<${TemplateType}, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatch${FieldType}> clone virtual tmp<fvPatchField<${TemplateType}>> clone() const
{
return fvPatchField<${TemplateType}>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<${TemplateType}>> clone
( (
const DimensionedField<${TemplateType}, volMesh>& iF const DimensionedField<${TemplateType}, volMesh>& iF
) const ) const
{ {
return tmp<fvPatch${FieldType}> return fvPatchField<${TemplateType}>::Clone(*this, iF);
(
new ${typeName}MixedValueFvPatch${FieldType}(*this, iF)
);
} }

View File

@ -83,18 +83,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
( (
@ -102,20 +90,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new basicSymmetryPointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -78,14 +78,13 @@ Foam::calculatedPointPatchField<Type>::calculatedPointPatchField
template<class Type> template<class Type>
template<class Type2>
Foam::autoPtr<Foam::pointPatchField<Type>> Foam::autoPtr<Foam::pointPatchField<Type>>
Foam::pointPatchField<Type>::NewCalculatedType Foam::pointPatchField<Type>::NewCalculatedType
( (
const pointPatchField<Type2>& pf const pointPatch& p
) )
{ {
auto* patchTypeCtor = patchConstructorTable(pf.patch().type()); auto* patchTypeCtor = patchConstructorTable(p.type());
if (patchTypeCtor) if (patchTypeCtor)
{ {
@ -93,8 +92,8 @@ Foam::pointPatchField<Type>::NewCalculatedType
( (
patchTypeCtor patchTypeCtor
( (
pf.patch(), p,
Field<Type>::null() DimensionedField<Type, pointMesh>::null()
) )
); );
} }
@ -104,12 +103,24 @@ Foam::pointPatchField<Type>::NewCalculatedType
( (
new calculatedPointPatchField<Type> new calculatedPointPatchField<Type>
( (
pf.patch(), p,
Field<Type>::null() DimensionedField<Type, pointMesh>::null()
) )
); );
} }
} }
template<class Type>
template<class AnyType>
Foam::autoPtr<Foam::pointPatchField<Type>>
Foam::pointPatchField<Type>::NewCalculatedType
(
const pointPatchField<AnyType>& pf
)
{
return NewCalculatedType(pf.patch());
}
// ************************************************************************* // // ************************************************************************* //

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 calculatedPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
calculatedPointPatchField calculatedPointPatchField
( (
@ -104,18 +92,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual autoPtr<pointPatchField<Type>> virtual autoPtr<pointPatchField<Type>> clone() const
clone(const DimensionedField<Type, pointMesh>& iF) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this);
( }
new calculatedPointPatchField<Type>
( //- Construct and return a clone setting internal field reference
*this, virtual autoPtr<pointPatchField<Type>> clone
iF (
) const DimensionedField<Type, pointMesh>& iF
); ) const
{
return pointPatchField<Type>::Clone(*this, iF);
} }
}; };

View File

@ -87,9 +87,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
( (
@ -97,6 +94,9 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const = 0;
//- 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

@ -111,18 +111,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
( (
@ -130,20 +118,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new fixedValuePointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -142,18 +142,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
( (
@ -161,20 +149,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new valuePointPatchField<Type>
(
*this,
iF
)
);
} }

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 zeroGradientPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
zeroGradientPointPatchField zeroGradientPointPatchField
( (
@ -104,20 +92,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new zeroGradientPointPatchField<Type>
(
*this,
iF
)
);
} }
}; };

View File

@ -92,18 +92,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
( (
@ -111,19 +99,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new cyclicPointPatchField<Type>
(
*this, iF
)
);
} }

View File

@ -87,18 +87,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
( (
@ -106,19 +94,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new cyclicSlipPointPatchField<Type>
(
*this, iF
)
);
} }

View File

@ -86,18 +86,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
( (
@ -105,22 +93,22 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new emptyPointPatchField<Type>
(
*this,
iF
)
);
} }
// Member functions // Member functions
//- Constraint handling //- Constraint handling

View File

@ -87,18 +87,6 @@ public:
const pointPatchFieldMapper& const pointPatchFieldMapper&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new nonuniformTransformCyclicPointPatchField<Type>
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nonuniformTransformCyclicPointPatchField nonuniformTransformCyclicPointPatchField
( (
@ -106,19 +94,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new nonuniformTransformCyclicPointPatchField<Type>
(
*this, iF
)
);
} }

View File

@ -91,18 +91,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
( (
@ -110,20 +98,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new processorPointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -99,18 +99,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
( (
@ -118,20 +106,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new processorCyclicPointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -87,18 +87,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
( (
@ -106,20 +94,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new symmetryPointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -92,18 +92,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
( (
@ -111,20 +99,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new symmetryPlanePointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -87,18 +87,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
( (
@ -106,19 +94,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new wedgePointPatchField<Type>
(
*this, iF
)
);
} }

View File

@ -209,15 +209,6 @@ public:
const codedFixedValuePointPatchField<Type>& const codedFixedValuePointPatchField<Type>&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new codedFixedValuePointPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
codedFixedValuePointPatchField codedFixedValuePointPatchField
( (
@ -225,20 +216,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new codedFixedValuePointPatchField<Type>
(
*this,
iF
)
);
} }

View File

@ -104,18 +104,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
( (
@ -123,22 +111,22 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new fixedNormalSlipPointPatchField<Type>
(
*this,
iF
)
);
} }
// Member functions // Member functions
//- Update the patch field //- Update the patch field

View File

@ -86,18 +86,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
( (
@ -105,20 +93,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new slipPointPatchField<Type>
(
*this,
iF
)
);
} }
}; };

View File

@ -101,15 +101,6 @@ public:
const timeVaryingUniformFixedValuePointPatchField<Type>& const timeVaryingUniformFixedValuePointPatchField<Type>&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return autoPtr<pointPatchField<Type>>
(
new timeVaryingUniformFixedValuePointPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
timeVaryingUniformFixedValuePointPatchField timeVaryingUniformFixedValuePointPatchField
( (
@ -117,16 +108,19 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Return a clone
virtual autoPtr<pointPatchField<Type>> clone() const
{
return pointPatchField<Type>::Clone(*this);
}
//- 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
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<Type>> return pointPatchField<Type>::Clone(*this, iF);
(
new timeVaryingUniformFixedValuePointPatchField<Type>(*this, iF)
);
} }

View File

@ -345,17 +345,31 @@ public:
const DimensionedField<Type, pointMesh>& const DimensionedField<Type, pointMesh>&
); );
//- Construct and return a clone //- Clone patch field with its own internal field reference
virtual autoPtr<pointPatchField<Type>> clone() const = 0; virtual autoPtr<pointPatchField<Type>> clone() const = 0;
//- Construct and return a clone setting internal field reference //- Clone patch field with an internal field reference
virtual autoPtr<pointPatchField<Type>> clone virtual autoPtr<pointPatchField<Type>> clone
( (
const DimensionedField<Type, pointMesh>& iF const DimensionedField<Type, pointMesh>& iF
) const = 0; ) const = 0;
// Selectors // Factory Methods
//- Clone a patch field, optionally with internal field reference etc.
template<class DerivedPatchField, class... Args>
static autoPtr<pointPatchField<Type>> Clone
(
const DerivedPatchField& pf,
Args&&... args
)
{
return autoPtr<pointPatchField<Type>>
(
new DerivedPatchField(pf, std::forward<Args>(args)...)
);
}
//- Return a pointer to a new patchField created on freestore given //- Return a pointer to a new patchField created on freestore given
// patch and internal field // patch and internal field
@ -400,11 +414,19 @@ public:
//- Return a pointer to a new calculatedPointPatchField created on //- Return a pointer to a new calculatedPointPatchField created on
// freestore without setting patchField values // freestore without setting patchField values
template<class Type2>
static autoPtr<pointPatchField<Type>> static autoPtr<pointPatchField<Type>>
NewCalculatedType NewCalculatedType
( (
const pointPatchField<Type2>& const pointPatch& p
);
//- Return a pointer to a new calculatedPointPatchField created on
// freestore without setting patchField values
template<class AnyType>
static autoPtr<pointPatchField<Type>>
NewCalculatedType
(
const pointPatchField<AnyType>& pf
); );

View File

@ -172,15 +172,6 @@ public:
const alphatJayatillekeWallFunctionFvPatchScalarField& const alphatJayatillekeWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new alphatJayatillekeWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
alphatJayatillekeWallFunctionFvPatchScalarField alphatJayatillekeWallFunctionFvPatchScalarField
( (
@ -188,16 +179,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new alphatJayatillekeWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -167,18 +167,6 @@ public:
const turbulentMixingLengthDissipationRateInletFvPatchScalarField& const turbulentMixingLengthDissipationRateInletFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentMixingLengthDissipationRateInletFvPatchScalarField
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
turbulentMixingLengthDissipationRateInletFvPatchScalarField turbulentMixingLengthDissipationRateInletFvPatchScalarField
( (
@ -186,20 +174,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new turbulentMixingLengthDissipationRateInletFvPatchScalarField
(
*this,
iF
)
);
} }

View File

@ -144,18 +144,6 @@ public:
const turbulentMixingLengthFrequencyInletFvPatchScalarField& const turbulentMixingLengthFrequencyInletFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new turbulentMixingLengthFrequencyInletFvPatchScalarField
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
turbulentMixingLengthFrequencyInletFvPatchScalarField turbulentMixingLengthFrequencyInletFvPatchScalarField
( (
@ -163,20 +151,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new turbulentMixingLengthFrequencyInletFvPatchScalarField
(
*this,
iF
)
);
} }

View File

@ -130,15 +130,6 @@ public:
const fixedShearStressFvPatchVectorField& const fixedShearStressFvPatchVectorField&
); );
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new fixedShearStressFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedShearStressFvPatchVectorField fixedShearStressFvPatchVectorField
( (
@ -146,16 +137,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new fixedShearStressFvPatchVectorField(*this, iF)
);
} }

View File

@ -182,15 +182,6 @@ public:
const porousBafflePressureFvPatchField& const porousBafflePressureFvPatchField&
); );
//- Construct and return a clone
virtual tmp<fvPatchField<scalar>> clone() const
{
return tmp<fvPatchField<scalar>>
(
new porousBafflePressureFvPatchField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
porousBafflePressureFvPatchField porousBafflePressureFvPatchField
( (
@ -198,16 +189,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchField<scalar>> return fvPatchField<scalar>::Clone(*this, iF);
(
new porousBafflePressureFvPatchField(*this, iF)
);
} }

View File

@ -212,15 +212,6 @@ public:
const epsilonWallFunctionFvPatchScalarField& const epsilonWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new epsilonWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
epsilonWallFunctionFvPatchScalarField epsilonWallFunctionFvPatchScalarField
( (
@ -228,16 +219,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new epsilonWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -173,15 +173,6 @@ public:
const kLowReWallFunctionFvPatchScalarField& const kLowReWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new kLowReWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
kLowReWallFunctionFvPatchScalarField kLowReWallFunctionFvPatchScalarField
( (
@ -189,16 +180,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new kLowReWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -123,15 +123,6 @@ public:
const kqRWallFunctionFvPatchField& const kqRWallFunctionFvPatchField&
); );
//- Construct and return a clone
virtual tmp<fvPatchField<Type>> clone() const
{
return tmp<fvPatchField<Type>>
(
new kqRWallFunctionFvPatchField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
kqRWallFunctionFvPatchField kqRWallFunctionFvPatchField
( (
@ -139,16 +130,19 @@ public:
const DimensionedField<Type, volMesh>& const DimensionedField<Type, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchField<Type>> clone() const
{
return fvPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<Type>> clone virtual tmp<fvPatchField<Type>> clone
( (
const DimensionedField<Type, volMesh>& iF const DimensionedField<Type, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchField<Type>> return fvPatchField<Type>::Clone(*this, iF);
(
new kqRWallFunctionFvPatchField(*this, iF)
);
} }

View File

@ -129,15 +129,6 @@ public:
const nutLowReWallFunctionFvPatchScalarField& const nutLowReWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutLowReWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutLowReWallFunctionFvPatchScalarField nutLowReWallFunctionFvPatchScalarField
( (
@ -145,16 +136,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutLowReWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -175,15 +175,6 @@ public:
const nutUBlendedWallFunctionFvPatchScalarField& const nutUBlendedWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUBlendedWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutUBlendedWallFunctionFvPatchScalarField nutUBlendedWallFunctionFvPatchScalarField
( (
@ -191,16 +182,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutUBlendedWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -171,15 +171,6 @@ public:
const nutURoughWallFunctionFvPatchScalarField& const nutURoughWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutURoughWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutURoughWallFunctionFvPatchScalarField nutURoughWallFunctionFvPatchScalarField
( (
@ -187,16 +178,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutURoughWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -189,15 +189,6 @@ public:
const nutUSpaldingWallFunctionFvPatchScalarField& const nutUSpaldingWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUSpaldingWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutUSpaldingWallFunctionFvPatchScalarField nutUSpaldingWallFunctionFvPatchScalarField
( (
@ -205,16 +196,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutUSpaldingWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -156,15 +156,6 @@ public:
const nutUTabulatedWallFunctionFvPatchScalarField& const nutUTabulatedWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUTabulatedWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutUTabulatedWallFunctionFvPatchScalarField nutUTabulatedWallFunctionFvPatchScalarField
( (
@ -172,16 +163,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutUTabulatedWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -143,15 +143,6 @@ public:
const nutUWallFunctionFvPatchScalarField& const nutUWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutUWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutUWallFunctionFvPatchScalarField nutUWallFunctionFvPatchScalarField
( (
@ -159,16 +150,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutUWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -153,15 +153,6 @@ public:
const nutkRoughWallFunctionFvPatchScalarField& const nutkRoughWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutkRoughWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutkRoughWallFunctionFvPatchScalarField nutkRoughWallFunctionFvPatchScalarField
( (
@ -169,16 +160,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutkRoughWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -134,15 +134,6 @@ public:
const nutkWallFunctionFvPatchScalarField& const nutkWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new nutkWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
nutkWallFunctionFvPatchScalarField nutkWallFunctionFvPatchScalarField
( (
@ -150,16 +141,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new nutkWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -203,15 +203,6 @@ public:
const omegaWallFunctionFvPatchScalarField& const omegaWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new omegaWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
omegaWallFunctionFvPatchScalarField omegaWallFunctionFvPatchScalarField
( (
@ -219,18 +210,22 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new omegaWallFunctionFvPatchScalarField(*this, iF)
);
} }
//- Destructor //- Destructor
virtual ~omegaWallFunctionFvPatchScalarField() = default; virtual ~omegaWallFunctionFvPatchScalarField() = default;

View File

@ -149,15 +149,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmBoundaryLayerInletEpsilonFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmBoundaryLayerInletEpsilonFvPatchScalarField atmBoundaryLayerInletEpsilonFvPatchScalarField
( (
@ -165,16 +156,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmBoundaryLayerInletEpsilonFvPatchScalarField(*this, iF)
);
} }

View File

@ -148,15 +148,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmBoundaryLayerInletKFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmBoundaryLayerInletKFvPatchScalarField atmBoundaryLayerInletKFvPatchScalarField
( (
@ -164,16 +155,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmBoundaryLayerInletKFvPatchScalarField(*this, iF)
);
} }

View File

@ -145,15 +145,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmBoundaryLayerInletOmegaFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmBoundaryLayerInletOmegaFvPatchScalarField atmBoundaryLayerInletOmegaFvPatchScalarField
( (
@ -161,16 +152,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmBoundaryLayerInletOmegaFvPatchScalarField(*this, iF)
);
} }

View File

@ -152,15 +152,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new atmBoundaryLayerInletVelocityFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmBoundaryLayerInletVelocityFvPatchVectorField atmBoundaryLayerInletVelocityFvPatchVectorField
( (
@ -168,16 +159,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new atmBoundaryLayerInletVelocityFvPatchVectorField(*this, iF)
);
} }

View File

@ -177,15 +177,6 @@ public:
const atmTurbulentHeatFluxTemperatureFvPatchScalarField& const atmTurbulentHeatFluxTemperatureFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmTurbulentHeatFluxTemperatureFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmTurbulentHeatFluxTemperatureFvPatchScalarField atmTurbulentHeatFluxTemperatureFvPatchScalarField
( (
@ -193,20 +184,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmTurbulentHeatFluxTemperatureFvPatchScalarField
(
*this,
iF
)
);
} }

View File

@ -179,15 +179,6 @@ public:
const atmAlphatkWallFunctionFvPatchScalarField& const atmAlphatkWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmAlphatkWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmAlphatkWallFunctionFvPatchScalarField atmAlphatkWallFunctionFvPatchScalarField
( (
@ -195,16 +186,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmAlphatkWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -170,15 +170,6 @@ public:
const atmEpsilonWallFunctionFvPatchScalarField& const atmEpsilonWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmEpsilonWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmEpsilonWallFunctionFvPatchScalarField atmEpsilonWallFunctionFvPatchScalarField
( (
@ -186,18 +177,22 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmEpsilonWallFunctionFvPatchScalarField(*this, iF)
);
} }
//- Destructor //- Destructor
virtual ~atmEpsilonWallFunctionFvPatchScalarField() = default; virtual ~atmEpsilonWallFunctionFvPatchScalarField() = default;

View File

@ -170,15 +170,6 @@ public:
const atmNutUWallFunctionFvPatchScalarField& const atmNutUWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmNutUWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmNutUWallFunctionFvPatchScalarField atmNutUWallFunctionFvPatchScalarField
( (
@ -186,16 +177,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmNutUWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -207,15 +207,6 @@ public:
const atmNutWallFunctionFvPatchScalarField& const atmNutWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmNutWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmNutWallFunctionFvPatchScalarField atmNutWallFunctionFvPatchScalarField
( (
@ -223,16 +214,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmNutWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -191,15 +191,6 @@ public:
const atmNutkWallFunctionFvPatchScalarField& const atmNutkWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmNutkWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmNutkWallFunctionFvPatchScalarField atmNutkWallFunctionFvPatchScalarField
( (
@ -207,16 +198,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmNutkWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -169,15 +169,6 @@ public:
const atmOmegaWallFunctionFvPatchScalarField& const atmOmegaWallFunctionFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField>
(
new atmOmegaWallFunctionFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
atmOmegaWallFunctionFvPatchScalarField atmOmegaWallFunctionFvPatchScalarField
( (
@ -185,16 +176,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new atmOmegaWallFunctionFvPatchScalarField(*this, iF)
);
} }

View File

@ -132,15 +132,6 @@ public:
const freeSurfacePressureFvPatchScalarField& const freeSurfacePressureFvPatchScalarField&
); );
//- Construct and return a clone
virtual tmp<fvPatchScalarField> clone() const
{
return tmp<fvPatchScalarField >
(
new freeSurfacePressureFvPatchScalarField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
freeSurfacePressureFvPatchScalarField freeSurfacePressureFvPatchScalarField
( (
@ -148,16 +139,19 @@ public:
const DimensionedField<scalar, volMesh>& const DimensionedField<scalar, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchScalarField> clone virtual tmp<fvPatchField<scalar>> clone() const
{
return fvPatchField<scalar>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<scalar>> clone
( (
const DimensionedField<scalar, volMesh>& iF const DimensionedField<scalar, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchScalarField> return fvPatchField<scalar>::Clone(*this, iF);
(
new freeSurfacePressureFvPatchScalarField(*this, iF)
);
} }

View File

@ -90,15 +90,6 @@ public:
const fvPatchFieldMapper& const fvPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<fvPatchVectorField> clone() const
{
return tmp<fvPatchVectorField>
(
new freeSurfaceVelocityFvPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
freeSurfaceVelocityFvPatchVectorField freeSurfaceVelocityFvPatchVectorField
( (
@ -106,16 +97,19 @@ public:
const DimensionedField<vector, volMesh>& const DimensionedField<vector, volMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return a clone
virtual tmp<fvPatchVectorField> clone virtual tmp<fvPatchField<vector>> clone() const
{
return fvPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<fvPatchField<vector>> clone
( (
const DimensionedField<vector, volMesh>& iF const DimensionedField<vector, volMesh>& iF
) const ) const
{ {
return tmp<fvPatchVectorField> return fvPatchField<vector>::Clone(*this, iF);
(
new freeSurfaceVelocityFvPatchVectorField(*this, iF)
);
} }

View File

@ -101,18 +101,6 @@ public:
const solidBodyMotionDisplacementPointPatchVectorField& const solidBodyMotionDisplacementPointPatchVectorField&
); );
//- Construct and return a clone
virtual autoPtr<pointPatchField<vector>> clone() const
{
return autoPtr<pointPatchField<vector>>
(
new solidBodyMotionDisplacementPointPatchVectorField
(
*this
)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
solidBodyMotionDisplacementPointPatchVectorField solidBodyMotionDisplacementPointPatchVectorField
( (
@ -121,20 +109,19 @@ public:
); );
//- Return a clone
virtual autoPtr<pointPatchField<vector>> clone() const
{
return pointPatchField<vector>::Clone(*this);
}
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual autoPtr<pointPatchField<vector>> clone virtual autoPtr<pointPatchField<vector>> clone
( (
const DimensionedField<vector, pointMesh>& iF const DimensionedField<vector, pointMesh>& iF
) const ) const
{ {
return autoPtr<pointPatchField<vector>> return pointPatchField<vector>::Clone(*this, iF);
(
new solidBodyMotionDisplacementPointPatchVectorField
(
*this,
iF
)
);
} }

View File

@ -95,15 +95,6 @@ public:
const basicSymmetryFaPatchField<Type>& const basicSymmetryFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new basicSymmetryFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
basicSymmetryFaPatchField basicSymmetryFaPatchField
( (
@ -111,16 +102,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new basicSymmetryFaPatchField<Type>(*this, iF)
);
} }

View File

@ -90,19 +90,19 @@ Foam::calculatedFaPatchField<Type>::calculatedFaPatchField
template<class Type> template<class Type>
template<class AnyType> Foam::tmp<Foam::faPatchField<Type>>
Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::NewCalculatedType Foam::faPatchField<Type>::NewCalculatedType
( (
const faPatchField<AnyType>& pf const faPatch& p
) )
{ {
auto* patchTypeCtor = patchConstructorTable(pf.patch().type()); auto* patchTypeCtor = patchConstructorTable(p.type());
if (patchTypeCtor) if (patchTypeCtor)
{ {
return patchTypeCtor return patchTypeCtor
( (
pf.patch(), p,
DimensionedField<Type, areaMesh>::null() DimensionedField<Type, areaMesh>::null()
); );
} }
@ -112,7 +112,7 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::NewCalculatedType
( (
new calculatedFaPatchField<Type> new calculatedFaPatchField<Type>
( (
pf.patch(), p,
DimensionedField<Type, areaMesh>::null() DimensionedField<Type, areaMesh>::null()
) )
); );
@ -120,6 +120,18 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::NewCalculatedType
} }
template<class Type>
template<class AnyType>
Foam::tmp<Foam::faPatchField<Type>>
Foam::faPatchField<Type>::NewCalculatedType
(
const faPatchField<AnyType>& pf
)
{
return NewCalculatedType(pf.patch());
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>

View File

@ -97,15 +97,6 @@ public:
const calculatedFaPatchField<Type>& const calculatedFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new calculatedFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
calculatedFaPatchField calculatedFaPatchField
( (
@ -113,16 +104,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new calculatedFaPatchField<Type>(*this, iF)
);
} }

View File

@ -108,9 +108,6 @@ public:
const coupledFaPatchField<Type>& const coupledFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const = 0;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
coupledFaPatchField coupledFaPatchField
( (
@ -118,6 +115,9 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Return clone
virtual tmp<faPatchField<Type>> clone() const = 0;
//- Construct and return a clone //- Construct and return a clone
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (

View File

@ -108,15 +108,6 @@ public:
const extrapolatedCalculatedFaPatchField<Type>& const extrapolatedCalculatedFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new extrapolatedCalculatedFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
extrapolatedCalculatedFaPatchField extrapolatedCalculatedFaPatchField
( (
@ -124,16 +115,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new extrapolatedCalculatedFaPatchField<Type>(*this, iF)
);
} }

View File

@ -144,15 +144,6 @@ public:
const fixedGradientFaPatchField<Type>& const fixedGradientFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new fixedGradientFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedGradientFaPatchField fixedGradientFaPatchField
( (
@ -160,16 +151,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new fixedGradientFaPatchField<Type>(*this, iF)
);
} }

View File

@ -106,15 +106,6 @@ public:
const fixedValueFaPatchField<Type>& const fixedValueFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new fixedValueFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedValueFaPatchField fixedValueFaPatchField
( (
@ -122,16 +113,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new fixedValueFaPatchField<Type>(*this, iF)
);
} }

View File

@ -144,15 +144,6 @@ public:
const mixedFaPatchField<Type>& const mixedFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new mixedFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
mixedFaPatchField mixedFaPatchField
( (
@ -160,16 +151,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new mixedFaPatchField<Type>(*this, iF)
);
} }

View File

@ -111,47 +111,14 @@ Foam::slicedFaPatchField<Type>::slicedFaPatchField
} }
template<class Type>
Foam::tmp<Foam::faPatchField<Type>>
Foam::slicedFaPatchField<Type>::clone() const
{
return tmp<faPatchField<Type>>
(
new slicedFaPatchField<Type>(*this)
);
}
template<class Type> template<class Type>
Foam::slicedFaPatchField<Type>::slicedFaPatchField Foam::slicedFaPatchField<Type>::slicedFaPatchField
( (
const slicedFaPatchField<Type>& ptf const slicedFaPatchField<Type>& ptf
) )
: :
faPatchField<Type> slicedFaPatchField<Type>(ptf, ptf.internalField())
( {}
ptf.patch(),
ptf.internalField(),
Field<Type>()
)
{
// Transfer the slice from the argument
UList<Type>::shallowCopy(ptf);
}
template<class Type>
Foam::tmp<Foam::faPatchField<Type>>
Foam::slicedFaPatchField<Type>::clone
(
const DimensionedField<Type, areaMesh>& iF
) const
{
return tmp<faPatchField<Type>>
(
new slicedFaPatchField<Type>(*this, iF)
);
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
@ -170,8 +137,7 @@ template<class Type>
Foam::tmp<Foam::Field<Type>> Foam::slicedFaPatchField<Type>::snGrad() const Foam::tmp<Foam::Field<Type>> Foam::slicedFaPatchField<Type>::snGrad() const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -180,8 +146,7 @@ Foam::tmp<Foam::Field<Type>>
Foam::slicedFaPatchField<Type>::patchInternalField() const Foam::slicedFaPatchField<Type>::patchInternalField() const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -200,8 +165,7 @@ Foam::slicedFaPatchField<Type>::patchNeighbourField
) const ) const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -210,8 +174,7 @@ Foam::tmp<Foam::Field<Type>>
Foam::slicedFaPatchField<Type>::patchNeighbourField() const Foam::slicedFaPatchField<Type>::patchNeighbourField() const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -223,8 +186,7 @@ Foam::slicedFaPatchField<Type>::valueInternalCoeffs
) const ) const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -236,8 +198,7 @@ Foam::slicedFaPatchField<Type>::valueBoundaryCoeffs
) const ) const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -246,8 +207,7 @@ Foam::tmp<Foam::Field<Type>>
Foam::slicedFaPatchField<Type>::gradientInternalCoeffs() const Foam::slicedFaPatchField<Type>::gradientInternalCoeffs() const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }
@ -256,8 +216,7 @@ Foam::tmp<Foam::Field<Type>>
Foam::slicedFaPatchField<Type>::gradientBoundaryCoeffs() const Foam::slicedFaPatchField<Type>::gradientBoundaryCoeffs() const
{ {
NotImplemented; NotImplemented;
return nullptr;
return Field<Type>::null();
} }

View File

@ -116,9 +116,6 @@ public:
//- Construct as copy //- Construct as copy
slicedFaPatchField(const slicedFaPatchField<Type>&); slicedFaPatchField(const slicedFaPatchField<Type>&);
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
slicedFaPatchField slicedFaPatchField
( (
@ -126,11 +123,20 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const; ) const
{
return faPatchField<Type>::Clone(*this, iF);
}
//- Destructor //- Destructor

View File

@ -92,9 +92,6 @@ public:
const faPatchFieldMapper& const faPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const = 0;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
transformFaPatchField transformFaPatchField
( (
@ -102,6 +99,9 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Return clone
virtual tmp<faPatchField<Type>> clone() const = 0;
//- Construct and return a clone setting internal field reference //- Construct and return a clone setting internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (

View File

@ -96,15 +96,6 @@ public:
const zeroGradientFaPatchField<Type>& const zeroGradientFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new zeroGradientFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
zeroGradientFaPatchField zeroGradientFaPatchField
( (
@ -112,16 +103,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new zeroGradientFaPatchField<Type>(*this, iF)
);
} }

View File

@ -118,15 +118,6 @@ public:
const cyclicFaPatchField<Type>& const cyclicFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new cyclicFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
cyclicFaPatchField cyclicFaPatchField
( (
@ -134,16 +125,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new cyclicFaPatchField<Type>(*this, iF)
);
} }

View File

@ -97,15 +97,6 @@ public:
const emptyFaPatchField<Type>& const emptyFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new emptyFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
emptyFaPatchField emptyFaPatchField
( (
@ -113,16 +104,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new emptyFaPatchField<Type>(*this, iF)
);
} }

View File

@ -137,15 +137,6 @@ public:
//- Construct as copy //- Construct as copy
processorFaPatchField(const processorFaPatchField<Type>&); processorFaPatchField(const processorFaPatchField<Type>&);
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new processorFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
processorFaPatchField processorFaPatchField
( (
@ -153,16 +144,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new processorFaPatchField<Type>(*this, iF)
);
} }

View File

@ -97,15 +97,6 @@ public:
const symmetryFaPatchField<Type>& const symmetryFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new symmetryFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
symmetryFaPatchField symmetryFaPatchField
( (
@ -113,16 +104,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new symmetryFaPatchField<Type>(*this, iF)
);
} }
}; };

View File

@ -91,15 +91,6 @@ public:
const faPatchFieldMapper& const faPatchFieldMapper&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new wedgeFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
wedgeFaPatchField wedgeFaPatchField
( (
@ -107,16 +98,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new wedgeFaPatchField<Type>(*this, iF)
);
} }

View File

@ -115,15 +115,6 @@ public:
const clampedPlateFaPatchField<Type>& const clampedPlateFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new clampedPlateFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
clampedPlateFaPatchField clampedPlateFaPatchField
( (
@ -131,16 +122,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new clampedPlateFaPatchField<Type>(*this, iF)
);
} }

View File

@ -113,15 +113,6 @@ public:
const edgeNormalFixedValueFaPatchVectorField& const edgeNormalFixedValueFaPatchVectorField&
); );
//- Construct and return a clone
virtual tmp<faPatchVectorField> clone() const
{
return tmp<faPatchVectorField>
(
new edgeNormalFixedValueFaPatchVectorField(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
edgeNormalFixedValueFaPatchVectorField edgeNormalFixedValueFaPatchVectorField
( (
@ -129,24 +120,22 @@ public:
const DimensionedField<vector, areaMesh>& const DimensionedField<vector, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchVectorField> clone virtual tmp<faPatchField<vector>> clone() const
{
return faPatchField<vector>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<vector>> clone
( (
const DimensionedField<vector, areaMesh>& iF const DimensionedField<vector, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchVectorField> return faPatchField<vector>::Clone(*this, iF);
(
new edgeNormalFixedValueFaPatchVectorField
(
*this,
iF
)
);
} }
// Member functions // Member functions
// Mapping functions // Mapping functions

View File

@ -96,15 +96,6 @@ public:
const fixedValueOutflowFaPatchField<Type>& const fixedValueOutflowFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new fixedValueOutflowFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedValueOutflowFaPatchField fixedValueOutflowFaPatchField
( (
@ -112,16 +103,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new fixedValueOutflowFaPatchField<Type>(*this, iF)
);
} }

View File

@ -114,15 +114,6 @@ public:
const ignoreFaPatchField<Type>& const ignoreFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new ignoreFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
ignoreFaPatchField ignoreFaPatchField
( (
@ -130,16 +121,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new ignoreFaPatchField<Type>(*this, iF)
);
} }

View File

@ -136,15 +136,6 @@ public:
const inletOutletFaPatchField<Type>& const inletOutletFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new inletOutletFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
inletOutletFaPatchField inletOutletFaPatchField
( (
@ -152,16 +143,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new inletOutletFaPatchField<Type>(*this, iF)
);
} }

View File

@ -135,15 +135,6 @@ public:
const outletInletFaPatchField<Type>& const outletInletFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new outletInletFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
outletInletFaPatchField outletInletFaPatchField
( (
@ -151,16 +142,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new outletInletFaPatchField<Type>(*this, iF)
);
} }

View File

@ -97,15 +97,6 @@ public:
const slipFaPatchField<Type>& const slipFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new slipFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
slipFaPatchField slipFaPatchField
( (
@ -113,16 +104,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new slipFaPatchField<Type>(*this, iF)
);
} }

View File

@ -137,15 +137,6 @@ public:
const timeVaryingUniformFixedValueFaPatchField<Type>& const timeVaryingUniformFixedValueFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new timeVaryingUniformFixedValueFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
timeVaryingUniformFixedValueFaPatchField timeVaryingUniformFixedValueFaPatchField
( (
@ -153,16 +144,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new timeVaryingUniformFixedValueFaPatchField<Type>(*this, iF)
);
} }

View File

@ -138,15 +138,6 @@ public:
const uniformFixedGradientFaPatchField<Type>& const uniformFixedGradientFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new uniformFixedGradientFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
uniformFixedGradientFaPatchField uniformFixedGradientFaPatchField
( (
@ -154,16 +145,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new uniformFixedGradientFaPatchField<Type>(*this, iF)
);
} }

View File

@ -139,15 +139,6 @@ public:
const uniformFixedValueFaPatchField<Type>& const uniformFixedValueFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new uniformFixedValueFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
uniformFixedValueFaPatchField uniformFixedValueFaPatchField
( (
@ -155,16 +146,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new uniformFixedValueFaPatchField<Type>(*this, iF)
);
} }

View File

@ -160,15 +160,6 @@ public:
const uniformMixedFaPatchField<Type>& const uniformMixedFaPatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faPatchField<Type>> clone() const
{
return tmp<faPatchField<Type>>
(
new uniformMixedFaPatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
uniformMixedFaPatchField uniformMixedFaPatchField
( (
@ -176,16 +167,19 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faPatchField<Type>> clone() const
{
return faPatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>> return faPatchField<Type>::Clone(*this, iF);
(
new uniformMixedFaPatchField<Type>(*this, iF)
);
} }

View File

@ -393,23 +393,56 @@ public:
const DimensionedField<Type, areaMesh>& const DimensionedField<Type, areaMesh>&
); );
//- Construct and return a clone //- Clone patch field with its own internal field reference
virtual tmp<faPatchField<Type>> clone() const virtual tmp<faPatchField<Type>> clone() const
{ {
return tmp<faPatchField<Type>>(new faPatchField<Type>(*this)); return tmp<faPatchField<Type>>
(
new faPatchField<Type>(*this, this->internalField_)
);
} }
//- Construct and return a clone setting internal field reference //- Clone with an internal field reference
virtual tmp<faPatchField<Type>> clone virtual tmp<faPatchField<Type>> clone
( (
const DimensionedField<Type, areaMesh>& iF const DimensionedField<Type, areaMesh>& iF
) const ) const
{ {
return tmp<faPatchField<Type>>(new faPatchField<Type>(*this, iF)); return tmp<faPatchField<Type>>
(
new faPatchField<Type>(*this, iF)
);
} }
// Selectors // Factory Methods
//- Clone a patch field with its own internal field reference
template<class DerivedPatchField>
static tmp<faPatchField<Type>> Clone
(
const DerivedPatchField& pf
)
{
return tmp<faPatchField<Type>>
(
new DerivedPatchField(pf)
);
}
//- Clone a patch field with an internal field reference
template<class DerivedPatchField>
static tmp<faPatchField<Type>> Clone
(
const DerivedPatchField& pf,
const DimensionedField<Type, areaMesh>& iF
)
{
return tmp<faPatchField<Type>>
(
new DerivedPatchField(pf, iF)
);
}
//- Return a pointer to a new patchField created on freestore given //- Return a pointer to a new patchField created on freestore given
//- patch and internal field //- patch and internal field
@ -451,6 +484,13 @@ public:
const dictionary& const dictionary&
); );
//- Return a pointer to a new calculatedFaPatchField created on
//- freestore without setting patchField values
static tmp<faPatchField<Type>> NewCalculatedType
(
const faPatch& p
);
//- Return a pointer to a new calculatedFaPatchField created on //- Return a pointer to a new calculatedFaPatchField created on
//- freestore without setting patchField values //- freestore without setting patchField values
template<class AnyType> template<class AnyType>

View File

@ -90,20 +90,19 @@ Foam::calculatedFaePatchField<Type>::calculatedFaePatchField
template<class Type> template<class Type>
template<class Type2>
Foam::tmp<Foam::faePatchField<Type>> Foam::tmp<Foam::faePatchField<Type>>
Foam::faePatchField<Type>::NewCalculatedType Foam::faePatchField<Type>::NewCalculatedType
( (
const faePatchField<Type2>& pf const faPatch& p
) )
{ {
auto* patchTypeCtor = patchConstructorTable(pf.patch().type()); auto* patchTypeCtor = patchConstructorTable(p.type());
if (patchTypeCtor) if (patchTypeCtor)
{ {
return patchTypeCtor return patchTypeCtor
( (
pf.patch(), p,
DimensionedField<Type, edgeMesh>::null() DimensionedField<Type, edgeMesh>::null()
); );
} }
@ -113,7 +112,7 @@ Foam::faePatchField<Type>::NewCalculatedType
( (
new calculatedFaePatchField<Type> new calculatedFaePatchField<Type>
( (
pf.patch(), p,
DimensionedField<Type, edgeMesh>::null() DimensionedField<Type, edgeMesh>::null()
) )
); );
@ -121,6 +120,18 @@ Foam::faePatchField<Type>::NewCalculatedType
} }
template<class Type>
template<class AnyType>
Foam::tmp<Foam::faePatchField<Type>>
Foam::faePatchField<Type>::NewCalculatedType
(
const faePatchField<AnyType>& pf
)
{
return NewCalculatedType(pf.patch());
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type> template<class Type>

View File

@ -94,15 +94,6 @@ public:
//- Construct as copy //- Construct as copy
calculatedFaePatchField(const calculatedFaePatchField<Type>&); calculatedFaePatchField(const calculatedFaePatchField<Type>&);
//- Construct and return a clone
virtual tmp<faePatchField<Type>> clone() const
{
return tmp<faePatchField<Type>>
(
new calculatedFaePatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
calculatedFaePatchField calculatedFaePatchField
( (
@ -110,18 +101,22 @@ public:
const DimensionedField<Type, edgeMesh>& const DimensionedField<Type, edgeMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faePatchField<Type>> clone() const
{
return faePatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faePatchField<Type>> clone virtual tmp<faePatchField<Type>> clone
( (
const DimensionedField<Type, edgeMesh>& iF const DimensionedField<Type, edgeMesh>& iF
) const ) const
{ {
return tmp<faePatchField<Type>> return faePatchField<Type>::Clone(*this, iF);
(
new calculatedFaePatchField<Type>(*this, iF)
);
} }
//- Destructor //- Destructor
virtual ~calculatedFaePatchField() = default; virtual ~calculatedFaePatchField() = default;

View File

@ -106,9 +106,6 @@ public:
const coupledFaePatchField<Type>& const coupledFaePatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faePatchField<Type>> clone() const = 0;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
coupledFaePatchField coupledFaePatchField
( (
@ -116,6 +113,9 @@ public:
const DimensionedField<Type, edgeMesh>& const DimensionedField<Type, edgeMesh>&
); );
//- Return clone
virtual tmp<faePatchField<Type>> clone() const = 0;
//- Construct and return a clone //- Construct and return a clone
virtual tmp<faePatchField<Type>> clone virtual tmp<faePatchField<Type>> clone
( (

View File

@ -106,15 +106,6 @@ public:
const fixedValueFaePatchField<Type>& const fixedValueFaePatchField<Type>&
); );
//- Construct and return a clone
virtual tmp<faePatchField<Type>> clone() const
{
return tmp<faePatchField<Type>>
(
new fixedValueFaePatchField<Type>(*this)
);
}
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
fixedValueFaePatchField fixedValueFaePatchField
( (
@ -122,18 +113,22 @@ public:
const DimensionedField<Type, edgeMesh>& const DimensionedField<Type, edgeMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faePatchField<Type>> clone() const
{
return faePatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faePatchField<Type>> clone virtual tmp<faePatchField<Type>> clone
( (
const DimensionedField<Type, edgeMesh>& iF const DimensionedField<Type, edgeMesh>& iF
) const ) const
{ {
return tmp<faePatchField<Type>> return faePatchField<Type>::Clone(*this, iF);
(
new fixedValueFaePatchField<Type>(*this, iF)
);
} }
//- Destructor //- Destructor
virtual ~fixedValueFaePatchField() = default; virtual ~fixedValueFaePatchField() = default;

View File

@ -111,47 +111,14 @@ Foam::slicedFaePatchField<Type>::slicedFaePatchField
} }
template<class Type>
Foam::tmp<Foam::faePatchField<Type>>
Foam::slicedFaePatchField<Type>::clone() const
{
return tmp<faePatchField<Type>>
(
new slicedFaePatchField<Type>(*this)
);
}
template<class Type> template<class Type>
Foam::slicedFaePatchField<Type>::slicedFaePatchField Foam::slicedFaePatchField<Type>::slicedFaePatchField
( (
const slicedFaePatchField<Type>& ptf const slicedFaePatchField<Type>& ptf
) )
: :
faePatchField<Type> slicedFaePatchField<Type>(ptf, ptf.internalField())
( {}
ptf.patch(),
ptf.internalField(),
Field<Type>()
)
{
// Transfer the slice from the argument
UList<Type>::shallowCopy(ptf);
}
template<class Type>
Foam::tmp<Foam::faePatchField<Type>>
Foam::slicedFaePatchField<Type>::clone
(
const DimensionedField<Type, edgeMesh>& iF
) const
{
return tmp<faePatchField<Type>>
(
new slicedFaePatchField<Type>(*this, iF)
);
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //

View File

@ -109,9 +109,6 @@ public:
//- Construct as copy //- Construct as copy
slicedFaePatchField(const slicedFaePatchField<Type>&); slicedFaePatchField(const slicedFaePatchField<Type>&);
//- Construct and return a clone
virtual tmp<faePatchField<Type>> clone() const;
//- Construct as copy setting internal field reference //- Construct as copy setting internal field reference
slicedFaePatchField slicedFaePatchField
( (
@ -119,11 +116,20 @@ public:
const DimensionedField<Type, edgeMesh>& const DimensionedField<Type, edgeMesh>&
); );
//- Construct and return a clone setting internal field reference //- Return clone
virtual tmp<faePatchField<Type>> clone() const
{
return faePatchField<Type>::Clone(*this);
}
//- Clone with an internal field reference
virtual tmp<faePatchField<Type>> clone virtual tmp<faePatchField<Type>> clone
( (
const DimensionedField<Type, edgeMesh>& iF const DimensionedField<Type, edgeMesh>& iF
) const; ) const
{
return faePatchField<Type>::Clone(*this, iF);
}
//- Destructor //- Destructor

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