mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: uniformFixedValue: missing autoMap, rmap. See #1059.
This commit is contained in:
@ -114,7 +114,8 @@ timeVaryingMappedFixedValueFvPatchField
|
|||||||
(
|
(
|
||||||
new PatchFunction1Types::MappedFile<Type>
|
new PatchFunction1Types::MappedFile<Type>
|
||||||
(
|
(
|
||||||
ptf.uniformValue_
|
ptf.uniformValue_,
|
||||||
|
this->patch().patch()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
@ -133,7 +134,8 @@ timeVaryingMappedFixedValueFvPatchField
|
|||||||
(
|
(
|
||||||
new PatchFunction1Types::MappedFile<Type>
|
new PatchFunction1Types::MappedFile<Type>
|
||||||
(
|
(
|
||||||
ptf.uniformValue_
|
ptf.uniformValue_,
|
||||||
|
this->patch().patch()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -91,7 +91,7 @@ Foam::uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchField<Type>(ptf),
|
fixedValueFvPatchField<Type>(ptf),
|
||||||
uniformValue_(ptf.uniformValue_.clone())
|
uniformValue_(ptf.uniformValue_.clone(this->patch().patch()))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ Foam::uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchField<Type>(ptf, iF),
|
fixedValueFvPatchField<Type>(ptf, iF),
|
||||||
uniformValue_(ptf.uniformValue_.clone())
|
uniformValue_(ptf.uniformValue_.clone(this->patch().patch()))
|
||||||
{
|
{
|
||||||
// Evaluate the profile if defined
|
// Evaluate the profile if defined
|
||||||
if (uniformValue_.valid())
|
if (uniformValue_.valid())
|
||||||
@ -115,6 +115,33 @@ Foam::uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
template<class Type>
|
||||||
|
void Foam::uniformFixedValueFvPatchField<Type>::autoMap
|
||||||
|
(
|
||||||
|
const fvPatchFieldMapper& mapper
|
||||||
|
)
|
||||||
|
{
|
||||||
|
fixedValueFvPatchField<Type>::autoMap(mapper);
|
||||||
|
uniformValue_().autoMap(mapper);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class Type>
|
||||||
|
void Foam::uniformFixedValueFvPatchField<Type>::rmap
|
||||||
|
(
|
||||||
|
const fvPatchField<Type>& ptf,
|
||||||
|
const labelList& addr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
fixedValueFvPatchField<Type>::rmap(ptf, addr);
|
||||||
|
|
||||||
|
const uniformFixedValueFvPatchField& tiptf =
|
||||||
|
refCast<const uniformFixedValueFvPatchField>(ptf);
|
||||||
|
|
||||||
|
uniformValue_().rmap(tiptf.uniformValue_(), addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void Foam::uniformFixedValueFvPatchField<Type>::updateCoeffs()
|
void Foam::uniformFixedValueFvPatchField<Type>::updateCoeffs()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -162,6 +162,22 @@ public:
|
|||||||
|
|
||||||
// Member functions
|
// 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 fvPatchField<Type>&,
|
||||||
|
const labelList&
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
//- Update the coefficients associated with the patch field
|
//- Update the coefficients associated with the patch field
|
||||||
virtual void updateCoeffs();
|
virtual void updateCoeffs();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user