How To: Use DSim Outside of DSim Studio
One of the advantages of DSim Studio is that it sets up the terminal shell used for running DSim so that you do not have to worry about the details involved in making that happen. Once you have become proficient on how DSim works within DSim Studio, you may want to run DSim in a terminal shell outside of DSim Studio, so that it can be included in your own scripts. This article explains what is needed to run DSim outside of DSim Studio.
Procedure
1. Navigate to the DSim installation folder:
- Windows:
C:\Program Files\Altair\DSim\<version>
- Linux:
$HOME/AltairDSim/<version>
2. In your shell, run the shell_activate script appropriate for it.
.\shell_activate.ps1
for PowerShellsource shell_activate.bash
for Bash
This activates DSim for the current shell only.
3. Optionally, you can activate DSim for future shell sessions by including the appropriate script in your PowerShell profile or .bashrc configuration file.
4. To use your Free Individual License, set the environment variable DSIM_LICENSE
to point to your license file.
- In Windows, set
DSIM_LICENSE
to:C:\Users\<user>\AppData\Local\metrics-ca\dsim-license.json
- In Linux, set
DSIM_LICENSE
to:$HOME/metrics-ca/dsim-license.json
5. To use your Altair Units License, delete the environment variable DSIM_LICENSE
and set the environment variable ALTAIR_LICENSE_PATH
to point to your license file.
The license path may also be in the form port@host
.
See Licensing to administer your license.
6. Use the DSim commands in the DSim User Manual as if you're working on-prem.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article