Menu

(how to match the 'geomtype') mesh file from .geo and mesh file from. stp

Help
2017-02-17
2017-02-17
  • Seonhye Han

    Seonhye Han - 2017-02-17

    Hello, I've never used the .geo before.
    Two different types of geometry (. stp and . geo) make different 'geomtype' in the mesh file.

    .stp makes 'surfaceelementssuv' and .geo makes with 'surfaceelements'.
    First, I don't know difference between them.
    Second, I'd like to get the format of meshfile from .geo meaning 'geomtype = 0'.

    This is the mesh file from ' .step' geometry


    mesh3d
    dimension
    3
    geomtype
    12

    surfnr bcnr domin domout np p1 p2 p3

    surfaceelementsuv
    416
    2 1 1 0 3 3 59 87 3.6254 25.4 3.3835 25.4 3.3835 19.0627
    2 1 1 0 3 4 60 89 4.1092 25.4 3.8673 25.4 4.03211 19.0582
    2 1 1 0 3 5 61 91 4.59301 25.4 4.35111 25.4 4.48607 19.0516
    2 1 1 0 3 4 89 90 4.1092 25.4 4.03211 19.0582 4.24417 19.0516


    And....
    This is the mesh file from '.geo' geometry


    mesh3d
    dimension
    3
    geomtype
    0

    surfnr bcnr domin domout np p1 p2 p3

    surfaceelements
    2402
    2 1 1 0 3 1 2 282
    2 1 1 0 3 3 4 283
    2 1 1 0 3 5 6 284
    2 1 1 0 3 7 8 285
    2 1 1 0 3 9 10 286
    2 1 1 0 3 10 11 287
    2 1 1 0 3 286 10 287
    2 1 1 0 3 11 12 287
    2 1 1 0 3 12 13 288
    2 1 1 0 3 14 15 289
    2 1 1 0 3 16 17 290
    2 1 1 0 3 18 19 291
    2 1 1 0 3 20 21 292
    2 1 1 0 3 22 23 293


    My final goal is just to load the mesh file in another program with the mesh format from .geo... not . step.

    I was thinking about .stp to .geo , but it was hard to find a convertor.
    Plus, I want to know the meaning of 'geomtype' and why these mesh file format should be different.

    Hope you can suggest me any imformation to solve this problem.
    Thanks.

     

    Last edit: Seonhye Han 2017-02-17
  • Christoph Wintersteiger

    Hello,

    the geomtype is an internal variable which mainly controls which data is saved to or loaded from a mesh-file.

    The resulting mesh-files of geo and step are almost identical. 'surfaceelementsuv' contains more information than 'surfaceelements'. This means you can just ignore the figures after the point numbers. Besides that, the rest of the mesh-files should be the same.

    Regards,
    Christoph

     

Log in to post a comment.