Skip to content

v0.6.0: 결과 묶음 (최대·최소 표시, 재료 바꿔 보기, 케이스 포락, 메시 확인, 둘러보기) - #18

Merged
knoxxr merged 47 commits into
mainfrom
ccr-da6cba6f-qulklh
Nov 29, 2026
Merged

knoxxr merged 47 commits into
mainfrom
ccr-da6cba6f-qulklh

Conversation

@knoxxr

@knoxxr knoxxr commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

결과 화면 (ROADMAP §8 UI-1, UI-4)

  • 최대·최소 위치 라벨(안전율·수명은 최소, 부호 있는 값은 양쪽; 한글 글꼴)
  • 변형 '배율 직접', 색 범위 직접 정하기, 색각 친화 색표(설정 저장)
  • 자주 안 쓰는 표시 설정을 '표시 설정 더 보기'로 접음

새 기능

  • 재료 바꿔 보기(FT-2, whatif.py): 한 재료 선형 모델은 다시 풀지 않고 재판정(재해석과 1e-6 안에서 일치), 정확하지 않으면 이유를 말하고 재해석 제안. '이 재료로 확정'
  • 하중 케이스 포락(FT-3, static.envelope): 절점마다 최악 응력·최대 변형
  • 메시 확인(FT-1, meshcheck.py): 다음 메시 등급으로 다시 풀어 판정 안전율·최대 변형 변화율, 5 % 초과면 '메시에 민감'
  • 둘러보기(UX-5, ui/tour.py)와 단계별 '다음에 할 일' 안내

테스트

  • 새 테스트: test_ui_results.py, test_whatif.py, test_meshcheck.py, 포락 이론 테스트
  • 로컬 전체(Linux, xvfb): 224 통과 + 케이스 상자 항목 수가 바뀐 기존 테스트 1개 수정 후 통과
  • 버전 0.6.0

Generated by Claude Code

Raise the release version to 0.2.0 (pyproject, RELEASE_VERSION, Inno Setup
default, lockfile) so the v0.2.0 tag matches and installed 0.1.0.x builds
are offered the update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
….2.1

The v0.2.0 tag build was the first CI run that got runners, and 28 UI tests
failed on Windows and Linux: the headless-display action sets
PYVISTA_OFF_SCREEN=true, so QtInteractor created no interactor and
plotter.iren was None. The viewer now always asks for an interactive one.

With that fixed, the UI tests crashed in VTK render() under Xvfb/Mesa after
about twenty windows: a closed window never released its OpenGL render
window. MainWindow.closeEvent now calls viewer.shutdown(), which stops the
animation timer and closes the plotter. Full suite with CI's environment:
183 passed.

The macOS job was cancelled the moment it was created (no runner), and the
release job needs every build job, so it was skipped. It now runs unless a
build failed, and refuses to publish an empty release.

Version 0.2.1 so the fixed commit gets a fresh tag instead of moving v0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
A manual run of the build workflow on main now builds as usual and the
release job creates the v<pyproject version> tag and the GitHub Release at
that commit (it refuses when the tag already exists). Tag pushes work as
before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…ux; 0.2.2

Windows CI failed test_contact_solver_reuses_the_factorization: the solver's
answer differed from a fresh factorization by 1.3e-6 of the peak displacement
(limit 1e-6). The Woodbury update alone is only as accurate as cond(S)*eps:
on the lap joint cond(S) ~ 8.5e5 left 8.3e-7, while two direct solves with
different orderings agree to 6e-10. One step of iterative refinement with the
same operator brings it to 9.3e-10; the step is kept only when it is a small
correction.

The v0.2.1 run still published a Release although the Windows build failed:
with one leg failed and another (macOS, no runner) cancelled,
needs.build.result reads 'cancelled'. The release job now also requires the
Windows installer and the Linux archive to be present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…, checks

kstruct.i18n.tr(korean, **values) returns the Korean source unchanged (and
str.format-ed when values are given) or its English entry from
resources/i18n/en/*.json; N_() marks module-level constants, tr_data()
translates built-in data labels and leaves user-entered names alone. The
language is read from prefs (or KSTRUCT_LANG) when the main window starts;
the info menu gets a 언어 / Language submenu (applies after restart). Help
falls back to Korean per topic.

tests/test_i18n.py fails until the translation lands: it finds every Korean
literal outside tr()/N_()/log calls, every tr() text without an English
entry, mismatched placeholders, and missing English help topics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
test_i18n opens the window in English, solves the sample bracket (static,
modal, thermal), visits every step and fails on any Hangul in widget texts,
tooltips, list/combo/table items, menus, colour-bar titles or the report.
packaging/all_store_screenshots.sh ko|en shoots every scene at both sizes
(English into docs/screenshots/en/); README gets English captions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
en.json mirrors all 88 topics of ko.json (same keys, HTML and related
links). In both languages: thermal help no longer says transient analysis is
unsupported, the steps are at the top (not on the left), and fatigue help
mentions the surface/reliability settings instead of assuming a machined
surface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Report HTML in Korean is byte-identical to before for static, modal, buckling and
thermal runs. Also a test that catalog files agree on shared texts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…lver/data groups)

Snapshot of files the translation agents are still editing; completed by the
following commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Module label tables are N_()-marked and shown through tr(); data and user labels
through tr_data(). Korean output unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…ument i18n

report/summary.py and describe.py build whole sentences per tr() text; verdict
labels translate on lookup. Shared keys get one English each (Part, Custom
material, Bolted joint); the singularity kind is translated where the main window
shows it. CLAUDE.md describes tr/N_/tr_data, the catalogs and the checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
… top

Long English radio/checkbox/form labels made the step panels wider than the side
bar (up to 476 px vs 399 in Korean) and clipped text and help buttons; they are
shortened, with help and notes quoting the new labels. US spelling throughout.
The welcome text (both languages) now says the steps are at the top, and the
modal note names the 'operating speed' field as it is labelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
All nine scenes at 1920x1080 and 2880x1800 shot with KSTRUCT_LANG=en; the Korean
welcome screenshots are reshot for the corrected 'steps at the top' text. Labels
that were clipped in the English shots are shorter (plastic strain field, mode
shape colour bar, mode list entries).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
docs/screenshots/<size>/ now holds the English screenshots (moved from en/);
all_store_screenshots.sh writes English there by default and Korean to ko/ on
request; README updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…eat assembly

fem/pardiso.py binds MKL PARDISO (SPD, METIS ordering, multithreaded, bit-reproducible
via MKL_CBWR) through ctypes. make_solver uses it for 2k-300k DOF on Windows/Linux
x86-64 and falls back to SuperLU/AMG when MKL is missing (macOS), the factorization
fails (indefinite) or a pivot falls below 1e-12 of its diagonal (singular: a part not
held), so those cases are diagnosed exactly as before. Measured on the same matrices:
85k-DOF bracket 16.2 s -> 0.9 s, 73k-DOF bolted joint 52 s -> 1.2 s, answers within 1e-11.

Transient heat: element conduction matrices are built once and rescaled (k is constant
per element), K0 is reused when no material has k(T), and no lil conversions.

The installer bundles only the MKL libraries PARDISO loads; the frozen selftest fails on
Windows/Linux x86-64 if PARDISO is not available.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…te fallback, reproducibility

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
… into a fixed pattern

PARDISO: METIS ordering is ~75 % of a factorization and depends only on the sparsity
pattern, so the last four orderings are kept by pattern hash (0.85 -> 0.6 s at 85k DOF);
parallel nested dissection (0.76 -> 0.45 s), same ordering and bit-identical results
across processes.

Nonlinear: the tangent's CSR pattern and every element entry's slot are computed once;
each Newton iteration sums element values into place (np.bincount) instead of building
and adding sparse matrices, and internal forces use bincount instead of np.add.at.

CLAUDE.md describes the PARDISO path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
resources/icons/kstruct.svg is the source; packaging/make_icons.py renders the PNG
sizes, the Windows .ico and the macOS .icns (Qt SVG Tiny, so no clipPath). Used as the
window/taskbar icon, beside the name in the header bar, for KStruct.exe, the installer
and its uninstall entry, the macOS app bundle and the README. On Windows the process gets
its own AppUserModelID so a source run shows the logo instead of python.exe's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…tHub Discussions

The toolbar 문의하기 button and the info menu now offer '오류 신고 (GitHub 이슈)' (new
issue with version and environment filled in, as before; the crash dialog keeps using
it) and '질문·아이디어 (GitHub 토론)' (links.json 'discussions'). Help, English
translations and the toolbar test follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
ROADMAP §8: v0.3.2 성능 기준값, 성능 PF-1~8, 기능 FT-1~7, UI-1~6,
조작성 UX-1~10과 완료 기준, v0.4~v0.7 진행 순서. 낡은 '남은 것' 갱신.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
- 3D 뷰 위 보기 막대: 보기 메뉴(0·1·3·7, Ctrl = 반대쪽), 반투명, 영역 선택(B),
  같은 크기 모두(S), 이어진 면(T), 선택 해제(Esc)
- 오른쪽 클릭: 이 부품만 보기·숨기기·반투명(화면 전용), 목록 항목의 면 강조
- 창 단축키 Alt+1~7, Ctrl+M, F5, Del, Ctrl+/ 단축키 목록
- 파일 끌어다 놓기, 저장 안 한 변경이 있으면 열기 전에 확인
- 해석 실패 시 원인 부품을 빨갛게 표시하고 고칠 단계로 이동(diagnose.py)
- 왼쪽 패널을 좁히면 패널 오른쪽이 잘리던 결함 수정(_fit_side)
- 테스트: test_ui_tools.py, test_layout.py(1280x720, 한/영)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
- packaging/bench.py: 8개 사례를 UI 없이 별도 프로세스로 재고 결과 지문(변위·
  고유진동수·좌굴 배수·온도·볼트 축력)을 남김, --check로 기준 대비 감시
- 접촉: 같은 스프링 상태의 행렬 캐시, 같은 행렬의 연속 풀이는 직전 해에서
  역대입 1회(풀이 겸 반복 개선), 잔차는 슬레이브 행만, Anderson 가속
- 결함 수정: 마찰 스윕 중 가장자리 쌍이 하나씩 열리는 것을 능동 집합 반복으로
  세어 40회 한도를 다 쓰고 '수렴 안 됨'이 나던 문제(볼트 3개 예제, 보통 메시)
- 예압 2차 풀이는 1차의 기준점에서 출발, 1차는 허용오차 1e-2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
단계마다 조금씩 바뀌는 행렬을 매번 분해하지 않고 마지막 분해로 전처리한 CG(상대
잔차 1e-12, 8회 넘으면 새로 분해)로 푼다. 결과는 매 단계 분해와 1e-8 안에서 같다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
- 메싱: Netgen 작업 프로세스를 앱 시작 때 띄워 두고 재사용(프로세스 생성+import
  1.4 s 제거, 브래킷 3.0 → 1.6 s). 취소·시간 초과·오류 때만 새로 만듦. Netgen
  스레드는 이득(1.2 → 1.0 s)에 비해 멈춤 위험이 있어 쓰지 않음
- 좌굴: 고유쌍을 모드+3개 먼저 요청하고 양수가 모자랄 때만 2·모드+4개(같은 분해
  재사용), 행렬 CSR
- 비선형(작은 변형): 탄성 접선을 한 번 조립하고 항복 중인 적분점만 보정

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
… 3분 → 10초

- kstruct.spec: 실제 실행에서 열리지 않는 VTK-m(viskores)·테스트·웹 모듈 제외,
  Linux에서 VTK 라이브러리만 strip(다른 휠은 patchelf 수정본이라 건드리지 않음)
- selftest-gui: 종료 때 '저장할까요?' 창이 떠서 3분 안전 타이머까지 기다리던 문제
- 기준값 갱신(마찰은 수렴 수정으로 변위 +0.5 %), ROADMAP·CLAUDE.md에 v0.5 결과

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
Windows CI에서 1280×720 잘림 검사가 위쪽 툴바 넘침으로 실패해 v0.5.0 릴리스가 막혔다.
툴바 폭을 줄이고, 창이 1280 px가 될 수 없는 작은 화면(CI 데스크톱)에서는 검사를
건너뛴다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
- 결과 화면: 최대·최소 위치 라벨(한글 글꼴), 변형 배율 직접, 색 범위 직접, 색각 친화
  색표, 자주 안 쓰는 표시 설정 접기
- 재료 바꿔 보기(whatif.py): 한 재료 선형 모델은 다시 풀지 않고 재판정(재해석과 일치),
  정확하지 않으면 이유를 말하고 재해석 제안
- 하중 케이스 포락(static.envelope): 절점마다 최악 응력·최대 변형
- 메시 확인(meshcheck.py): 다음 프리셋으로 다시 풀어 판정 안전율·최대 변형 변화율
- 둘러보기(ui/tour.py)와 단계별 '다음에 할 일' 안내
- 영어 번역·도움말·테스트(test_ui_results, test_whatif, test_meshcheck)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuEsnVsFfVLnJ2ANmFP
@knoxxr
knoxxr merged commit 7f68d4c into main Nov 29, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants