Personal tools
You are here: Home Forum Install & build error running introduction to MESH

error running introduction to MESH

Up to Install & build
  • error running introduction to MESH

    Posted by paco_espinola at January 04. 2007

    When I start salome I get the following warning:


    [paco@localhost salome]$ SetSignal( Standard_False ) is not implemented...

    ****************************************************************

    * Warning: library Component cannot be found

    * Module will not be available

    ****************************************************************

    ****************************************************************

    * Warning: library PyCalculator cannot be found

    * Module will not be available

    ****************************************************************

    th. 3020073184 - Trace /dn22/SALOME/OCCtestE/KERNEL/Mandriva/KERNEL_SRC/src/NamingService/SALOME_NamingService.cxx [851] : Change_Directory() : FactoryServer (dir) not found

    th. 3020073184 - Trace /dn22/SALOME/OCCtestE/SMESH/Mandriva/SMESH_SRC/src/SMESH_I/SMESH_Gen_i.cxx [241] : SMESH_Gen_i::SMESH_Gen_i : standard constructor


    If I try to load the first script in the help

    Introduction to MESH mod python interface I got the following error


    [GCC 4.0.1 (4.0.1-2mdk for Mandriva Linux release 2006.0)] on linux2

    type help to get general information on environment

    >>> execfile("/home/paco/D-SALOME-EJE/primero.py";)

    Traceback (most recent call last):

    File "", line 1, in ?

    File "/home/paco/D-SALOME-EJE/primero.py", line 16, in ?

    box = MakeBox(-cote, -cote, -cote, +cote, +cote, +cote)

    NameError: name 'MakeBox' is not defined


    I believe that that error is consequence from the first error.

    Where I can change the search path for salome?


    This is the script:


    import smesh

    # Geometry

    # an assembly of a box, a cylinder and a truncated cone meshed with tetrahedral.

     

    # Define values

    name = "ex21_lamp"

    cote = 60

    section = 20

    size = 200

    radius_1 = 80

    radius_2 = 40

    height = 100

     

    # Build a box

    box = MakeBox(-cote, -cote, -cote, +cote, +cote, +cote)

     

    # Build a cylinder

    pt1 = MakeVertex(0, 0, cote/3)

    di1 = MakeVectorDXDYDZ(0, 0, 1)

    cyl = MakeCylinder(pt1, di1, section, size)

     

    # Build a truncated cone

    pt2 = MakeVertex(0, 0, size)

    cone = MakeCone(pt2, di1, radius_1, radius_2, height)

     

    # Fuse

    box_cyl = MakeFuse(box, cyl)

    piece = MakeFuse(box_cyl, cone)

     

    # Add in study

    addToStudy(piece, name)

     

    # Create a group of faces

    group = CreateGroup(piece, ShapeType["FACE"])

    group_name = name + "_grp"

    addToStudy(group, group_name)

    group.SetName(group_name)

     

    # Add faces in the group

    faces = SubShapeAllIDs(piece, ShapeType["FACE"])

    UnionIDs(group, faces)

     

    # Create a mesh

     

    # Define a mesh on a geometry

    tetra = smesh.Mesh(piece, name)

     

    # Define 1D hypothesis

    algo1d = tetra.Segment()

    algo1d.LocalLength(10)

    # Define 2D hypothesis

    algo2d = tetra.Triangle()

    • Re: error running introduction to MESH

      Posted by Erwan ADAM at January 04. 2007
      Try to add :

      from geompy import *

      just before :

      import smesh


      Regards, E.A.
      • Re: error running introduction to MESH

        Posted by Nandita Dash at June 07. 2007
        Hi,
         
              I have installed salome 3.2,.6 in Mandriva 2006 . when I run command ./runsalome I get this type of error & not able to open MESH, MED , POST_PRO module
         



        bash-3.00# SetSignal( Standard_False ) is not implemented...
        ****************************************************************
        *    Warning: library Component cannot be found
        *    Module will not be available
        ****************************************************************
        ****************************************************************
        *    Warning: library PyCalculator cannot be found
        *    Module will not be available
        ****************************************************************

         can anyone help me!

        Thank in advance
        Nandita Dash
Powered by Ploneboard
Document Actions