Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coupled theories FEniCSx codes

A collection of FEniCSx finite element codes for a wide array of coupled-physics theories in solid mechanics.

Accompanies the book,

  • L. Anand, E.M. Stewart, S.A. Chester. Introduction to coupled theories in solid mechanics. 2025, in preparation.

A selection of example codes are provided for:

  1. Finite elasticity
  2. Finite deformation viscoelasticity with inertial effects
  3. Finite thermo-elasticity
  4. Gel mechanics
  5. Gel thermo-mechanics
  6. Chemo-mechanically coupled Cahn-Hilliard
  7. Electro-elasticity of dielectric elastomers
  8. Electro-viscoelasticity of dielectric elastomers with inertial effects
  9. Electro-chemo-elasticity of ionic polymers
  10. Magneto-viscoelasticity of hard-magnetic soft-elastomers
  11. Magneto-viscoelasticity of soft-magnetic soft-elastomers

Running the codes

A detailed guide for installing FEniCSx in a Docker container and running the notebooks using VSCode is provided 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.

Citation

If you use these codes in your own research, please cite the software:

DOI

as well as the associated textbook:

  • L. Anand, E. M. Stewart, and S. A. Chester. Introduction to coupled theories in solid mechanics. Oxford University Press, 2026.

BibTeX citations:

@software{stewart2025,
  author       = {Stewart, E. M. and Chester, S. A. and Anand, L.},
  title        = {Example codes for coupled theories in solid mechanics},
  month        = jan,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {v0.0},
  doi          = {10.5281/zenodo.14680876},
  url          = {https://doi.org/10.5281/zenodo.14680876}
}

@book{anand2026,
author={Anand, L. and Stewart, E. M. and Chester, S. A.},
         title={Introduction to coupled theories in solid mechanics},
         publisher = {Oxford University Press},
         year={2026}
     }

Legacy codes

"Legacy" FEniCS versions of some of the example codes presented in this repository are available in the following repository:

About

Example finite element codes for coupled theories in solid mechanics.

Resources

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages