Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NTRfC
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
Service Desk
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
TFD - Institut für Turbomaschinen und Fluid-Dynamik
tools
NTRfC
Commits
fe609f9e
Commit
fe609f9e
authored
2 years ago
by
many
Browse files
Options
Downloads
Patches
Plain Diff
remove unused code
parent
99b65a86
No related branches found
No related tags found
2 merge requests
!29
new extract_hk_vk implementation
,
!28
add autoconcavehull and handle zero-length concaveHull computations when using...
Pipeline
#9046
passed
2 years ago
Stage: build
Stage: test
Stage: quality
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ntrfc/turbo/profile_tele_extraction.py
+0
-29
0 additions, 29 deletions
ntrfc/turbo/profile_tele_extraction.py
with
0 additions
and
29 deletions
ntrfc/turbo/profile_tele_extraction.py
+
0
−
29
View file @
fe609f9e
...
...
@@ -4,39 +4,10 @@ from matplotlib import path
from
scipy
import
interpolate
from
scipy.spatial
import
Delaunay
from
ntrfc.geometry.alphashape
import
calc_concavehull
from
ntrfc.geometry.line
import
lines_from_points
,
polyline_from_points
,
refine_spline
from
ntrfc.math.vectorcalc
import
findNearest
,
vecDir
# read the base-data
def
read_data
(
sortedPoly
,
alpha
):
# set data to m from mm
X
=
sortedPoly
.
points
[:,
0
]
Y
=
sortedPoly
.
points
[:,
1
]
Z
=
sortedPoly
.
points
[:,
2
]
# find smallest values for shifting to touch x and y axis
move_X
=
min
(
X
)
move_Y
=
min
(
Y
)
# shift
X
=
X
-
min
(
X
)
Y
=
Y
-
min
(
Y
)
idx
=
np
.
argsort
(
X
)
X
=
np
.
sort
(
X
)
Y
=
Y
[
idx
]
Z
=
Z
[
idx
]
# find geometry with boundary function. Given parameter is
# sensibility for ignoring konvex outliners.
ord_x
,
ia
=
np
.
unique
(
X
,
return_index
=
True
)
Y
=
Y
[
ia
]
Z
=
Z
[
ia
]
X
=
ord_x
X
,
Y
=
calc_concavehull
(
X
,
Y
,
alpha
)
return
X
,
Y
,
Z
,
move_X
,
move_Y
def
split_up
(
ordering
):
"""
returns coordinates from the pseudo pressure and suction side. Argument
...
...
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