Dear all,
may I ask you the following two questions:
-
Coreform Cubit is using as a standard HEX8 elements for meshing.
Is it possible to choose as a standard HEX27 elements in the UI? -
Exporting HEX27 node coordinates
I’m currently using HEX8 elements and I’m exporting the node coordinates of the HEX mesh to a seperate file with the following code:
#!python
outucdfile = “D:\xyz.dat”
outfile = open(outucdfile,“w”)
cubit.cmd(“group ‘temp_hexes’ add hex all”)
group_id = cubit.get_id_from_name(“temp_hexes”)
hex_list = cubit.get_group_hexes(group_id)
outfile.write(str(len(hex_list))+"\n")
for hex_num in hex_list:
outfile.write(str(hex_num)+"\n")
hex_nodes = cubit.get_connectivity(“Hex”, hex_num)
i = 0
while i < 8:
coord = cubit.get_nodal_coordinates(hex_nodes[i])
outfile.write(str(coord) + “\n”)
i += 1
When I change the element type from HEX8 to HEX27 cubit shows 27 nodes in the UI.
But is it possible to export these 27 node to a separate file with a similar code as shown above?
Just changing the loop from 8 to 27 does not work.
Many thanks
BR Stefan