Line based on mathematical expression

Edouard Ferry_20577
Edouard Ferry_20577
Altair Employee
edited March 7 in Altair Exchange

Overview

This TCL macro is made to trace lines based on mathematical formulas. The line is traced is X-Y plane.

When executed, a user interface window pops-up.
The user can choose X value to begin and end the curve. He can also choose the step with which points are created, based on the equation. When all the points are created, a spline links the points.

The user needs to use $x as the variable in the equation.

Classical expression such as:

$x**2
sqrt($x)
sin($x)
exp($x)

and many others are accepted.

The Apply, OK and Cancel buttons are useless. Only the Trace button triggers the macro.

The macro was developed on v2023.0 but should work on any other previous version.

Usage/Installation Instructions

The TCL file can directly be dragged and dropped in the graphical window of HyperMesh.