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,
|
||||
ptf.emissivityMethod(),
|
||||
ptf.emissivity_
|
||||
ptf.emissivity_,
|
||||
mapper
|
||||
),
|
||||
TName_(ptf.TName_)
|
||||
{}
|
||||
@ -143,6 +144,27 @@ greyDiffusiveRadiationMixedFvPatchScalarField
|
||||
|
||||
// * * * * * * * * * * * * * * * 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::
|
||||
updateCoeffs()
|
||||
{
|
||||
|
||||
@ -171,6 +171,21 @@ public:
|
||||
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
|
||||
|
||||
|
||||
@ -58,9 +58,10 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
|
||||
(
|
||||
patch(),
|
||||
ptf.emissivityMethod(),
|
||||
ptf.emissivity_
|
||||
ptf.emissivity_,
|
||||
mapper
|
||||
),
|
||||
qro_(ptf.qro_)
|
||||
qro_(ptf.qro_, mapper)
|
||||
{}
|
||||
|
||||
|
||||
@ -128,6 +129,32 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
|
||||
|
||||
// * * * * * * * * * * * * * * * 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::
|
||||
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
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
|
||||
@ -68,7 +68,8 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
|
||||
(
|
||||
p,
|
||||
ptf.emissivityMethod(),
|
||||
ptf.emissivity_
|
||||
ptf.emissivity_,
|
||||
mapper
|
||||
),
|
||||
TName_(ptf.TName_)
|
||||
{}
|
||||
@ -147,6 +148,27 @@ wideBandDiffusiveRadiationMixedFvPatchScalarField
|
||||
|
||||
// * * * * * * * * * * * * * * * 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::
|
||||
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
|
||||
|
||||
//- Update the coefficients associated with the patch field
|
||||
|
||||
Reference in New Issue
Block a user