mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
improve interpolation
This commit is contained in:
1 parent
82eba020ac
commit
2f47b190ac
2 files changed
+8
-4
No files matched your search
+7
-3
@@ -181,7 +181,8 @@ class MeshingWithMage(AMeshingTool):
|
||||
|
||||
ns, npts_max = self.get_reach_stat()
|
||||
|
||||
self.complete_cross_section()
|
||||
gl = reach.compute_guidelines()
|
||||
self.complete_cross_section(gl[0])
|
||||
self.interpolate_cross_section(ns, step)
|
||||
|
||||
self.export_to_m(m_file)
|
||||
@@ -212,8 +213,11 @@ class MeshingWithMage(AMeshingTool):
|
||||
|
||||
return ns, npts_max
|
||||
|
||||
def complete_cross_section(self):
|
||||
self.st_to_m_compl(0, ' ', ' ')
|
||||
def complete_cross_section(self, gl=[]):
|
||||
gl1 = ["un"]+list(gl)
|
||||
gl2 = list(gl)+["np"]
|
||||
for l in zip(gl1, gl2):
|
||||
self.st_to_m_compl(0, l[0], l[1])
|
||||
|
||||
def interpolate_cross_section(self, ns, step: float):
|
||||
self.interpolate_profils_pas_transversal(
|
||||
|
||||
Reference in new issue
Block a user