Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
9fae7f30
Commit
9fae7f30
authored
6 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
BUG: Removed Debug statements
parent
fec74af0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/functionObjects/field/pressure/pressure.C
+0
-5
0 additions, 5 deletions
src/functionObjects/field/pressure/pressure.C
with
0 additions
and
5 deletions
src/functionObjects/field/pressure/pressure.C
+
0
−
5
View file @
9fae7f30
...
@@ -157,10 +157,8 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::calcPressure
...
@@ -157,10 +157,8 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::pressure::calcPressure
}
}
case
ISENTROPIC
:
case
ISENTROPIC
:
{
{
DebugVar
(
"getting thermo"
);
const
basicThermo
*
thermoPtr
=
const
basicThermo
*
thermoPtr
=
p
.
mesh
().
lookupObjectPtr
<
basicThermo
>
(
basicThermo
::
dictName
);
p
.
mesh
().
lookupObjectPtr
<
basicThermo
>
(
basicThermo
::
dictName
);
DebugVar
(
"got thermo"
);
if
(
!
thermoPtr
)
if
(
!
thermoPtr
)
{
{
...
@@ -169,16 +167,13 @@ DebugVar("got thermo");
...
@@ -169,16 +167,13 @@ DebugVar("got thermo");
<<
"thermodynamics package"
<<
"thermodynamics package"
<<
exit
(
FatalError
);
<<
exit
(
FatalError
);
}
}
DebugVar
(
"calc gamma"
);
const
volScalarField
gamma
(
thermoPtr
->
gamma
());
const
volScalarField
gamma
(
thermoPtr
->
gamma
());
DebugVar
(
gamma
);
const
volScalarField
Mb
const
volScalarField
Mb
(
(
mag
(
lookupObject
<
volVectorField
>
(
UName_
))
mag
(
lookupObject
<
volVectorField
>
(
UName_
))
/
sqrt
(
gamma
*
tp
.
ref
()
/
thermoPtr
->
rho
())
/
sqrt
(
gamma
*
tp
.
ref
()
/
thermoPtr
->
rho
())
);
);
DebugVar
(
Mb
);
return
tp
()
*
(
pow
(
1
+
(
gamma
-
1
)
/
2
*
sqr
(
Mb
),
gamma
/
(
gamma
-
1
)));
return
tp
()
*
(
pow
(
1
+
(
gamma
-
1
)
/
2
*
sqr
(
Mb
),
gamma
/
(
gamma
-
1
)));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment