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:
parent
b592eb09e9
commit
4a45e4f519
7 changed files with 39 additions and 6 deletions
|
|
@ -27,7 +27,6 @@ License
|
|||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "fvPatchFieldMapper.H"
|
||||
#include "volFields.H"
|
||||
#include "mappedPatchBase.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ License
|
|||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "mappedFixedValueFvPatchField.H"
|
||||
#include "mappedPatchBase.H"
|
||||
#include "volFields.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ License
|
|||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "pyrolysisModel.H"
|
||||
#include "fvMesh.H"
|
||||
#include "mappedFieldFvPatchField.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ License
|
|||
#include "thermalBaffleFvPatchScalarField.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "emptyPolyPatch.H"
|
||||
#include "polyPatch.H"
|
||||
#include "mappedWallPolyPatch.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue