Skip to content
Snippets Groups Projects
Commit 544d6f7d authored by mattijs's avatar mattijs
Browse files

BUG: uniformFixedValue: missing autoMap, rmap. See #1059.

parent cc962c65
Branches
Tags
No related merge requests found
......@@ -114,7 +114,8 @@ timeVaryingMappedFixedValueFvPatchField
(
new PatchFunction1Types::MappedFile<Type>
(
ptf.uniformValue_
ptf.uniformValue_,
this->patch().patch()
)
)
{}
......@@ -133,7 +134,8 @@ timeVaryingMappedFixedValueFvPatchField
(
new PatchFunction1Types::MappedFile<Type>
(
ptf.uniformValue_
ptf.uniformValue_,
this->patch().patch()
)
)
{}
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -91,7 +91,7 @@ Foam::uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField
)
:
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),
uniformValue_(ptf.uniformValue_.clone())
uniformValue_(ptf.uniformValue_.clone(this->patch().patch()))
{
// Evaluate the profile if defined
if (uniformValue_.valid())
......@@ -115,6 +115,33 @@ Foam::uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField
// * * * * * * * * * * * * * * * 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>
void Foam::uniformFixedValueFvPatchField<Type>::updateCoeffs()
{
......
......@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
......@@ -162,6 +162,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 fvPatchField<Type>&,
const labelList&
);
//- Update the coefficients associated with the patch field
virtual void updateCoeffs();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment