콘텐츠로 이동

Tutorial 06

Postprocessing with Remote Control

목표

이 튜토리얼은 hfVisualizer의 후처리 명령을 원격으로 제어하는 기본 흐름을 설명합니다.

다루는 항목:

  • run-analysis
  • post-step
  • post-frame
  • post-plot
  • post-scalar
  • post-vector
  • post-contour
  • post-display

1. 먼저 postprocessing mode여야 한다

후처리 명령은 결과가 로드된 상태에서만 동작합니다.

가장 단순한 흐름:

hfVisualizer --remote open D:\Work\frame.h5.hdb
hfVisualizer --remote run-analysis

이미 결과가 있는 모델이라면 open 직후 바로 후처리 명령을 사용할 수 있습니다.

2. step과 frame을 먼저 고른다

hfVisualizer --remote post-step STEP1
hfVisualizer --remote post-frame 3

추천 순서는 항상:

  1. post-step
  2. post-frame
  3. plot과 scalar/vector 선택

3. 어떤 그림을 볼지 정한다

hfVisualizer --remote post-plot contour on
hfVisualizer --remote post-plot deformed on
hfVisualizer --remote post-plot vector off

자주 쓰는 plot:

  • contour
  • deformed
  • vector
  • diagram
  • sensor

4. scalar와 vector를 고른다

hfVisualizer --remote post-scalar S.Mises
hfVisualizer --remote post-vector D

자주 쓰는 흐름:

  • 응력 contour를 볼 때: post-scalar
  • 변위 벡터나 방향성을 볼 때: post-vector

5. contour 모양을 다듬는다

hfVisualizer --remote post-contour auto-range off
hfVisualizer --remote post-contour range 0 250
hfVisualizer --remote post-contour bands 12
hfVisualizer --remote post-display scalarbar on

필요하면 custom mode와 level도 조정할 수 있습니다.

6. 잘못된 mode에서는 실패한다

post-* 명령은 preprocessing mode에서 보내면 INVALID_STATE로 거절됩니다.

즉:

  • 결과가 없을 때는 먼저 해석을 실행하거나
  • 기존 결과가 있는 파일을 열어야 합니다.

7. render view를 분리해서 비교할 수 있다

후처리도 display와 camera처럼 render view를 나눠서 비교할 수 있습니다.

hfVisualizer --remote view add render
hfVisualizer --remote --view-id r0 camera view +z
hfVisualizer --remote --view-id r1 camera view +z

후처리 명령 자체는 기본적으로 active render 흐름을 따르므로, 비교용 view workflow는 먼저 구성해 두는 편이 좋습니다.

8. 추천 리뷰 시나리오

hfVisualizer --remote post-step STEP1
hfVisualizer --remote post-frame 1
hfVisualizer --remote post-plot contour on
hfVisualizer --remote post-scalar S.Mises
hfVisualizer --remote post-display scalarbar on
hfVisualizer --remote post-plot deformed on
hfVisualizer --remote post-scale deformed value 10

같이 보면 좋은 문서

다음 문서