Skip to content

Tutorial 06

Postprocessing with Remote Control

Goal

This tutorial explains the basic remote-control workflow for hfVisualizer postprocessing.

It covers:

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

1. You must be in postprocessing mode first

Post commands only work when results are available.

The simplest flow is:

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

If the model already contains results, you can use post commands right after open.

2. Pick the step and frame first

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

The recommended order is always:

  1. post-step
  2. post-frame
  3. choose plot and scalar/vector options

3. Decide which plot you want

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

Common plot toggles:

  • contour
  • deformed
  • vector
  • diagram
  • sensor

4. Choose scalar and vector fields

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

Typical use:

  • use post-scalar for stress contour review
  • use post-vector for displacement or direction review

5. Refine the contour appearance

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

If needed, switch to custom mode and set explicit levels.

6. Commands fail in the wrong mode

If you send post-* commands while still in preprocessing mode, the response is INVALID_STATE.

That means:

  • run the analysis first, or
  • open a file that already contains results

7. You can compare with multiple render views

Postprocessing can also be reviewed across multiple render views.

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

The post commands themselves still follow the active-render flow by default, so set up the comparison layout first.

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

Next step