Commit Graph

31 Commits

Author SHA1 Message Date
Jukka Aho f332fe9ad1 test(dofs): run multifield and facet-map integration suite
The DOF runner now exercises the type-stable handler path end-to-end (multi-field
templates, facet orientation maps, and higher-order hex facets) instead of the
retired field-unification stub.

- Replace `test_field_unification.jl` with global ranges, multifield wiring, and
  facet-map coverage across tet/wedge/pyramid/tet10/hex20 shapes.
- Drop the unused `Tensors` import and the old header docstring.
2026-05-09 18:44:49 +03:00
Jukka Aho f70744b5fa test(dofs): add wedge facet map tests 2026-05-09 18:38:15 +03:00
Jukka Aho 34b3c385b4 test(dofs): add Tet4 facet map tests 2026-05-09 18:38:14 +03:00
Jukka Aho 64dbb1720d test(dofs): add Tet10 facet map tests 2026-05-09 18:38:14 +03:00
Jukka Aho 84aa0b7394 test(dofs): add pyramid facet map tests 2026-05-09 18:38:14 +03:00
Jukka Aho 1b0e10e8f4 test(dofs): add multifield DOF handler regression 2026-05-09 18:38:14 +03:00
Jukka Aho 6a658a9c9b test(dofs): add multicomponent facet DOF tests 2026-05-09 18:38:14 +03:00
Jukka Aho 0382f2869c test(dofs): add Hex8 face DOF handler tests 2026-05-09 18:38:14 +03:00
Jukka Aho fabd0033e9 test(dofs): add Hex20 facet map wiring tests 2026-05-09 18:38:13 +03:00
Jukka Aho c87326bed8 test(dofs): add global field range helper tests 2026-05-09 18:38:13 +03:00
Jukka Aho ea10b1edc0 chore(test): remove THMECD hex DOF regression
Delete retired hex multifield physics scaffolding.

- Drop `test/dofs/test_thmecd_hexa_physics.jl`.
2026-05-09 18:25:56 +03:00
Jukka Aho 624ea068b5 chore(test): remove THMEC wedge DOF regression
Delete unmaintained penta-element coupling tests.

- Drop `test/dofs/test_thmec_penta_physics.jl`.
2026-05-09 18:25:56 +03:00
Jukka Aho 32381065da chore(test): delete minimal THME DOF smoke test
Remove unused thermo-hydro-mechanical-electric DOF scaffolding.

- Drop `test/dofs/test_thme_minimal.jl`.
2026-05-09 18:25:42 +03:00
Jukka Aho a12ad2ffc5 chore(test): drop THM real-physics DOF regression
Remove stale coupling tests superseded by domain-level kernels.

- Delete `test/dofs/test_thm_real_physics.jl`.
2026-05-09 18:25:42 +03:00
Jukka Aho 05397e0200 chore(test): remove crazy THM multifield experiment
Delete exploratory thermo-hydro-mechanical DOF tests outside CI coverage.

- Drop `test/dofs/test_thm_crazy_multifield.jl`.
2026-05-09 18:25:42 +03:00
Jukka Aho 5ffacf66cc chore(test): delete legacy Stokes DOF regression
Remove an unmaintained Stokes multifield test tied to retired APIs.

- Drop `test/dofs/test_stokes_real.jl`.
2026-05-09 18:25:41 +03:00
Jukka Aho ff8232566c chore(test): remove mixed-DOF vararg regression
Delete unused vararg `@DOFSet` experiments.

- Drop `test/dofs/test_mixeddof_vararg.jl`.
2026-05-09 18:25:24 +03:00
Jukka Aho b890bfb78d chore(test): drop field unification experiment
Remove obsolete multifield unification tests from the pre-reset stack.

- Delete `test/dofs/test_field_unification.jl`.
2026-05-09 18:25:24 +03:00
Jukka Aho 6f9f7cc932 chore(test): delete retired DOF system suite
Remove tests targeting the removed `DOFManager`-style API.

- Drop `test/dofs/test_dof_system.jl`.
2026-05-09 18:25:24 +03:00
Jukka Aho ffcc82d61e chore(test): remove legacy DOF connectivity regression
Delete Dict-era connectivity tests superseded by `DOFHandler` coverage.

- Drop `test/dofs/test_dof_connectivity.jl`.
2026-05-09 18:25:24 +03:00
Jukka Aho 3d4d47294f test(dofs): add THM-ECD hexa-physics coupling test
New 746-line test file implementing 6-field THM-ECD system:
- Tests 6-field system: Temperature, Displacement, Pore pressure,
  Electric potential, Chemical concentration, Damage (NEW)
- Implements complete physics with 30 off-diagonal coupling blocks
- Tests damage-enhanced properties: thermal conductivity κ(d),
  permeability k(d), diffusion D(d), reduced conductivity σ_e(d)
- Tests damage-degraded stiffness: σ = (1-d)·C:ε
- Implements damage evolution: mechanical, thermal, chemical,
  pressure, and electric field damage
- Validates elastic energy driving force: Y = ½ε:(C:ε)
- Tests all damage coupling mechanisms for hydraulic fracturing,
  stress corrosion cracking, concrete spalling, shale gas

Ultimate hexa-physics demonstration with damage mechanics for
complete failure analysis in complex multi-physics systems.
2025-12-15 08:01:27 +02:00
Jukka Aho b1a417e5a3 test(dofs): add THM-EC penta-physics coupling test
New 779-line test file implementing 5-field THM-EC system:
- Tests 5-field system: Temperature, Displacement, Pore pressure,
  Electric potential, Chemical concentration (NEW)
- Implements complete physics with 20 off-diagonal coupling blocks
- Tests all existing THM-E couplings plus 8 new chemical couplings:
  K_uc (chemomechanical), K_Tc (reaction heat), K_cT (Soret),
  K_pc (fluid source), K_cp (pressure-dependent diffusion),
  K_φc (ionic migration)
- Demonstrates chemical transport: diffusion, advection, migration,
  thermal diffusion, pressure-dependent diffusivity
- Tests reaction terms: heat of reaction, fluid source from reactions
- Validates complete multi-physics for geothermal, nuclear waste,
  CO2 sequestration, batteries, concrete durability, corrosion

Ultimate demonstration of multi-field Element API with 5 fields and
20 coupling blocks - the most complex multi-physics system possible.
2025-12-15 08:00:26 +02:00
Jukka Aho 0735206afa test(dofs): add minimal THME multi-physics test
New 118-line minimal test demonstrating complex multi-physics:
- Tests 4-field THME system (Temperature, Displacement, Pressure,
  Electric potential) in under 100 lines of code
- Demonstrates all 6 bidirectional couplings (12 coupling blocks)
- Shows that complex physics does not require complex code
- Validates thermal expansion, Biot poroelasticity, thermal pressurization,
  electro-osmotic, Seebeck/Peltier, and piezoelectric coupling
- Tests simultaneous assembly of all physics in one element loop
- Demonstrates type-safe field access and local-to-global mapping

Minimal but complete demonstration of multi-field Element API for
geothermal, nuclear waste, CO2 sequestration, and smart materials.
2025-12-15 08:00:11 +02:00
Jukka Aho b0434d8c82 test(dofs): add real THM-E physics coupling test
New 705-line test file implementing complete THM-E physics:
- Tests 4-field system: Temperature (vertices), Displacement (vertices),
  Pore pressure (cells), Electric potential (edges)
- Implements complete physics: heat equation, elasticity, Darcy flow,
  charge conservation with all coupling terms
- Tests 12 off-diagonal coupling blocks: K_Tu, K_up, K_Tp, K_φp, K_Tφ, K_uφ
- Implements thermal expansion, Biot poroelasticity, thermal pressurization,
  electro-osmotic, Seebeck/Peltier, and piezoelectric coupling
- Uses 3rd-order piezoelectric tensor (Tensor{3,3}) for proper formulation
- Validates Onsager reciprocity for all coupling pairs
- Tests one element loop assembling all physics simultaneously
- Demonstrates type-safe field access and local-to-global mapping

Complete multi-physics demonstration with real tensor operations and
zero-allocation assembly for complex coupled systems.
2025-12-15 07:57:14 +02:00
Jukka Aho 37a383091c test(dofs): add THM-E multi-field coupling test
New 399-line test file demonstrating ultimate multi-physics coupling:
- Tests 4-field system: Temperature (vertices), Displacement (vertices),
  Pore pressure (cells), Electric potential (edges)
- Implements fully coupled THM-E system with off-diagonal blocks
- Demonstrates thermal-mechanical coupling (K_uT)
- Demonstrates poroelastic coupling (K_up, K_pu)
- Tests simultaneous assembly in one pass for all fields
- Validates global DOF numbering across different entity types
- Shows type-safe field access: elem.dof_indices.T, .u, .p, .φ

Ultimate demonstration of multi-field Element API for complex
coupled physics: geomechanics, CO2 sequestration, nuclear waste,
electrokinetic remediation, geothermal energy.
2025-12-15 07:56:27 +02:00
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