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
65833e6c
Commit
65833e6c
authored
Dec 28, 2017
by
mattijs
Browse files
BUG: pressure: generate calculated bcs early. Fixes
#685
. Ep 581.
parent
08e6eca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/field/pressure/pressure.C
View file @
65833e6c
...
...
@@ -70,7 +70,23 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::rhoScale
{
if
(
p
.
dimensions
()
==
dimPressure
)
{
return
p
;
return
tmp
<
volScalarField
>
(
new
volScalarField
(
IOobject
(
"rhoScale"
,
p
.
mesh
().
time
().
timeName
(),
p
.
mesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
,
false
),
p
,
fvPatchField
<
scalar
>::
calculatedType
()
)
);
}
else
{
...
...
@@ -188,8 +204,7 @@ bool Foam::functionObjects::pressure::calc()
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
coeff
(
pRef
(
pDyn
(
p
,
rhoScale
(
p
)))),
fvPatchField
<
scalar
>::
calculatedType
()
coeff
(
pRef
(
pDyn
(
p
,
rhoScale
(
p
))))
)
);
...
...
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