The latest version of MSC.Nastran that currently supports Linux is version 2024.2. The installation instructions are fairly straightforward: first, install the license server, then install the main program, and finally set up the license server. In practice, however, there are several common pitfalls that need to be taken into consideration.

1. Install the MSC License Server

Enter the folder where the program is located and run the license server installation file. By default, the graphical installation interface will launch, showing a message that Ubuntu is not supported. Here, the text-based installation interface is accessed using --mode console.

./msc_licensing_lithium_linux64.bin --mode console

Enter Y or press Enter to confirm and proceed to the installation program.

7cb70d28ddfa6b682a6021c05be14388.png

Display the hostname and hostid list. Press space to continue.

e2ae7d8009941db67d375e153e29bceb.png

Enter the installation path and provide the absolute path according to your needs. If the installation is in a location outside of the ${HOME} directory, please ensure that the logged-in user has read and write permissions for that path; otherwise, it will be necessary to rerun the installer with administrative privileges.

767247b5c262a22534f5e11661e8b274.png

Enter the path to save the log file.

ff6776d7dc24ff1b0616d4bb15af573e.png

Enter the absolute path of the license file.

cb72c31bd815786e64ffdd353f6b43f9.png

Display the information of the license file, and press space to continue.

ae7b855290a70a8eed1d7e8906e5a4a9.png

Ask whether to start the license server. It is recommended to choose y and press Enter to continue.

7ac45ec19d21ab975193dc17db6d3bb1.png

Ask whether to edit advanced properties, just press Enter to skip.

9d3f04e4287b7571611118375320a033.png

Confirm the installation information, press space to continue, and start the installation process.

47e12057c771c17ecf35abb240ba47b3.png

After the installation is complete, the following information will be displayed. At this point, the license daemon has already started.

ac03a8a5c5588f1f353475235c9bb430.png

2. Configure License Service

Check if the license service daemon is running properly.

ps -eaf | grep MSC

Display the following information to indicate that the license service daemon has started successfully. Otherwise, check the log files to confirm whether the license file information is correct and replace it with the correct license file if necessary.

f79b15db53ea5c72286576614de62e70.png

At this time, the license service daemon has not yet registered as a system service. After a reboot, the process exits and needs to be run manually, which is very inconvenient. We create a new Systemd service to solve this problem.

sudo touch /usr/lib/systemd/system/msc_lmd.service
sudo chmod 754 /usr/lib/systemd/system/msc_lmd.service
sudo vi /usr/lib/systemd/system/msc_lmd.service

Add the following content and save before exiting.

[Unit]
Description=MSC Software Licensing Deamon
After=msc_lmd.service
  
[Service]
Type=forking
User=root
Group=root
ExecStart="/opt/MSC.Software/MSC Licensing/Lithium/lmgrd" -c "/opt/MSC.Software/MSC Licensing/Lithium/license.dat" -l "/opt/MSC.Software/MSC Licensing/LOG/lmgrd.log" -local -2 -p -x lmremove
ExecReload=
ExecStop="/opt/MSC.Software/MSC Licensing/Lithium/lmutil"lmdown -q -c  "/opt/MSC.Software/MSC Licensing/Lithium/license.dat"
  
[Install]
WantedBy=multi-user.target

Start the service using the following command.

sudo systemctl enable msc_lmd
sudo systemctl start msc_lmd

Check service status.

sudo systemctl status msc_lmd

3. Install Nastran solver

Run the MSC Nastran solver installation file.

./nastran_2024.2_linux64.bin --mode console

Enter the installer.

e65e410d5ef2901879b216b56fd3d257.png

Type Acknowledged and press Enter to accept the statement and continue the installation, or type Cancel or press Enter directly to exit the installer.

8531e73799f4f6b32ab29d2061d7e1d2.png

Enter the installation path of the solver, and press Enter to directly copy the files to the installation path.

82eff3ac9948f6e9107c333b57db2ddb.png
efffe6443f5be5339529ee86bc92fcdb.png

Enter the port number and address of the license server, here type 27500@localhost and press Enter to confirm.

0db43293d408e35c356ea4b257313497.png

You can choose to enter the path of the scratch folder, or press Enter to skip here. It’s best to choose an existing path, or manually create a scratch folder after the installation is complete.

4063a488432a5237350fb52aea454ae2.png

Choose whether to enable the scratch folder each time it runs according to the prompt. Note that if you choose to confirm, it is best to give all users who use the solver read and write permissions for the scratch folder; otherwise, submission of calculations is likely to result in errors.

703e60c83b7f3bf41f6b549903c8d920.png

Enter the default memory size, just skip it.

fa6fed3d46df97249a88e5d2a56fdac8.png

Enter the buffer size, keep default.

d077ec53624ea155012c4009338890d0.png

Prompt to install the SDK, just skip it.

f55d77d04a62f4f0bec9b53e0417613d.png

The installation is now complete.

4. Setup Environment Variables

Create a new environment variable file msc_nastran_2024_2.env.

touch msc_nastran_2024_2.env
chmod +x msc_nastran_2024_2.env
vi msc_nastran_2024_2.env

The content is edited as follows.

export LM_LICENSE_FILE=27500@localhost
# Make sure that port 27500 is not occupied by other programs. 
# If you need to change the port number, you must edit 
# the license file and restart the service.
export NASTRAN_PATH=/opt/MSC.Software/MSC_Nastran/2024.2	
# This path is determined based on the installation location 
# entered earlier and should be an absolute path.
export PATH=$NASTRAN_PATH/bin:$PATH
alias nastran=nast

In this way, you need to manually load the environment variables before each run.

source msc_nastran_2024_2.env

Display nastran help information.

nastran help

6490ed18ba09ff35f1fd96be527faf11.png

Example of how to submit a calculation. smp=16 means enabling 16 parallel computation threads on this machine. As for the submission script on HPC, you can refer to this1 for configuration.

mkdir scratch && nastran jid=test.bdf smp=16 sdir=$PWD/scratch

If you previously chose to enable the scratch folder, it’s best to add sdir= to specify the location of the scratch folder, in order to avoid errors caused by lack of access permissions to the default /scratch folder.