Tutorials

This section provides a collection of tutorials that demonstrate how to use μfem for various applications. Each tutorial includes a brief summary, the main concepts demonstrated, and the complete code for the example.

List of tutorials

Tutorial

Summary

What is demonstrated

Nonuniform charge density

In this tutorial we analyze the electrostatic electric field generated by a nonuniform charge density distribution in free space

  • How to create a basic mesh with Gmsh

  • How to set up the simulation

  • How to utilize markers

  • How to define materials and boundary conditions

  • How to apply coefficient functions

  • How to use reports to analyze the simulation results