Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c84390ab
Commit
c84390ab
authored
Nov 05, 2018
by
mattijs
Browse files
BUG: uniformFixedValue: missing autoMap, rmap. See
#1059
.
parent
50baac3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/timeVaryingMappedFixedValueFvPatchField.C
View file @
c84390ab
...
...
@@ -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
()
)
)
{}
...
...
src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C
View file @
c84390ab
...
...
@@ -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
()
{
...
...
src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.H
View file @
c84390ab
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment