Skip to content

hfVisualizer Remote Control Model

model

hfVisualizer --remote [--target <id>] model <type> (--content <text> | --content-file <file>)
  • Applies one *Model, TYPE=<type> block.
  • Exactly one of --content or --content-file is required.
  • model runs only in preprocessing mode.
  • <type> must not be empty.
  • Supported model types in the current reader path are:
  • Block2D
  • Block3D
  • Cylinder
  • Wall
  • RectangularTank
  • CylindericalTank
  • CurveExtrusion
  • FarField2D
  • FarField3D
  • FarField2Dx
  • FarField3Dx
  • Content is passed directly to readModel() after the IPC layer prepends the *Model keyword line.
  • Inside --content, use \n for line breaks. \\n stays literal.
  • Empty content is rejected.
  • Successful apply preserves the existing per-view hidden node/element state for already hidden items, inserts newly created visible items into each view, refreshes topology, and resets the camera, matching the GUI Model widget behavior.

Example:

hfVisualizer --remote model Block2D --content "B1, auto, auto, CPS4, SEC1\n0,10,10\n0,5,5"
hfVisualizer --remote model FarField3D --content-file D:\Work\farfield3d-model.txt