I am planning a visualization of flows though Concave Bisymmetric hexagons with two mouths.
Example where the length of the side d1 equals the other length of the side d2:
which naming I discussed initially here about Irregular hexagons.
There is the standard Mesh tool where you can draw your own meshes but I would like have some standard library such that I can cooperate better with others with the flow simulations later. I did not find any Mesh library for Hexagons in MathCentral File Exchange here.
Is there any standard Mesh library for irregular hexagon shapes? I am open to any other languages too because I could read the code and convert it those standards to Matlab library.
I discussed this issue with my colleque. He motivates to create a triangle network but also points out general algorithms for nonconvex polygons.
To create a Mesh by own algorithm
assemmbly
and construct trimesh structures byinittri
f
is built bybilin_assembly
(because this worked before but not necessarily the optimal choice)Division of hexagon with two mouths into two trapezoids
The following syntaxes are based on my editions of codes in 2013 but mostly on descriptions of the book Numerical solutions of partial differential equations by the finite element method by Claes Johnson.
Syntax of assembly where considered now for simplicity a Poisson problem (must be later refined here)
where we need bilinear assembly which syntax
Syntax to init triangular mesh
I did no post the complete source codes here because of copyright issues and they would make the answer rather long. However, all algorithms are based on the first source so can be created by any researcher here. I think this kind of FEM method is the only way to find the optimum mesh here.
Algorithms for general nonconvex polygons
There are also algorithms which can create meshes for general nonconvex polygons. It is possible that the mesh provided by Margus' answer is produced by such an algorithm.
Ansys
I was experiencing different products about visualizing holes, different geometries and different materials. Ansys is promising solution here.
Sources