Commit Graph

4 Commits

Author SHA1 Message Date
Jukka Aho 919186dbfb test(physics): Add physics module test suite runner
- 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)
2025-11-18 16:08:36 +02:00
Jukka Aho 217c821035 test(physics): Add validation and multiphysics pattern tests
- 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
2025-11-18 16:08:36 +02:00
Jukka Aho 263926a3f3 test(physics): Add unit tests for boundary condition methods
- 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
2025-11-18 16:08:36 +02:00
Jukka Aho eb385eb22a test(physics): Add comprehensive unit tests for Physics types
- 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
2025-11-18 16:08:36 +02:00