Mahmoud Shaqfa - Science

Welcome

Mahmoud S. M. Shaqfa


About

I obtained my Bachelor’s degree in Civil Engineering at the Islamic University of Gaza (IUG) in 2014. Later, I received my Master’s in Structural Engineering from the University of Pécs in 2017 (Hungary). In 2018, I moved to Switzerland to pursue my Ph.D. at École Polytechnique Fédérale de Lausanne (EPFL), conducting research at the Earthquake Engineering and Structural Dynamics (EESD) Laboratory under the supervision of Prof. Katrin Beyer from 2018 to 2022.

After that, I briefly worked as a postdoctoral fellow at EESD for 4 months. In 2023, after being awarded the prestigious PostDoc.Mobility grant from the Swiss National Science Foundation (SNSF), I moved to the USA to join the van Rees Laboratory (led by Prof. Wim van Rees at MIT).

From February to the end of September 2025, I worked with Prof. Josip Atalić as a scientist at the Croatian Centre for Earthquake Engineering at the University of Zagreb (UniZg).

Currently, I am a postdoc researcher at ETH Zürich (Switzerland) in the Department of Mathematics (D-MATH) at the Seminar for Applied Mathematics (SAM) under the supervision of both Prof. Ralf Hiptmair and Prof. Habib Ammari.


Contact


Research Theses and Proposals

  1. M.Sc.: Design of reinforced concrete beams using metaheuristic algorithms (Prof. Zoltan Orban, PTE, 2018)

  2. Ph.D.: Geometrical treatise on the modelling of 3D particulate inclusion-matrix microstructures with an application to historical stone masonry walls (Prof. Katrin Beyer, EPFL, 2022)

  3. PostDoc: Harmonic decomposition of the 3D morphology of surfaces for simulating the growth of soft shells and plates (Prof. Wim M. van Rees, MIT, 2024)

  4. PostDoc: Manifold harmonics for a high–fidelity spectral–Galerkin solver of shell–like engineering problems (Prof. Ralf Hiptmair and Prof. Habib Ammari, SAM, D-MATH, ETH Zurich, 2025)


Research Works and Interests

During my academic career, I developed an interest in a variety of topics, all of which converge around geometry, shapes, topology, and optimization problems—often with an engineering flavor. These areas demand in-depth knowledge of numerical methods such as Galerkin approaches, Discrete Exterior Calculus, and spectral methods.

Keywords: Solid Mechnanics, Fractal surfaces, Morphology, Computational geometry, Metaheuristics, Optimization, Fracture mechanics, Masonry structures, Rough contacts, CAD.


Manifold harmonics (MH)

This ongoing work focuses on surface parametrization, with further results and details to be presented in due course.

GIF 1

Harmonic basis (Eigen problem)

GIF 2

Harmonic reconstruction

Spheroidal harmonics (SOH)

This is from our new paper [1] that generalizes the traditional spherical harmonics approach (SH).

GIF 1

Surface reconstruction of Max Planck's head bust

Remeshing microstructures of 2D contours

Remeshing of closed contours to generate and parameterize 2D microstructures. In the Figure below, the first two rows show how the contours morph from low to high frequencies (k) and how the number of segment (s) affects the reconstruction; the contours were expanded with a maximum 27 harmonics. The last row shows the corresponding FEM mesh for different frequencies and segments to control the mesh refinements.

Refinement process for PIC2FEM
Hierarchical remeshing of EPFL's logo for finite element meshing.

Uniform remeshing of surfaces and contours via the harmonic decomposition approaches

The reconstructed meshes via the harmonic approaches are neither optimal nor uniform. To have a high-quality mesh, we proposed a morphology-preserving meshing approach. This approach uses the analogy of the heat problem to diffuse the surface points equidistantly on the reconstructed surfaces/contours. This work is still under review, and a preprint will be soon available. The following are some of the obtained results:

GIF 1

Uniform sampling of the dolphin's 2D contour via the Elliptic Fourier approach

The following is a 3D example for remeshing the above reconstruction of Max Planck’s head bust:

GIF 1

Uniform sampling of 2-manifold (3D surface) via the SOH approach [1]

Coming soon: libharmonics: A high-fidelity high-performance C++ library for harmonic decomposition and spectral Galerkin approaches

This library includes a one-to-one Python bindings (API) for all the C++ functionalities implemented. libharmonics relies on OpenMP to parallelize some of the critical loops and FFTW3 to accelerate the decomposition processes (FFT).

Some of the supported features of the library are:

  1. Disk harmonics analysis.
  2. Spheroidal harmonics.
  3. Hemispheroidal harmonics.
  4. 2D Elliptic harmonics.
  5. Morphology-preserving remeshing approaches.
  6. Spectral Galerkin approaches for linear and nonlinear elliptic problems (new).
  7. Solid spherical harmonics expansions (new).
  8. Solid shell spherical harmonics expansions (new).
  9. Spectral Ritz solver with AutoDiff functionalities for shape-shifting problems (new).
  10. Fully spectral Galerkin Boundary Element (BEM) method for embedded particles in a matrix (e.g., Helmholtz, diffusion, and Stokes/elasticity problem kernels) (new).
  11. Supports adaptive or quasi-uniform quadrature rules, in addition to some traditional integration rules for spheres and disks (new).

libharmonics is an open-source library (GPLv3) and will be hosted on this repo: https://github.com/msshaqfa/libharmonics-open.

The current progress:

GIF 1

`libharmonics` progress history.

Main collaborators/groups working on adding new features:

  1. ETH Zurich, Seminar for Applied Mathematics (SAM), Peiyang Yu (PhD student), Prof. Ralf Hiptmair.
  2. CUHK, Department of Mathematics, Prof. Gary P.T. Choi and his students.
  3. EPF Lausanne, EESD laboratory, Ignat Lesiv (PhD student), Prof. Katrin Beyer.

References

[1] Mahmoud Shaqfa and Wim M. van Rees. Spheroidal harmonics for generalizing the morphological decomposition of closed parametric surfaces. Construction and Building Materials, Vol. 454, 2024, Article 138967. https://doi.org/10.1016/j.conbuildmat.2024.138967