Salome HOME
PAL19680 CEA 4.1.2: Meshers: BLSURF, GHS3D and holed shapes
authoreap <eap@opencascade.com>
Wed, 30 Apr 2008 09:39:40 +0000 (09:39 +0000)
committereap <eap@opencascade.com>
Wed, 30 Apr 2008 09:39:40 +0000 (09:39 +0000)
      add more 4 advanced options to GHS3D

doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png
doc/salome/gui/SMESH/input/ghs3d_hypo.doc
src/SMESH_SWIG/smeshDC.py

index 1fc03497ca31542d7c2f4f382bebdadb15a5f52b..3628ac067fb15e49537b34100b992070feb2852b 100644 (file)
Binary files a/doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png and b/doc/salome/gui/SMESH/images/ghs3d_parameters_advanced.png differ
index c7d94d5649aab62a2f5e8aee87fae9e75fe99faf..dfad0834352e99b727d1e8651899a961d9e5513b 100644 (file)
@@ -37,6 +37,32 @@ files of ghs3d software, which are files starting with "GHS3D_" prefix. </li>
 <li><b>Keep working files</b> - allows to check input and output files
 of ghs3d software, while usually these files are removed after mesher launch.</li>
 
+<li><b>Verbose level</b> - to choose verbosity level in the range 0 to 10.
+<ul> <li>0, no standard output,
+</li><li>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.
+</li><li>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.
+</li></ul></li>
+
+<li><b>To create new nodes</b> - if this option is checked off, ghs3d
+tries to create tetrahedrons using only nodes of 2D mesh.</li>
+
+<li><b>To use boundary recovery version</b> - 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).</li>
+
+<li><b>Option as text</b> - allows entering any text that will be
+used as command line option of ghs3d. This is for giving
+hidden/undocumented/advanced options </li>
+
 </ul>
 
 */
\ No newline at end of file
index 462eee2550368042ff03a052b6e4616bf9d7d21e..d5f7b3d5feb63a6f1275b1cedc7c14a7c8f5f2ec 100644 (file)
@@ -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
 # ------------------------------