mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
speed up internal meshing
This commit is contained in:
1 parent
fb09cf254e
commit
a42c46f4d2
1 file changed
-6
@@ -56,10 +56,8 @@ class InternalMeshing(AMeshingTool):
|
||||
step)
|
||||
|
||||
for new_profiles2 in new_profiles:
|
||||
print(f"purge...")
|
||||
for p in new_profiles2:
|
||||
p.hard_purge_aligned_points()
|
||||
print(f"fin purge")
|
||||
|
||||
return new_profiles
|
||||
|
||||
@@ -101,7 +99,6 @@ class InternalMeshing(AMeshingTool):
|
||||
max_values_index[-1] = j
|
||||
|
||||
for i in range(len(max_values)):
|
||||
print(f"compl_sect {i}...")
|
||||
for isect in range(max_values_index[i], len(profiles)-1):
|
||||
self.compl_sect(profiles[isect],
|
||||
profiles[isect+1],
|
||||
@@ -110,7 +107,6 @@ class InternalMeshing(AMeshingTool):
|
||||
self.compl_sect(profiles[isect+1],
|
||||
profiles[isect],
|
||||
gl1[i], gl2[i])
|
||||
print(f"fin compl_sect {i}")
|
||||
return profiles
|
||||
|
||||
def interpolate_transversal_step(self,
|
||||
@@ -126,7 +122,6 @@ class InternalMeshing(AMeshingTool):
|
||||
|
||||
new_profiles = []
|
||||
for i in range(len(profiles)-1):
|
||||
print(f"interpolate sect {i}...")
|
||||
new_profiles2 = []
|
||||
d = 1.0/float(np[i]+1)
|
||||
for j in range(np[i]):
|
||||
@@ -150,7 +145,6 @@ class InternalMeshing(AMeshingTool):
|
||||
profiles[i].rk)
|
||||
p.name = f'interpol{p.rk}'
|
||||
new_profiles2.append(p)
|
||||
print(f"fin interpolate sect {i}")
|
||||
new_profiles.append(new_profiles2)
|
||||
return new_profiles
|
||||
|
||||
|
||||
Reference in new issue
Block a user