Read msh-file with periodicity
- mgobrial
- Topic Author
- New Member
Less
More
1 year 7 months ago #4728
by mgobrial
Read msh-file with periodicity was created by mgobrial
Dear all,
in Gmsh I have created a mesh of a 90-degree rotating geometry, where
the points at the top and the bottom are already identified as
periodic. When I read the .msh-file in Netgen, the periodicity gets
lost. Do you know how to handle this problem?
In this link the .msh file and my script for reading the mesh
and checking if the periodicity on the top and bottom is satisfied, are provided.
cloud.tugraz.at/index.php/s/x6yCLWGoSRrJMDT
Thanks in advance!
Best,
Mario
in Gmsh I have created a mesh of a 90-degree rotating geometry, where
the points at the top and the bottom are already identified as
periodic. When I read the .msh-file in Netgen, the periodicity gets
lost. Do you know how to handle this problem?
In this link the .msh file and my script for reading the mesh
and checking if the periodicity on the top and bottom is satisfied, are provided.
cloud.tugraz.at/index.php/s/x6yCLWGoSRrJMDT
Thanks in advance!
Best,
Mario
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
1 year 7 months ago #4732
by christopher
Replied by christopher on topic Read msh-file with periodicity
Hm, afaik the gmsh reader in netgen ignores the periodicity data (if it is in the gmsh mesh). If you know how to read it, you could copy the read_gmsh.py file from netgen/python and add the functionality. What you would basically need to add point identificiations for all the identified points:
```
mesh.AddPointIdentification(pointindex1, pointindex2, idnr, netgen.meshing.IdentificationType.PERIODIC)
```
idnr is the identification number if you have multiple identified faces (for example top with bot and left with right), in each idnr a point can only be once.
```
mesh.AddPointIdentification(pointindex1, pointindex2, idnr, netgen.meshing.IdentificationType.PERIODIC)
```
idnr is the identification number if you have multiple identified faces (for example top with bot and left with right), in each idnr a point can only be once.
- mgobrial
- Topic Author
- New Member
Less
More
1 year 7 months ago #4745
by mgobrial
Replied by mgobrial on topic Read msh-file with periodicity
Hi christopher,
thanks for your quick reply! I managed to add the periodic identification to the read_gmsh file and it worked.
Best,
Mario
thanks for your quick reply! I managed to add the periodic identification to the read_gmsh file and it worked.
Best,
Mario
Time to create page: 0.106 seconds