Skip to content

Process gmsh meshes in CGX

mkraska edited this page Feb 4, 2022 · 1 revision

Gmsh-generated meshes need to be converted before use in CCX:

  • Boundary regions are written as sets of surface or line elements and associated node sets.
  • Frequently, you need element face based surface definitions in CCX

Conversion procedure in CGX. In the example we have a second order tetrahedral mesh with a physical surface in called "load". Upon export to inp, CPS6 elements are created along with a corresponding node set.

Read the mesh

read gmsh.inp

Delete the surface elements. Use the generic element-type based set created by CCX upon reading the file.

zap +CPS6 

Expand (complete) the existing node set to include also the associated element faces

comp load do  

Then you can use that set to write surface definitions

send load abq sur
Clone this wiki locally