User login


You are here

VEMLab: a MATLAB library for the virtual element method

Alejandro Ortiz-Bernardin's picture

Free and open source MATLAB library for the virtual element method.

  • Two-dimensional linear elastostatics (plane strain and plane stress).
  • Solution methods: VEM (polygonal elements), FEM (3-node triangles, 4-node quadrilaterals).
  • 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 and GiD files.

Click here to get and browse the source code



This one used to be visible at the front page of iMechanica until just this afternoon (IST).

Why was it taken off it? I wonder.

Quite unlike what this forum used to be like. ...




Alejandro Ortiz-Bernardin's picture

VEMLab: a MATLAB library for the virtual element method                     
Release of VEMLab v2.0

From VEMLab v1.0 to VEMLab v2.0: the following features have been added 

  • Two-dimensional Poisson problem.
  • Setup of plot and output options in function "plot_and_output_options" located in folder "config".
  • Additional plotting options (stresses, strains, fluxes and gradients) to MATLAB figures, text files and GiD files.
  • Option to plot solutions to VTK files.

Browse and get the code:

Subscribe to Comments for "VEMLab: a MATLAB library for the virtual element method"

Recent comments

More comments


Subscribe to Syndicate