Skip to content

Latest commit

 

History

History

PyElastica Examples

This directory contains scripts for the cases presented in the paper. Each case are stored in separate subdirectories, containing case descriptions, run file, and all other data/script necessary to run.

Installing Requirements

In order to run examples, you will need to install additional dependencies.

pip install optional-requirements

Case Examples

Some examples provide additional files or links to published paper for a complete description. Examples can serve as a starting template for customized usages.

  • Figure2c
    • Purpose: Run scripts for Figure 2c in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 2 hours.
  • Figure2e
    • Purpose: Run scripts for Figure 2e in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 2 hours.
  • Figure3a
    • Purpose: Run scripts for Figure 3a in the main text.
    • Inject
      • Purpose: Run scripts to inject initial bend. First run these scripts then run Transport.
      • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour.
    • Transport
      • Purpose: Run scripts for Figure 3a in the main text.
      • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour.
  • Figure3b
    • Purpose: Run scripts for Figure 3b in the main text.
    • Inject
      • Purpose: Run scripts to inject initial bend. First run these scripts then run Transport.
      • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour.
    • Transport
      • Purpose: Run scripts for Figure 3b in the main text.
      • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour.
  • Figure3c
    • Purpose: Run scripts for Figure 3c in the main text.
    • Inject
      • Purpose: Run scripts to inject initial bend. First run these scripts then run Transport.
      • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour.
    • Transport
      • Purpose: Run scripts for Figure 3b in the main text.
      • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour.
  • Figure4a
    • Purpose: Run scripts for Figure 4a in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour 30 minutes.
  • Figure4e
    • Purpose: Run scripts for Figure 4e in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour 30 minutes.
  • Figure4f
    • Purpose: Run scripts for Figure 4f in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 2 hour and 30 minutes.
  • Figure4g
    • Purpose: Run scripts for Figure 4g in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 2 hour and 30 minutes.
  • Figure4i
    • Purpose: Run scripts for Figure 4i in the main text.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 3 hours.
  • SquidTentacle
    • Purpose: Run scripts for Squid Tentacle validation in the SI.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 3 minutes.
  • SIFigure9
    • Purpose: Run scripts for supplementary Figure 9.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 3 hours.
  • SIFigure10b
    • Purpose: Run scripts for supplementary Figure 10b.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 2 hour 30 minutes.
  • SIFigure11a
    • Purpose: Run scripts for supplementary Figure 11a.
    • Run Time: On a Macbook Pro 2021 M1 chip (8 core) 16Gb Ram, simulation takes 1 hour 30 minutes.