You can invoke HyperMath:
• | as a standalone product, |
• | by running it in batch mode, |
• | or from within HyperWorks products |
o | HyperMath can be invoked from the View > Toolbars > HyperWorks > Scripting toolbar in the following HyperWorks products: HyperMesh, HyperView, HyperGraph and MotionView. |
o | The interactive standalone mode can also be accessed from the Applications menu in HyperStudy, HyperGraph HyperView and MotionView. |
HyperMath runs on the following platforms:
• | Windows 64-bit |
• | Linux 64-bit |
• | Mac OS |
On Windows
From the DOS prompt on a PC Run the following script: <install directory>\hwx\bin\win64\hwx.bat Or, run the following executable: <install directory>\hwx\bin\win64\runhwx.exe -client HyperMath -l en On Linux Invoke HyperMath 2017 via hmath in <install_dir>/scripts/hmath On Mac
|
On Windows Invoke HyperMath via hypermath.bat in <install_dir>/hwx/bin/win64. From the DOS prompt on a PC Run the following executable: <install directory>\hwx\bin\win64\hypermath.bat -f "<filename>.hml" [options] On Linux Invoke HyperMath via hmathbatch in <install_dir>/scripts/hmathbatch On Mac Invoke HyperMath 2017 via <install_dir>/scripts/hmathbatch –f hmlfile |
|
The installation includes the batch files hypermath.bat, located in <install folder>\hwx on Windows, and hmathbatch in <install folder>\altair\scripts on Linux. You can use these files for batch mode execution of HyperMath script files as follows (on Linux, replace hypermath.bat with hmathbatch): hypermath.bat –f filename1.hml … filenameN.hml hypermath.bat –input input1 … inputN –f filename1.hml
In case the input arguments (path and filename) contain spaces, they need to be inside quotes and spaces have to be protected by "\ ". For example, if the filename is test batch mode.hml (2 spaces), then the command is hmathbatch –f "$HOME/test\ batch\ mode.hml" |
If you define a user-init.hml file in your preference directory, this file is launched at each start-up. The user preference directory is defined by getuserdir() + '/.altair/' + <VERSION>. For example, for version 2017, the directory is defined by: getuserdir() + '/.altair/' + '2017.0'. A more detailed example: USER_FILE = getuserdir() + '/.altair/' + '2017.0' + '/user-init.hml'; fid = Open(USER_FILE,"wt"); fid::write("print(\'hello at each startup.\');\n"); fid::close() You can restart HyperMath to see the result. In the above example, each time HyperMath is launched, the message 'hello at each startup' is displayed in the Command window. |