Commit Graph

3 Commits

Author SHA1 Message Date
Jukka Aho 3ada6aa07d docs(physics): tidy Thermal tag docstring
Drop a duplicated example line and remove the commented-out Fluid placeholder
that suggested unfinished velocity dispatch.

- Clarify `Thermal{Dim}` wording; delete stale `Fluid{Dim}` sketch.
2026-05-09 18:15:35 +03:00
Jukka Aho d59b32fed5 refactor(physics): replace Physics struct with trait-based category types
Replace monolithic Physics struct and boundary condition types with
simpler physics category types used for trait-based dispatch.

- Remove Physics struct (Formulation, Field, Mesh, Material coupling)
- Remove DirichletBC and NeumannBC boundary condition storage types
- Remove Constraint type
- Add Elasticity{Dim} and Thermal{Dim} physics category types
- Add required_field_type trait function for physics-to-field mapping
- Simplify to type tags for material trait dispatch
- Support compile-time field type inference from physics
- Align with new architecture: physics types are dispatch tags, not problem containers
2025-12-12 23:45:16 +02:00
Jukka Aho 90d9f52bf6 refactor(physics): Implement Physics struct with 4 type parameters
- Define Physics{Formulation, Field, Mesh, Material} <: AbstractPhysics
- Implement type parameter validation in inner constructor
- Add DirichletBC for essential boundary conditions
- Add NeumannBC for natural boundary conditions
- Add Constraint placeholder for future constraint handling
- Provide keyword constructor with automatic type inference
- Document dispatch-optimized type parameter order
- 205 lines including comprehensive docstrings
2025-11-18 16:08:35 +02:00