thermalBaffle: ensure mappedPatchBase is updated following mesh topology changes

Patch contributed by Mattijs Janssens
Resolves bug-report http://bugs.openfoam.org/view.php?id=2323
This commit is contained in:
Henry Weller
2016-12-05 08:44:43 +00:00
parent 304af9fc5f
commit 94fd633243
7 changed files with 39 additions and 6 deletions

View File

@ -27,7 +27,6 @@ License
#include "addToRunTimeSelectionTable.H"
#include "fvPatchFieldMapper.H"
#include "volFields.H"
#include "mappedPatchBase.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -25,7 +25,6 @@ License
#include "volFields.H"
#include "surfaceFields.H"
#include "mappedPatchBase.H"
#include "turbulentFluidThermoModel.H"
#include "mapDistribute.H"
@ -298,6 +297,8 @@ void thermalBaffle1DFvPatchScalarField<solidType>::autoMap
const fvPatchFieldMapper& m
)
{
mappedPatchBase::clearOut();
mixedFvPatchScalarField::autoMap(m);
if (this->owner())

View File

@ -138,6 +138,27 @@ Foam::mappedFieldFvPatchField<Type>::mappedFieldFvPatchField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class Type>
void Foam::mappedFieldFvPatchField<Type>::autoMap
(
const fvPatchFieldMapper& m
)
{
mappedPatchBase::clearOut();
}
template<class Type>
void Foam::mappedFieldFvPatchField<Type>::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
)
{
mappedPatchBase::clearOut();
}
template<class Type>
void Foam::mappedFieldFvPatchField<Type>::updateCoeffs()
{

View File

@ -193,6 +193,22 @@ public:
// Member functions
// Mapping functions
//- Map (and resize as needed) from self given a mapping object
virtual void autoMap
(
const fvPatchFieldMapper&
);
//- Reverse map the given fvPatchField onto this fvPatchField
virtual void rmap
(
const fvPatchScalarField&,
const labelList&
);
// Evaluation functions
//- Update the coefficients associated with the patch field

View File

@ -24,7 +24,6 @@ License
\*---------------------------------------------------------------------------*/
#include "mappedFixedValueFvPatchField.H"
#include "mappedPatchBase.H"
#include "volFields.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -24,8 +24,6 @@ License
\*---------------------------------------------------------------------------*/
#include "pyrolysisModel.H"
#include "fvMesh.H"
#include "mappedFieldFvPatchField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -26,7 +26,6 @@ License
#include "thermalBaffleFvPatchScalarField.H"
#include "addToRunTimeSelectionTable.H"
#include "emptyPolyPatch.H"
#include "polyPatch.H"
#include "mappedWallPolyPatch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //