This repository contains the code for an open source MATLAB library for the virtual element method.
- Two-dimensional linear elastostatics (plane strain and plane stress) and two-dimensional Poisson problem.
- Solution methods: Linear VEM (polygonal elements), FEM (3-node triangles, 4-node quadrilateral).
- Boundary conditions: Dirichlet, Neumann on boundary edges; can be a constant or a function.
- Meshers: PolyMesher, distmesh2d, quad4mesh; customized for rectangular domains only (requires adjustments for other domain types).
- Meshes need to be generated separately and stored inside folder 'mesh_files' located in the folder 'test.'
- Meshes must be generated with the functions 'create_' located in the folder 'mesher.'
- Solutions can be plotted to MATLAB figures, text files, GiD files and VTK files.