Skip to main content

solid_mechanics/
lib.rs

1//! # solid-mechanics
2//!
3//! Solid mechanics library implementing stress, strain, and deformation of solids.
4//!
5//! ## Modules
6//! - **tensor**: Stress and strain tensors (Cauchy stress, infinitesimal strain)
7//! - **constitutive**: Constitutive relations (Hooke's law, isotropic/anisotropic elasticity)
8//! - **mohr**: Mohr's circle (principal stresses, maximum shear)
9//! - **beam**: Beam mechanics (Euler-Bernoulli beam, deflection, bending moments)
10//! - **fem**: Finite element basics (1D bar elements, assembly, boundary conditions)
11//! - **yield_criteria**: Yield criteria (von Mises, Tresca)
12//! - **plane**: Plane stress and plane strain
13//! - **energy**: Energy methods (strain energy, Castigliano's theorem)
14
15pub mod tensor;
16pub mod constitutive;
17pub mod mohr;
18pub mod beam;
19pub mod fem;
20pub mod yield_criteria;
21pub mod plane;
22pub mod energy;
23
24pub use tensor::{StressTensor, StrainTensor};
25pub use constitutive::{HookeIsotropic, ElasticityTensor};
26pub use mohr::MohrCircle;
27pub use beam::EulerBernoulliBeam;
28pub use fem::{BarElement1D, FemAssembler1D};
29pub use yield_criteria::{VonMises, Tresca};
30pub use plane::{PlaneStress, PlaneStrain};
31pub use energy::StrainEnergy;