Skip to content
Snippets Groups Projects
Commit 378e88a4 authored by many's avatar many
Browse files

fix warnings

parent e16117df
Branches
Tags
1 merge request!10Merge recent changes in master to we_ahrens
Pipeline #8339 failed
...@@ -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):
......
...@@ -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]
......
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment