Relative Content

Tag Archive for gmsh

Gmsh – flow in the channel with obstacle

I need some help with this mesh. I want to make sure that the internal part of the circle is not filled by the triangles of the mesh. How can I modify the code below to achieve this?

GMSH viewer can’t read the nodes

I created this .msh file manually. So far I struggled to get GMSH to output the hexahedron mesh I need. So far the end result is that GMSH viewer can’t read the nodes as it states in it’s status bar.

Generating a hexahedron mesh with gmsh of a box. The mesh does not contain hexahedron cells

import gmsh import csv def write_faces(element_types, element_tags, element_node_tags): # Write faces to CSV with open(‘beam_faces.csv’, ‘w’, newline=”) as csvfile: writer = csv.writer(csvfile) for i, elem_node_tags_current in enumerate(element_node_tags): for j in range(0, len(elem_node_tags_current), 8): # 8 nodes per hexahedron face = elem_node_tags_current[j:j+8] writer.writerow(face) def write_nodes(node_tags, node_coords, _): # Write nodes to CSV with open(‘beam_nodes.csv’, ‘w’, newline=”) […]

Trying to create 3D mesh structure with a particle inside it – Gmsh

Trying to create a 3D solid mesh structure which has a solid particle inside it. I want the box and the sphere both have non-overlapped mesh structure. But the BOX’s mesh is also going inside the sphere’s mesh. Trying to delete the volume of sphere from the box, and then generating 3D mesh for both. But its not working? Any suggestions?

Applying the same number of elements in two surfaces

I have this geometry that I insert as a step file. The problem is that GMSH does not add the same amount of elements on the cylinders of the picture, the one has 134 nodes and the other 140. How can I make the number of nodes equal?