From: eap Date: Tue, 18 Jan 2011 10:59:55 +0000 (+0000) Subject: 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers X-Git-Tag: StartingPortingMED3~156 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0791e4e6b0aa000381f780c3172a7f4befc9c98;p=modules%2Fsmesh.git 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers + Quadratic mesh
  • Quadrangle preference
  • Triangle preference
  • +
  • Viscous layers
  • The choice of a hypothesis depends on: diff --git a/doc/salome/gui/SMESH/input/additional_hypo.doc b/doc/salome/gui/SMESH/input/additional_hypo.doc index 81eab0be8..67e10c35b 100644 --- a/doc/salome/gui/SMESH/input/additional_hypo.doc +++ b/doc/salome/gui/SMESH/input/additional_hypo.doc @@ -57,4 +57,34 @@ otherwise refinement area will contain some quadrangular elements. This hypothesis is obsolete now. Use Quadrangle Parameters hypothesis with type Triangle Preference set instead. +\anchor viscous_layers_anchor +

    Viscous Layers

    + +Viscous Layers additional hypotheses can be used together with +several 3D algorithms: NETGEN 3D, GHS3D and Hexahedron(i,j,k). This +hypothesis allows creation of layers of highly stretched prisms near +mesh boundary, which is beneficial for high quality viscous +computations. The prisms constructed on the quadrangular mesh faces are +actually the hexahedrons. + + +\image html viscous_layers_hyp.png + + + +\image html viscous_layers_mesh.png A group containing viscous layer prisms. + +
    See also a sample TUI script of a \ref tui_viscous_layers +"Viscous layers construction". + + */ diff --git a/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc b/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc index 1581e7c2f..4ced1731a 100644 --- a/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc +++ b/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc @@ -673,6 +673,51 @@ import2hyp.SetCopySourceMesh(True,True) tgtMesh.Compute() \endcode +\anchor tui_viscous_layers +

    Viscous layers construction

    + +\code +from smesh import * +SetCurrentStudy(salome.myStudy) + +X = geompy.MakeVectorDXDYDZ( 1,0,0 ) +O = geompy.MakeVertex( 100,50,50 ) +plane = geompy.MakePlane( O, X, 200 ) # plane YZ + +box = geompy.MakeBoxDXDYDZ(200,100,100) + +shape = geompy.MakeHalfPartition( box, plane ) + +faces = geompy.SubShapeAllSorted(shape, geompy.ShapeType["FACE"]) +face1 = faces[1] +ignoreFaces = [ faces[0], faces[-1]] + +geompy.addToStudy( shape, "shape" ) +geompy.addToStudyInFather( shape, face1, "face1") + + +mesh = Mesh(shape, "CFD") + +mesh.Segment().NumberOfSegments( 4 ) + +mesh.Triangle(NETGEN_2D) +mesh.Quadrangle(face1) +mesh.Compute() +algo3D = mesh.Tetrahedron(NETGEN) + +thickness = 20 +numberOfLayers = 10 +stretchFactor = 1.5 +layersHyp = algo3D.ViscousLayers(thickness,numberOfLayers,stretchFactor,ignoreFaces) + +mesh.Compute() + +mesh.MakeGroup("Tetras",VOLUME,FT_ElemGeomType,"=",Geom_TETRA) +mesh.MakeGroup("Pyras",VOLUME,FT_ElemGeomType,"=",Geom_PYRAMID) +mesh.MakeGroup("Prims",VOLUME,FT_ElemGeomType,"=",Geom_PENTA) + +\endcode + \n Other meshing algorithms: