anisotropy/playground/test_smesh.py

32 lines
813 B
Python

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
ALGOS = [
smeshBuilder.NETGEN_1D2D3D,
smeshBuilder.NETGEN_3D, smeshBuilder.NETGEN_1D2D,
smeshBuilder.NETGEN_2D,
smeshBuilder.MEFISTO, # only 2d
smeshBuilder.REGULAR, smeshBuilder.COMPOSITE
]
mesh = smesh.Mesh(SHAPE)
algo = mesh.Tetrahedron(algo = ALGO)
###
# fc 111 0.12 N3D N2D(0.1, 0.0001, Mod)
# 3min 321k
###
# fc 100
# theta max min fineness gr.rate perEdge perRadius choralErr
# 0.01 0.1 0.001 custom 0.3 3 5 0.05
# 0.12 0.1 0.001 moderate 0.3 1 2 0.05
#
# fc 111
# 0.12 0.1 0.001 moderate 0.3 1 2 0.05