This repository contains a set of tutorials designed to help users learn how to simulate hyperelastic materials and solve multiphysic problems using the Finite Element Method (FEM) in Julia with the HyperFEM toolbox.
HyperFEM is built on top of the Gridap.jl ecosystem, providing specialized tools for multiphysics hyperelastic simulations. The initial tutorials demonstrate the core usage of HyperFEM, and these are recommended for new users.
1- Clone the repository: git clone https://github.com/MultiSimOLab/HyperFEM_tutorials.git
cd HyperFEM_tutorials
2- Open the Julia REPL, type ] to enter package mode, and activate de environment:
pkg> activate .3- Install dependencies:
pkg> instantiateThe HyperFEM tutorials include a wide range of examples, carefully selected to demonstrate the toolbox's capabilities. Each example focuses on a specific type of problem, from basic PDEs to complex multiphysics and optimization scenarios. These examples are ideal for understanding both the theoretical formulation and the practical implementation of FEM simulations in Julia.
Example 1: Poisson
# Introduces fundamental FEM concepts and demonstrates solving a simple Poisson equation.
Example 2: Hyperelastic beam stretching
# Illustrates large deformation analysis of a hyperelastic beam, showcasing material nonlinearity.
Example 3: Hyperelastic cylinder (4 fibres model) under internal pressure
# Demonstrates anisotropic hyperelastic modeling with fiber-reinforced materials under internal loading.
Example 4: Electromechanical beam
# Introduces coupled electromechanical simulations, highlighting interactions between mechanical and electrical fields.
Example 5: Anisotropic Electromechanical beam
# Shows the effect of anisotropic material behavior in coupled electromechanical problems.
Example 6: Hyperelastic contact with third medium
# Covers contact mechanics involving hyperelastic materials interacting with a third body.
Example 7 Topology optimization of hyperelastic cantilever
# Demonstrates optimization techniques applied to hyperelastic structures for design improvement.
Example 8: Magnetomechanical beam
# Illustrates magnetomechanical coupling simulations, integrating magnetic and mechanical field interactions.In order to give credit to the HyperFEM contributors, we ask that you please reference the paper:
C. Perez‐Garcia, R. Ortigosa, J. Martínez‐Frutos, and D. Garcia‐Gonzalez, Topology and material optimization in ultra-soft magnetoactive structures: making advantage of residual anisotropies. Adv. Mater. (2025): e18489. https://https://doi.org/10.1002/adma.202518489
along with the required citations for Gridap.
- Grants PID2022-141957OA-C22/PID2022-141957OB-C22 funded by MCIN/AEI/ 10.13039/501100011033 and by ''ERDF A way of making Europe''
Contact the project administrator Jesús Martínez-Frutos for further questions about licenses and terms of use.
