Meshing export nodes/faces for diodore

Hi,

I would like to use Rhino for creating mesh files of simple shape floating bodies (cylinder, box,etc…) in order to use them with a french potential hydrodynamic software DIODORE (equiv to WAMIT)

I’m looking for the exportation of :
the mesh nodes coordinates with an associated number.
the nodes group creating the mesh faces with an associated number for the face

eg for a 4- quadratic panel
NODES
N° x y z
1 0 0 0
2 1 0 0
3 1 1 0
4 0 1 0
5 -1 1 0
6 -1 0 0
7 -1 -1 0
8 0 -1 0
9 1 -1 0

FACES
1 1 2 3 4
2 1 4 5 6
3 1 6 7 8
4 1 8 9 2

I tried all the export format possibilities but i do not achieve to find one which would give me the two types of information.

Any ideas ?

Best Regards.
C.

This can easily be done with python scripting. If you upload an example of a mesh input to diodore, I can write a script for you.

Pål

Hi Pal,

Thank you for your answer.

Mesh INPUT for DIODORE are written in the following way :

  • text file : NAME.dat
    first line $NODES
    then for each node N° x y z
    then *RETURN
    then for each quadratic face N° node1 number node2 number node3 number node4 number
    then *RETURN
    then for each triangular face N° node1 number node2 number node3 number
    end line *RETURN

Best regards,
C.

EXAMPLE.zip (258 Bytes)

Hi,

You can generate this meshfile using the attached python script in Rhino.

exportDIODORE.py (972 Bytes)

Regards Pål

Hi Pal,

Thank you for the scrypt !
I will test it and go back to you.

BR,
C.

Hi again,

It’s working perfectly.
thank you very much Pal.

BR,
C.

Glad to hear, enjoy!