X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FblocFissure%2Fgmu%2FgenereMeshCalculZoneDefaut.py;h=33820ea278f7ebe6b2b24788a976c49f825c7dd7;hp=a08664bad6f35931590f1e7c56c53968bbbd76cc;hb=6d32f944a0a115b6419184c50b57bf7c4eef5786;hpb=5d68554076bbca0e1e95fb0db215a6c2b84b6c54 diff --git a/src/Tools/blocFissure/gmu/genereMeshCalculZoneDefaut.py b/src/Tools/blocFissure/gmu/genereMeshCalculZoneDefaut.py index a08664bad..33820ea27 100644 --- a/src/Tools/blocFissure/gmu/genereMeshCalculZoneDefaut.py +++ b/src/Tools/blocFissure/gmu/genereMeshCalculZoneDefaut.py @@ -1,7 +1,25 @@ # -*- coding: utf-8 -*- +# Copyright (C) 2014-2019 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# import logging -from geomsmesh import smesh +from .geomsmesh import smesh from salome.smesh import smeshBuilder # ----------------------------------------------------------------------------- @@ -9,8 +27,19 @@ from salome.smesh import smeshBuilder def genereMeshCalculZoneDefaut(facefiss, minSize, maxSize): """ - TODO: a completer - """ + -Permet de générer un maillage sur l'objet géométrique 'facefiss' via + l'algorithme NETGEN_1D2D : + -SetMaxSize = dimension max d'un élément (maxSize) + -SetSecondOrder = élément quadratique (Y=1, N=0) + -SetOptimize = élément régulier (Y=1, N=0) + -SetFineness = finesse du maillage + [very_coarse, coarse, moderate, fine, very_fine, custom] + [0, 1, 2, 3, 4, 5 ] + -SetMinSize = dimension min d'un élément (minSize) + -SetQuadAllowed = permission quadrangle dans maillage triangle + -On récupère les coordonnées de chaque noeud de la fissure qu'on stocke + dans une liste sous la forme : [X0, Y0, Z0, ..., Xn, Yn, Zn]""" + logging.info('start') meshFissure = smesh.Mesh(facefiss)