Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VirtFlow_GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Andreas Weissenbrunner
VirtFlow_GUI
Commits
daa12120
Commit
daa12120
authored
2 years ago
by
Andreas Weissenbrunner
Browse files
Options
Downloads
Patches
Plain Diff
change the profile script
parent
322a1627
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
PlotProfiles_for_paper.py
+24
-8
24 additions, 8 deletions
PlotProfiles_for_paper.py
with
24 additions
and
8 deletions
PlotProfiles_for_paper.py
+
24
−
8
View file @
daa12120
...
...
@@ -75,19 +75,35 @@ def get_fully_SA(r):
# --------------------------------------------------------------
plt
.
rcParams
[
'
figure.figsize
'
]
=
[
5
,
5
]
flow
=
Elbow_profile
(
'
Double_S_Elbow
'
)
flow
=
Elbow_profile
(
'
SingleElbow
'
)
if
flow
.
case
==
'
DoubleElbow
'
:
case
=
"
DE
"
elif
flow
.
case
==
"
Double_S_Elbow
"
:
case
=
"
DSE
"
elif
flow
.
case
==
"
SingleElbow
"
:
case
=
"
SE
"
#
ufully
=
get_fully_SA
(
flow
.
r
.
ravel
())
Rks
=
[
0.51
,
1.67375
,
3.38375
]
rk
=
1.17604257
dls
=
[
0
,
5
,
10
]
# Rks = [0.51,1.5981882,5.51] #for the DE and DSE cases
Rks
=
[
0.51
,
1.10375
,
1.67375
,
5.165
,
10.01
]
rk
=
1.5981882
dls
=
[
0.01
,
5
,
10
]
dl
=
0.01
dist
=
6
for
dl
in
dl
s
:
for
rk
in
Rk
s
:
u
=
flow
.
get_profile
(
Rk
=
rk
,
dl
=
dl
,
dist
=
dist
,
addfully
=
False
)
u
=
u
.
reshape
(
3
,
-
1
)
u
[
2
]
+=
ufully
nicecontour
(
flow
.
x
,
flow
.
y
,
u
,
minval
=
0.48
,
maxval
=
1.13
,
scalefac
=
0.3
)
nicecontour
(
flow
.
x
,
flow
.
y
,
u
,
minval
=
0.48
,
maxval
=
1.13
,
scalefac
=
0.3
,
withcolorbar
=
False
)
plt
.
xlabel
(
"
x
"
)
plt
.
ylabel
(
"
y
"
)
#plt.title(case + " $R_c$= "+ "{:.2f}".format(rk) + " $d_l$= " + "{:.2f}".format(dl) )
plt
.
title
(
case
+
"
$R_c$=
"
+
"
{:.2f}
"
.
format
(
rk
))
plt
.
tight_layout
()
plt
.
savefig
(
"
C:/Users/weisse02/PTBbox/VirtMet/Auswertung_paper/Profile_plots/
"
+
flow
.
case
+
"
_rk_
"
+
str
(
rk
)
+
"
_dist_
"
+
str
(
dist
)
+
"
_dl_
"
+
str
(
dl
)
+
"
.pdf
"
)
\ No newline at end of file
plt
.
savefig
(
"
C:/Users/weisse02/PTBbox/VirtMet/Auswertung_paper/Profile_plots/
"
+
flow
.
case
+
"
_rk_
"
+
str
(
rk
)
+
"
_dist_
"
+
str
(
dist
)
+
"
_dl_
"
+
str
(
dl
)
+
"
.pdf
"
)
#
#
\ No newline at end of file
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