How To Install nastran on Ubuntu 22.04

In this tutorial we learn how to install nastran on Ubuntu 22.04. nastran is NASA Structural Analysis System

Introduction

In this tutorial we learn how to install nastran on Ubuntu 22.04.

What is nastran

nastran is:

NASTRAN is the NASA Structural Analysis System, a finite element analysis program (FEA) completed in the early 1970’s. It was the first of its kind and opened the door to computer-aided engineering. Subsections of a design can be modeled and then larger groupings of these elements can again be modeled. NASTRAN can handle elastic stability analysis, complex eigenvalues for vibration and dynamic stability analysis, dynamic response for transient and steady state loads, and random excitation, and static response to concentrated and distributed loads, thermal expansion, and enforced deformations.

There are three methods to install nastran on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install nastran Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install nastran using apt-get by running the following command:

sudo apt-get -y install nastran

Install nastran Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install nastran using apt by running the following command:

sudo apt -y install nastran

Install nastran Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install nastran using aptitude by running the following command:

sudo aptitude -y install nastran

How To Uninstall nastran on Ubuntu 22.04

To uninstall only the nastran package we can use the following command:

sudo apt-get remove nastran

Uninstall nastran And Its Dependencies

To uninstall nastran and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove nastran

Remove nastran Configurations and Data

To remove nastran configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge nastran

Remove nastran configuration, data, and all of its dependencies

We can use the following command to remove nastran configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge nastran

References

Summary

In this tutorial we learn how to install nastran package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.