Commit Graph

10 Commits

Author SHA1 Message Date
Jukka Aho b981c8301b test(physics): narrow runner to strain helpers while layer stabilizes
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`.
2026-05-09 18:46:27 +03:00
Jukka Aho 2f1e510364 chore(test): remove physics validation experiment
Delete unmaintained validation harness for retired Physics workflows.

- Drop `test/physics/test_validation.jl`.
2026-05-09 18:28:48 +03:00
Jukka Aho 02bb66e30b chore(test): delete legacy physics typing regression
Remove stale physics type tests superseded by tag-based traits.

- Drop `test/physics/test_types.jl`.
2026-05-09 18:28:47 +03:00
Jukka Aho 4fc51ab894 chore(test): drop Dict-era boundary condition tests
Remove physics BC regressions tied to deleted `src/physics/boundary_conditions.jl`.

- Delete `test/physics/test_boundary_conditions.jl`.
2026-05-09 18:28:47 +03:00
Jukka Aho fc43bd457b test(physics): add strain extraction 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.
2025-12-15 06:37:02 +02:00
Jukka Aho 2dcadd85e9 test(physics): update tests for new physics category types
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
2025-12-12 23:49:05 +02:00
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