Fem: Add Z-refinement support for Netgen

This commit is contained in:
marioalexis
2025-02-08 13:20:28 -03:00
parent eb886449c2
commit f5de900f8d
2 changed files with 42 additions and 5 deletions

View File

@@ -469,11 +469,32 @@ class MeshNetgen(base_fempythonobject.BaseFemPythonObject):
)
prop.append(
_PropHelper(
type="App::PropertyBool",
name="AutoZRefine",
type="App::PropertyEnumeration",
name="ZRefine",
group="Mesh Parameters",
doc="Automatic Z refine",
value=False,
doc="Z-refinement for extruded shapes",
value=["No", "Regular", "Custom"],
)
)
prop.append(
_PropHelper(
type="App::PropertyVector",
name="ZRefineDirection",
group="Mesh Parameters",
doc="Z-refinement direction",
value=Base.Vector(0, 0, 1),
)
)
prop.append(
_PropHelper(
type="App::PropertyFloatList",
name="ZRefineSize",
group="Mesh Parameters",
doc="Z-refinement size given as a fraction of the shape size.\n"
+ "For a regular partition only one value is needed",
value=[
0.1,
],
)
)
prop.append(