greyDiffusiveRadiationMixedFvPatchScalarField, wideBandDiffusiveRadiationMixedFvPatchScalarField: Added mapping functions

Patch contributed by Timo Niemi, VTT.
Resolves patch request https://bugs.openfoam.org/view.php?id=3062
This commit is contained in:
Henry Weller
2018-08-31 16:04:43 +01:00
parent b38715c4b1
commit 37207f3279
6 changed files with 118 additions and 4 deletions

View File

@ -67,7 +67,8 @@ greyDiffusiveRadiationMixedFvPatchScalarField
( (
p, p,
ptf.emissivityMethod(), ptf.emissivityMethod(),
ptf.emissivity_ ptf.emissivity_,
mapper
), ),
TName_(ptf.TName_) TName_(ptf.TName_)
{} {}
@ -143,6 +144,27 @@ greyDiffusiveRadiationMixedFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::autoMap
(
const fvPatchFieldMapper& m
)
{
mixedFvPatchScalarField::autoMap(m);
radiationCoupledBase::autoMap(m);
}
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
)
{
mixedFvPatchScalarField::rmap(ptf, addr);
radiationCoupledBase::rmap(ptf, addr);
}
void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField:: void Foam::radiation::greyDiffusiveRadiationMixedFvPatchScalarField::
updateCoeffs() updateCoeffs()
{ {

View File

@ -171,6 +171,21 @@ public:
return TName_; return TName_;
} }
// 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 // Evaluation functions

View File

@ -58,9 +58,10 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
( (
patch(), patch(),
ptf.emissivityMethod(), ptf.emissivityMethod(),
ptf.emissivity_ ptf.emissivity_,
mapper
), ),
qro_(ptf.qro_) qro_(ptf.qro_, mapper)
{} {}
@ -128,6 +129,32 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
autoMap
(
const fvPatchFieldMapper& m
)
{
fixedValueFvPatchScalarField::autoMap(m);
radiationCoupledBase::autoMap(m);
qro_.autoMap(m);
}
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
)
{
fixedValueFvPatchScalarField::rmap(ptf, addr);
radiationCoupledBase::rmap(ptf, addr);
const greyDiffusiveViewFactorFixedValueFvPatchScalarField& mrptf =
refCast<const greyDiffusiveViewFactorFixedValueFvPatchScalarField>(ptf);
qro_.rmap(mrptf.qro_, addr);
}
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField:: void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
updateCoeffs() updateCoeffs()
{ {

View File

@ -168,6 +168,20 @@ public:
} }
//- 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 // Evaluation functions
//- Update the coefficients associated with the patch field //- Update the coefficients associated with the patch field

View File

@ -68,7 +68,8 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
( (
p, p,
ptf.emissivityMethod(), ptf.emissivityMethod(),
ptf.emissivity_ ptf.emissivity_,
mapper
), ),
TName_(ptf.TName_) TName_(ptf.TName_)
{} {}
@ -147,6 +148,27 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
autoMap
(
const fvPatchFieldMapper& m
)
{
mixedFvPatchScalarField::autoMap(m);
radiationCoupledBase::autoMap(m);
}
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::rmap
(
const fvPatchScalarField& ptf,
const labelList& addr
)
{
mixedFvPatchScalarField::rmap(ptf, addr);
radiationCoupledBase::rmap(ptf, addr);
}
void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField:: void Foam::radiation::wideBandDiffusiveRadiationMixedFvPatchScalarField::
updateCoeffs() updateCoeffs()
{ {

View File

@ -165,6 +165,20 @@ public:
} }
//- 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 // Evaluation functions
//- Update the coefficients associated with the patch field //- Update the coefficients associated with the patch field