This repository contains example FEniCSx finite element simulation codes for a large deformation coupled magneto-elasticity theory of soft-magnetorheological materials (s-MREs), including viscoelastic and dynamic effects.
Specifically, the repository contains all the relevant FEniCSx Jupyter notebooks, mesh files, and experimental data files which were used in the representative example simulations in the accompanying paper, "Magnetostriction of soft-magnetoreheological elastomers," by Eric M. Stewart and Lallit Anand.
The paper has been submitted but not yet published. Please contact me (ericstew@mit.edu) for up-to-date citation information if you use these codes in your own research.
A detailed guide for installing FEniCSx in a Docker container and running the notebooks using VSCode is provided in this repository, both for Mac and Windows. The installation process is essentially similar for the two operating systems, but the example screenshots in the instructions are from the relevant system.
These are our preferred methods for editing and running FEniCSx codes, although many other options exist. Note that all codes were written for FEniCSx v0.8.0, so our instructions documents will direct you to install this specific version of FEniCSx.