Skip to content
GitLab
Menu
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
a6f17ede
Commit
a6f17ede
authored
Jul 19, 2013
by
andy
Browse files
BUG: Corrected transportModel handling in Peclet function object
parent
06162eb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/postProcessing/functionObjects/utilities/Peclet/Peclet.C
View file @
a6f17ede
...
...
@@ -129,7 +129,6 @@ void Foam::Peclet::end()
// Do nothing - only valid on write
}
void
Foam
::
Peclet
::
timeSet
()
{
// Do nothing - only valid on write
...
...
@@ -163,16 +162,32 @@ void Foam::Peclet::write()
nuEff
=
model
.
nuEff
();
}
else
if
(
mesh
.
foundObject
<
transportModel
>
(
"transportProperties"
))
else
if
(
mesh
.
foundObject
<
dictionary
>
(
"transportProperties"
))
{
const
transportModel
&
model
=
mesh
.
lookupObject
<
transportModel
>
(
"transportProperties"
);
const
dictionary
&
model
=
mesh
.
lookupObject
<
dictionary
>
(
"transportProperties"
);
nuEff
=
model
.
nu
();
nuEff
=
tmp
<
volScalarField
>
(
new
volScalarField
(
IOobject
(
"nuEff"
,
mesh
.
time
().
timeName
(),
mesh
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
mesh
,
dimensionedScalar
(
model
.
lookup
(
"nu"
))
)
);
}
else
{
FatalErrorIn
(
"void Foam::
wallShearStress
::write()"
)
FatalErrorIn
(
"void Foam::
Peclet
::write()"
)
<<
"Unable to determine the viscosity"
<<
exit
(
FatalError
);
}
...
...
Write
Preview
Supports
Markdown
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