Commit Graph

9 Commits

Author SHA1 Message Date
33180d66c9 Rewrite NXOpenSolver to use existing Atomizer optimization engine
- Use optimization_engine.nx.updater.NXParameterUpdater for expression updates (.exp import method)
- Use optimization_engine.nx.solver.NXSolver for journal-based solving (run_journal.exe)
- Use optimization_engine.extractors for displacement, stress, and mass extraction
- Displacement: extract_displacement() from pyNastran OP2
- Stress: extract_solid_stress() with cquad4 support (shell elements), kPa→MPa conversion
- Mass: extract_mass_from_expression() reads from temp file written by solve journal
- Support for iteration folders (HEEDS-style clean state between trials)
- Proper error handling with TrialResult(success=False, error_message=...)
- 600s timeout per trial (matching existing NXSolver default)
- Keep stub solver and create_solver() factory working
- Maintain run_doe.py interface compatibility
2026-02-10 23:26:51 +00:00
017b90f11e feat(hydrotech-beam): Phase 1 LHS DoE study code
Implements the optimization study code for Phase 1 (LHS DoE) of the
Hydrotech Beam structural optimization.

Files added:
- run_doe.py: Main entry point — Optuna study with SQLite persistence,
  Deb's feasibility rules, CSV/JSON export, Phase 1→2 gate check
- sampling.py: 50-point LHS via scipy.stats.qmc with stratified integer
  sampling ensuring all 11 hole_count levels (5-15) are covered
- geometric_checks.py: Pre-flight feasibility filter — hole overlap
  (corrected formula: span/(n-1) - d ≥ 30mm) and web clearance checks
- nx_interface.py: NX automation module with stub solver for development
  and NXOpen template for Windows/dalidou integration
- requirements.txt: optuna, scipy, numpy, pandas

Key design decisions:
- Baseline enqueued as Trial 0 (LAC lesson)
- All 4 DV expression names from binary introspection (exact spelling)
- Pre-flight geometric filter saves compute and prevents NX crashes
- No surrogates (LAC lesson: direct FEA via TPE beats surrogate+L-BFGS)
- SQLite persistence enables resume after interruption

Tested end-to-end with stub solver: 51 trials, 12 geometric rejects,
39 solved, correct CSV/JSON output.

Ref: OPTIMIZATION_STRATEGY.md, auditor review 2026-02-10
2026-02-10 22:15:06 +00:00
94bff37a67 Fix spacing formula (span/(n-1)), web height constraint, resolve audit blockers 2026-02-10 22:07:39 +00:00
3e5180485c Update optimization strategy with introspection-corrected baselines 2026-02-10 22:02:46 +00:00
15a457d2be KB introspection: corrected mass 1133 kg, DV baselines, full expression map from Beam.prt binary 2026-02-10 21:57:21 +00:00
b88657b00c KB Gen 002: Process KBS sessions, update model parameters
Sources: 3 KBS capture sessions (20260210-132817, 20260210-161401, 20260210-163801)

Key changes:
- Mass corrected: 974 kg (p173) → 11.33 kg (p1) — KBS ground truth
- Beam length confirmed: 5,000 mm cantilever
- BCs confirmed: left fixed, right 10,000 kgf downward
- Material confirmed: AISI Steel 1005, density 7.3 g/cm³
- Mesh confirmed: CQUAD4 thin shell, 33.7 mm elements
- Hole geometry: span 4,000 mm (p6), offsets 500 mm fixed
- 3 gaps closed (G1, G2, G8), 6 new gaps identified (G10-G15)
- New expressions: beam_half_height, beam_half_width, beam_length, p6

Files: CONTEXT.md, kb/_index.md, kb/_history.md, kb/components/sandwich-beam.md,
       kb/materials/steel-aisi.md, kb/fea/models/sol101-static.md, kb/dev/gen-002.md
2026-02-10 21:49:39 +00:00
3ab1cad4e1 auto: daily sync 2026-02-10 08:00:22 +00:00
9541958eae Restructure Hydrotech Beam project — KB-integrated layout
New project structure with knowledge base integration:
- kb/ with components, materials, fea, dev generations
- models/ for reference NX files (golden copies)
- studies/ for self-contained optimization campaigns
- deliverables/ for final outputs
- DECISIONS.md decision log (6 decisions tracked)
- BREAKDOWN.md (moved from 1_breakdown/)
- Gen 001 created from intake + technical breakdown

KB extension file: atomizer/shared/skills/knowledge-base-atomizer-ext.md

Refs: DEC-HB-004, DEC-HB-005, DEC-HB-006
2026-02-09 02:18:29 +00:00
65711cdbf1 Add Hydrotech Beam project files - CONTEXT.md and TECHNICAL_BREAKDOWN.md
Project intake and technical breakdown for beam structural optimization.
4 design variables, SOL 101, single-objective (minimize mass).
2026-02-09 00:23:01 +00:00