fixedValueFvPatchField, fvsPatchField: Added support for fvMeshDistribute

This commit is contained in:
Henry Weller
2021-05-18 16:25:03 +01:00
parent 40bc30c0f7
commit bc6f4bd319
2 changed files with 12 additions and 15 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -62,17 +62,7 @@ Foam::fixedValueFvPatchField<Type>::fixedValueFvPatchField
) )
: :
fvPatchField<Type>(ptf, p, iF, mapper, mappingRequired) fvPatchField<Type>(ptf, p, iF, mapper, mappingRequired)
{ {}
if (mappingRequired && notNull(iF) && mapper.hasUnmapped())
{
WarningInFunction
<< "On field " << iF.name() << " patch " << p.name()
<< " patchField " << this->type()
<< " : mapper does not map all values." << nl
<< " To avoid this warning fully specify the mapping in derived"
<< " patch fields." << endl;
}
}
template<class Type> template<class Type>

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -185,8 +185,15 @@ public:
//- Disallow clone without setting internal field reference //- Disallow clone without setting internal field reference
tmp<fvsPatchField<Type>> clone() const tmp<fvsPatchField<Type>> clone() const
{ {
NotImplemented; // Temporarily reinstate the clone() function pending a rewrite of
return tmp<fvsPatchField<Type>>(nullptr); // the mapping of surfaceFields in fvMeshDistribute
return tmp<fvsPatchField<Type>>
(
new fvsPatchField<Type>(*this, internalField_)
);
// NotImplemented;
// return tmp<fvsPatchField<Type>>(nullptr);
} }
//- Copy constructor setting internal field reference //- Copy constructor setting internal field reference