Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
4aa6052a
Commit
4aa6052a
authored
Dec 08, 2015
by
Henry Weller
Browse files
uniformInletOutletFvPatchField: Update refValue in updateCoeffs
Resolves bug-report
http://www.openfoam.org/mantisbt/view.php?id=1943
parent
f89d4429
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/finiteVolume/fields/fvPatchFields/derived/uniformInletOutlet/uniformInletOutletFvPatchField.C
View file @
4aa6052a
...
...
@@ -55,8 +55,8 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField
phiName_
(
dict
.
lookupOrDefault
<
word
>
(
"phi"
,
"phi"
)),
uniformInletValue_
(
DataEntry
<
Type
>::
New
(
"uniformInletValue"
,
dict
))
{
const
scalar
t
=
this
->
db
().
time
().
timeOutput
Value
()
;
this
->
refValue
()
=
uniformInletValue_
->
value
(
t
);
this
->
ref
Value
()
=
uniformInletValue_
->
value
(
t
his
->
db
().
time
().
timeOutputValue
()
);
if
(
dict
.
found
(
"value"
))
{
...
...
@@ -91,8 +91,8 @@ Foam::uniformInletOutletFvPatchField<Type>::uniformInletOutletFvPatchField
this
->
patchType
()
=
ptf
.
patchType
();
// Evaluate refValue since not mapped
const
scalar
t
=
this
->
db
().
time
().
timeOutput
Value
()
;
this
->
refValue
()
=
uniformInletValue_
->
value
(
t
);
this
->
ref
Value
()
=
uniformInletValue_
->
value
(
t
his
->
db
().
time
().
timeOutputValue
()
);
this
->
refGrad
()
=
pTraits
<
Type
>::
zero
;
this
->
valueFraction
()
=
0
.
0
;
...
...
@@ -139,6 +139,9 @@ void Foam::uniformInletOutletFvPatchField<Type>::updateCoeffs()
return
;
}
this
->
refValue
()
=
uniformInletValue_
->
value
(
this
->
db
().
time
().
timeOutputValue
());
const
Field
<
scalar
>&
phip
=
this
->
patch
().
template
lookupPatchField
<
surfaceScalarField
,
scalar
>
(
...
...
@@ -175,8 +178,8 @@ void Foam::uniformInletOutletFvPatchField<Type>::autoMap
mixedFvPatchField
<
Type
>::
autoMap
(
m
);
// Override
const
scalar
t
=
this
->
db
().
time
().
timeOutput
Value
()
;
this
->
refValue
()
=
uniformInletValue_
->
value
(
t
);
this
->
ref
Value
()
=
uniformInletValue_
->
value
(
t
his
->
db
().
time
().
timeOutputValue
()
);
}
...
...
@@ -190,8 +193,8 @@ void Foam::uniformInletOutletFvPatchField<Type>::rmap
mixedFvPatchField
<
Type
>::
rmap
(
ptf
,
addr
);
// Override
const
scalar
t
=
this
->
db
().
time
().
timeOutput
Value
()
;
this
->
refValue
()
=
uniformInletValue_
->
value
(
t
);
this
->
ref
Value
()
=
uniformInletValue_
->
value
(
t
his
->
db
().
time
().
timeOutputValue
()
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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