Examples demonstrating the use of VABS/SwiftComp for structural analysis using the Mechanics of Structure Genome (MSG) approach.
- Create a new example: Copy
examples/_template/and follow the Example Guidelines - Structure: Use MyST Markdown for documentation (
.md) + Python scripts (.py) + Jupyter visualizations (.ipynb) - Reference example: See
examples/gmsh_t18/for a complete implementation
examples/
├── _template/ # Template for new examples (copy this!)
├── gmsh_t18/ # Reference implementation
├── gmsh_periodic/ # Existing example (to be refactored)
└── sg23_udfrc_gmsh_sc/ # Existing example (to be refactored)
doc/
├── EXAMPLE_GUIDELINES.md # Comprehensive best practices
- MyST Markdown: Rich documentation with math, figures, cross-references
- Interactive Visualizations: Plotly-based notebooks with hover, zoom, pan
- Modular Design: Separate scripts for geometry, analysis, visualization
- Reproducible: Well-documented code with logging and configuration
- Git-Friendly: Markdown-based documentation for easy collaboration
Environment setup: See pyproject.toml for virtual environment and dependencies.
Building documentation:
uv add mystmd
uv run myst start # Preview at http://localhost:3000
uv run myst build --html # Build website
uv run myst build --pdf # Export PDFContributions welcome! Please:
- Use the provided template
- Follow the guidelines in
EXAMPLE_GUIDELINES.md - Ensure examples build without errors
- Add appropriate frontmatter and cross-references
License: See LICENSE file
Contact: Issues for questions