From: eap Date: Wed, 30 Apr 2008 09:39:40 +0000 (+0000) Subject: PAL19680 CEA 4.1.2: Meshers: BLSURF, GHS3D and holed shapes X-Git-Tag: V4_1_2~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d5cf736e4cec3344600d1e007204c6b36efe5b9;p=modules%2Fsmesh.git PAL19680 CEA 4.1.2: Meshers: BLSURF, GHS3D and holed shapes add more 4 advanced options to GHS3D --- diff --git a/doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png b/doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png index 1fc03497c..3628ac067 100644 Binary files a/doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png and b/doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png differ diff --git a/doc/salome/gui/SMESH/input/ghs3d_hypo.doc b/doc/salome/gui/SMESH/input/ghs3d_hypo.doc index c7d94d564..dfad08343 100644 --- a/doc/salome/gui/SMESH/input/ghs3d_hypo.doc +++ b/doc/salome/gui/SMESH/input/ghs3d_hypo.doc @@ -37,6 +37,32 @@ files of ghs3d software, which are files starting with "GHS3D_" prefix.
  • Keep working files - allows to check input and output files of ghs3d software, while usually these files are removed after mesher launch.
  • +
  • Verbose level - to choose verbosity level in the range 0 to 10. +
  • + +
  • To create new nodes - if this option is checked off, ghs3d +tries to create tetrahedrons using only nodes of 2D mesh.
  • + +
  • To use boundary recovery version - enables using a +boundary recovery module which tries to +create volume meshes starting from very poor quality surface meshes +(almost flat triangles on the surface, high density propagation, +extreme aspect ratios, etc.) which fails with the standard version. The +resulting volume mesh will however most likely have a very poor +quality (poor aspect ratio of elements, tetrahedra with a very small +positive volume).
  • + +
  • Option as text - allows entering any text that will be +used as command line option of ghs3d. This is for giving +hidden/undocumented/advanced options
  • + */ \ No newline at end of file diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 462eee255..d5f7b3d5f 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -2860,7 +2860,7 @@ class Mesh_Triangle(Mesh_Algorithm): elif algoType == BLSURF: import BLSURFPlugin self.Create(mesh, geom, "BLSURF", "libBLSURFEngine.so") - self.SetPhysicalMesh() + #self.SetPhysicalMesh() - PAL19680 elif algoType == NETGEN: if noNETGENPlugin: print "Warning: NETGENPlugin module unavailable" @@ -3244,6 +3244,38 @@ class Mesh_Tetrahedron(Mesh_Algorithm): if self.params == 0: self.Parameters() self.params.SetKeepFiles(toKeep) + ## To set verbose level [0-10] + # 0 - no standard output, + # 2 - prints the data, quality statistics of the skin and final meshes and + # indicates when the final mesh is being saved. In addition the software + # gives indication regarding the CPU time. + # 10 - same as 2 plus the main steps in the computation, quality statistics + # histogram of the skin mesh, quality statistics histogram together with + # the characteristics of the final mesh. + # Advanced parameter of GHS3D + def SetVerboseLevel(self, level): + if self.params == 0: self.Parameters() + self.params.SetVerboseLevel(level) + + ## To create new nodes + # Advanced parameter of GHS3D + def SetToCreateNewNodes(self, toCreate): + if self.params == 0: self.Parameters() + self.params.SetToCreateNewNodes(toCreate) + + ## To use boundary recovery version which tries to create mesh on a very poor + # quality surface mesh + # Advanced parameter of GHS3D + def SetToUseBoundaryRecoveryVersion(self, toUse): + if self.params == 0: self.Parameters() + self.params.SetToUseBoundaryRecoveryVersion(toUse) + + ## To set hidden/undocumented/advanced options + # Advanced parameter of GHS3D + def SetTextOption(self, option): + if self.params == 0: self.Parameters() + self.params.SetTextOption(option) + # Public class: Mesh_Hexahedron # ------------------------------