Legacy physics API tests were retired with the module reset; keep only the strain
smoke file until higher-level physics coverage returns.
- Import `JuliaFEM` explicitly for includes under `Pkg.test`.
New 137-line test file included in main test/runtests.jl:
- Tests extract_strain() function (displacement gradient → strain tensor)
- Tests extract_strain_rate() function (velocity gradient → strain rate tensor)
- Tests pure extension, shear deformation, and general deformation cases
- Tests quasi-static strain rate from increments
- Validates symmetric tensor properties and engineering shear strain
Ensures strain extraction functions work correctly for continuum mechanics.
Replace tests for old Physics struct with tests for new physics
category types and trait-based dispatch.
- Remove tests for Physics struct, DirichletBC, NeumannBC, Constraint
- Add tests for Elasticity{Dim} and Thermal{Dim} category types
- Add tests for required_field_type trait function
- Test type stability and dispatch behavior
- Verify dimension-dependent field type mapping
- Create unified test runner for physics module
- Include test_types.jl for type construction tests
- Include test_boundary_conditions.jl for BC method tests
- Include test_validation.jl for validation tests
- Total: 60 tests passing across 15 test sets
- Test coverage: 41% (264 test lines / 646 implementation lines)
- Test mesh reference semantics (not copying)
- Verify multiple physics can share same mesh
- Test type parameter specialization for dispatch
- Validate concrete type generation
- Test multiple materials with shared mesh
- Verify BC independence between physics instances
- Document multiphysics coupling patterns
- 13 additional test assertions for edge cases
- Test add_dirichlet! with single and multiple nodes
- Test partial DOF constraints (e.g., only z-direction)
- Test BC accumulation across multiple calls
- Test add_neumann! with single and multiple surfaces
- Test different traction values and vectors
- Test combined Dirichlet and Neumann BCs
- Verify BC independence between physics instances
- 149 lines with 47 test assertions
- Test DirichletBC, NeumannBC, Constraint construction
- Test Physics construction with various mesh topologies
- Verify type parameter inference and specialization
- Test with Hex8 and Segment mesh types
- Validate concrete type parameters for dispatch optimization
- 100 lines covering all type construction scenarios