Skip to content

Tutorials

Every page in this section is generated from a runnable script in scripts/ by Literate.jl, so each one can be executed, edited and re-run locally:

bash
julia scripts/03_walpole.jl

The generated pages come with a pre-run Jupyter notebook and a cleaned standalone script under docs/generated_notebooks/ and docs/generated_scripts/.

Simplest first within each group.

Tensor algebra

PageWhat it shows
Bases, variance and the metrican oblique basis, dual basis and metric, covariant vs contravariant components, and where variance stops mattering
Tensor products, contractions and their identitiesthe ⊠/⊠ˢ algebra checked numerically, the identity that fails, isotropic projection, and why it does not commute with inversion
The Walpole basis end to endthe six as   matrices, the multiplication table, the correct decomposition of , and three parametrizations of one carbon/epoxy ply
The eight-dimensional axially invariant space, the complex product rule, and what a five-parameter best fit silently discards
Projection and symmetry detectionfixed axis vs optimized, determinism, the detection cascade, and the cost of each path

Differential calculus

PageWhat it shows
Differential operators, symbolicallythe five operators in polar, cylindrical and spherical coordinates; the hoop strain that comes from the connection alone; the index-placement convention
Christoffel symbolsthe definition checked term by term, every predefined system tabulated, symbolic and numerical routes compared, spheroidal harmonics
Differential operators, numericallypointwise evaluation by AD, the Lamé hollow-sphere problem with its equilibrium residual, and sensitivities through the operators
Surfaces: fundamental forms and curvaturesphere, cylinder, plane and paraboloid; Gauss's Theorema Egregium; the array-comparison trap
Classical identities of the differential operatorsevery identity checked, not quoted, on four charts — including a deliberately non-orthogonal one, the only case that tests the covariant/contravariant bookkeeping

Applications in mechanics

PageWhat it shows
Elastic Green's functionsthe Kelvin solution in 2-D and 3-D,    matched against its closed form
A two-point Green tensor between offset framescombining tensors that live in two different spherical charts
The elastic sphere, solved symbolicallyhydrostatic and deviatoric problems, the Lamé exponents, and how they assemble into an -layer sphere
Acoustic and Hill tensors    and    , written once and run on an isotropic and a transversely isotropic stiffness

Types, differentiation and performance

PageWhat it shows
Differentiation and interoperabilityForwardDiff through the algebra and through a projection, symbolic vs automatic derivatives, Tensors.jl interop
Performance of the structured typesmeasured speed-ups of the closed forms over the dense route, allocations, and where the structure stops paying

Where to start

If you are new to the library, read Getting started first, then Bases, variance and the metric — variance is the one notion a Cartesian-only tensor library does not have, and everything else rests on it.