Create Measure - Distance between and write result to file

User: "Sebastian_Karp"
Altair Employee
Updated by Sebastian_Karp

Overview

This script will create a HyperView measure entity of type Distance Between for 2 nodes.

For the current displayed time step / increment it will write the MAG/X/ Y/Z distance values to an external file and to the TCL Console.

Pre-Requisite

Edit lines 9 / 10 to define node-IDs to be used in the distance calculation.

Usage/Installation Instructions

Run script e.g. from DropDown  File > Load > Script

(optional) open TCL Console from View DropDown.

 

Measure of Type Distance Between will be created.

image

 

The MAG/X/Y/Z values of the distance measure for current time step / increment will be written to the TCL Console, and to a CSV file located in same folder as the script.

Find more posts tagged with

Share projects with the Community

Share your models, scripts, workspaces, and more with the Altair Community.
New Exchange Project