Skip to content

Examples

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

Example Description Demonstrated Concepts
Nonuniform charge density Nonuniform charge density In this tutorial we analyze the electrostatic field generated by a nonuniform charge density distribution in free space.
  • Creation of a basic mesh
  • Simulation setup
  • Use of markers
  • Introduction of materials and boundary conditions
  • Application of coefficient functions
  • Use of reports for analysis and visualization of results