mesh2d_test, a MATLAB program which calls mesh2d() to generate unstructured meshes in 2D.
Copyright (c) 2009, Darren Engwirda All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mesh2d, a MATLAB program which generates unstructured meshes in 2D, by Darren Engwirda.
AIRFOIL_EXTERIOR_test draws a mesh around the outside of an airfoil. The mesh uses 621 nodes and 1015 elements.
AIRFOIL_INTERIOR_test draws a mesh inside an airfoil. The mesh uses 246 nodes and 369 elements.
BAFFLE_test considers a rectangular region containing 13 hexagonal baffles or obstacles. The mesh uses 512 nodes and 874 elements.
CIRCLE_test considers a circular region with the interior and exterior boundaries each defined by 16 vertices.
CIRCLES_test considers a circular region with an off-center hole, with the interior and exterior boundaries each defined by 16 vertices.
ELL_test demonstrates features of MESH2D for the L-shaped region.
ICAM_test demonstrates features of MESH2D for the first floor of the Wright House.
OBSTACLE_test demonstrates features of MESH2D for a channel with a square obstacle.
RECTANGLE_MINUS_CIRCLE_test considers a region of a rectangle minus circular region with the interior and exterior boundaries each defined by 16 vertices.
REFINE_test demonstrates how the refinement feature of MESH2D can be controlled with a mask, which specifies that only certain triangles should be refined, rather than all of them. The masked triangles are split into 4 subtriangles. Triangles immediately neighboring such triangles will be split in half. Remaining triangles will be untouched.
square_border_test demonstrates how a constrained mesh can be created using MESHFACES. In this case, we have a square in a square. We want to mesh the two resulting regions in such a way that they share the nodes along the common edges.
TWO_FOCI_test shows how a mesh density function can be created which enforces a small mesh near either of two foci, while smoothly enlarging as it moves away from them.