Commit Graph

6 Commits

Author SHA1 Message Date
Jukka Aho beac1c264f test(dofs): add real Stokes flow test
New 307-line test file for complete Stokes flow implementation:
- Tests mixed finite elements with velocity (Vec{2} at vertices)
  and pressure (Float64 at cell centers) DOFs
- Implements real viscous term assembly: ∫μ∇u:∇v dx
- Implements real divergence operator: ∫p(∇·v) dx
- Solves incompressible Stokes flow: -μΔu + ∇p = f, ∇·u = 0
- Validates saddle-point system structure [A B'; B 0]
- Tests boundary conditions (no-slip on bottom)
- Verifies incompressibility constraint ∇·u = 0

Demonstrates complete Stokes physics with mixed DOF types and
cell-entity DOFs for incompressible flow applications.
2025-12-15 07:53:04 +02:00
Jukka Aho 08f67d273d test(dofs): add mixed DOF vararg test
New 166-line test file for variadic MixedDOF type system:
- Tests type-level multi-field composition with @MixedDOF macro
- Validates DOF indices structure (tuple of tuples, not NamedTuple)
- Tests DOF sharing between elements for different entity types
- Compares MixedDOF (vararg) vs NamedTuple approaches
- Demonstrates 4-field mixed system: Temperature, Displacement,
  Pressure, Electric potential on different entities

Validates variadic approach to multi-field elements where DOF types
are mixed as type parameters rather than named fields.
2025-12-15 07:50:39 +02:00
Jukka Aho ffe08202f1 test(dofs): add DOF system test
Tests core DOF system functionality.
Validates DOF{T,E} types and DOFSet specifications.
2025-12-15 07:46:39 +02:00
Jukka Aho efbeeb2918 test(dofs): add DOF connectivity test
Tests DOF connectivity system for inverse mapping.
Validates DOF-to-element connectivity for DOF-based assembly.
2025-12-15 07:46:38 +02:00
Jukka Aho 20729506d3 test(dofs): add runtests.jl
Test suite organizer for DOF system module.
Includes field unification and DOF system tests.
2025-12-15 07:43:28 +02:00
Jukka Aho 8ff03a6505 test(dofs): add field unification test
Test file included in test/dofs/runtests.jl
Tests DOF field specification unification system
2025-12-15 06:32:38 +02:00