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
378e88a4
Commit
378e88a4
authored
2 years ago
by
many
Browse files
Options
Downloads
Patches
Plain Diff
fix warnings
parent
e16117df
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!10
Merge recent changes in master to we_ahrens
Pipeline
#8339
failed
2 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ntrfc/meshquality/nondimensionals.py
+1
-1
1 addition, 1 deletion
ntrfc/meshquality/nondimensionals.py
ntrfc/turbo/probegeneration.py
+1
-1
1 addition, 1 deletion
ntrfc/turbo/probegeneration.py
tests/turbo/test_ntrfc_probegeneration.py
+1
-1
1 addition, 1 deletion
tests/turbo/test_ntrfc_probegeneration.py
with
3 additions
and
3 deletions
ntrfc/meshquality/nondimensionals.py
+
1
−
1
View file @
378e88a4
...
@@ -45,7 +45,7 @@ def cellDirections(cellUMean, wallNorm):
...
@@ -45,7 +45,7 @@ def cellDirections(cellUMean, wallNorm):
def
closestWallNormalPoint
(
point
,
surfacenormals
):
def
closestWallNormalPoint
(
point
,
surfacenormals
):
surfacepoint_id
=
surfacenormals
.
find_closest_point
(
point
)
surfacepoint_id
=
surfacenormals
.
find_closest_point
(
point
)
wallpoint
=
surfacenormals
.
points
[
surfacepoint_id
]
wallpoint
=
surfacenormals
.
points
[
surfacepoint_id
]
return
surfacenormals
.
point_
arrays
[
"
Normals
"
][
surfacepoint_id
],
wallpoint
-
point
return
surfacenormals
.
point_
data
[
"
Normals
"
][
surfacepoint_id
],
wallpoint
-
point
def
calcWallNormalVectors
(
surfaceMesh
,
volmesh
):
def
calcWallNormalVectors
(
surfaceMesh
,
volmesh
):
...
...
This diff is collapsed.
Click to expand it.
ntrfc/turbo/probegeneration.py
+
1
−
1
View file @
378e88a4
...
@@ -70,7 +70,7 @@ def create_stagnationpointprobes(length, nop, sortedpoly, ind_vk, u_inlet, midsp
...
@@ -70,7 +70,7 @@ def create_stagnationpointprobes(length, nop, sortedpoly, ind_vk, u_inlet, midsp
vk_point
=
sortedpoly
.
points
[
ind_vk
]
vk_point
=
sortedpoly
.
points
[
ind_vk
]
angle
=
vecAngle
(
u_inlet
,
np
.
array
([
1
,
0
,
0
])
*
180
/
np
.
pi
)
angle
=
vecAngle
(
u_inlet
,
np
.
array
([
1
,
0
,
0
])
*
180
/
np
.
pi
)
stagnationLine
=
pv
.
Line
((
0
,
0
,
0
),
(
-
length
,
0
,
0
),
nop
-
1
)
stagnationLine
=
pv
.
Line
((
0
,
0
,
0
),
(
-
length
,
0
,
0
),
nop
-
1
)
stagnationLine
.
rotate_z
(
angle
)
stagnationLine
.
rotate_z
(
angle
,
inplace
=
False
)
stagnationLine
.
translate
(
vk_point
)
stagnationLine
.
translate
(
vk_point
)
x_probes
=
stagnationLine
.
points
[::,
0
]
x_probes
=
stagnationLine
.
points
[::,
0
]
y_probes
=
stagnationLine
.
points
[::,
1
]
y_probes
=
stagnationLine
.
points
[::,
1
]
...
...
This diff is collapsed.
Click to expand it.
tests/turbo/test_ntrfc_probegeneration.py
+
1
−
1
View file @
378e88a4
...
@@ -30,7 +30,7 @@ def test_create_midpassageprobes():
...
@@ -30,7 +30,7 @@ def test_create_midpassageprobes():
res
=
240
res
=
240
xs
,
ys
=
naca
(
naca_code
,
res
,
half_cosine_spacing
=
False
)
xs
,
ys
=
naca
(
naca_code
,
res
,
half_cosine_spacing
=
False
)
sorted_poly
=
pv
.
PolyData
(
np
.
stack
([
xs
,
ys
,
np
.
zeros
(
len
(
xs
))]).
T
)
sorted_poly
=
pv
.
PolyData
(
np
.
stack
([
xs
,
ys
,
np
.
zeros
(
len
(
xs
))]).
T
)
sorted_poly
.
rotate_z
(
angle
)
sorted_poly
.
rotate_z
(
angle
,
inplace
=
False
)
sorted_extracted_poly
,
psPoly
,
ssPoly
,
ind_vk
,
ind_hk
,
midsPoly
,
beta_leading
,
beta_trailing
,
camber_angle
=
extract_geo_paras
(
sorted_extracted_poly
,
psPoly
,
ssPoly
,
ind_vk
,
ind_hk
,
midsPoly
,
beta_leading
,
beta_trailing
,
camber_angle
=
extract_geo_paras
(
sorted_poly
,
1
)
sorted_poly
,
1
)
nop
=
40
nop
=
40
...
...
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