mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user