Meshing: Add lplan and linear to meching options.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-07 17:09:50 +01:00
1 parent b913d76972
commit a663dc482c
5 files changed
+29 -17

No files matched your search

+12 -4
View File
@@ -65,6 +65,10 @@ class MeshingWithMage(AMeshingTool):
)
)
@classmethod
def _path(cls):
return cls._exe_path()
def _init_c_init_bief_from_geo_file(self):
self._c_init_bief_from_geo_file = getattr(
self._bief_lib, 'c_init_bief_from_geo_file'
@@ -278,6 +282,10 @@ class MeshingWithMageMailleurTT(AMeshingTool):
)
)
@classmethod
def _path(cls):
return cls._exe_path()
###########
# Meshing #
###########
@@ -288,7 +296,7 @@ class MeshingWithMageMailleurTT(AMeshingTool):
directrices=['un', 'np'],
lplan: bool = False,
lm: int = 3,
lineaire: bool = False):
linear: bool = False):
if reach is None or len(reach.profiles) == 0:
return reach
@@ -301,14 +309,14 @@ class MeshingWithMageMailleurTT(AMeshingTool):
proc.setWorkingDirectory(tmp)
lplan = 1 if lplan else 0
lineaire = 1 if lineaire else 0
linear = 1 if linear else 0
logger.info(
f"! mailleurTT {st_file} {m_file} " +
f"{str(step)} " +
f"{limites[0]} {limites[1]} " +
f"{directrices[0]} {directrices[1]} " +
f"{lplan} {lm} {lineaire}"
f"{lplan} {lm} {linear}"
)
proc.start(
self._exe_path(),
@@ -318,7 +326,7 @@ class MeshingWithMageMailleurTT(AMeshingTool):
st_file, m_file, step,
limites[0], limites[1],
directrices[0], directrices[1],
lplan, lm, lineaire
lplan, lm, linear
]
))
)