dr-bill-c / MYSTRAN

MYSTRAN is a general purpose finite element analysis solver
MIT License
60 stars 28 forks source link
finite-element-analysis fortran nastran

NOTE: The main MYSTRAN Project is now HERE

This fork may be still be useful because of the change log history, but the MYSTRAN project has been moved to MYSTRAN_Solver

For additional questions, Join our Forums or Discord Server

=======

MYSTRAN

MYSTRAN is an acronym for “My Structural Analysis” (https://www.mystran.com)


Introduction | Features | Installation Instructions | Compilation Instructions | Developmental Goals | Ways You Can Help | Community


Introduction

MYSTRAN is a general purpose finite element analysis computer program for structures that can be modeled as linear (i.e. displacements, forces and stresses proportional to applied load). MYSTRAN is an acronym for “My Structural Analysis”, to indicate it’s usefulness in solving a wide variety of finite element analysis problems.

For anyone familiar with the popular NASTRAN computer program developed by NASA (National Aeronautics and Space Administration) in the 1970’s and popularized in several commercial versions since, the input to MYSTRAN will look quite familiar. Many structural analyses modeled for execution in NASTRAN will execute in MYSTRAN with little, or no, modification. MYSTRAN, however, is not NASTRAN. It is an independent program written in modern Fortran 95.

Features

Installation Instructions

For Windows

For Linux

More detailed instructions can be found here. Currently I'd post this link But I think that's not good enough, this should be in a docs directory in the github repository so that version control of it can be done properly. Ideally it would be just as a PDF generated by something like LATEX so that anybody could contribute things like edits to it. Barring that it should be in some kind of open office format so that anybody could access it without paying 130 bucks for microsoft word.

Compilation Instructions

For Windows

For Linux

Debian/Ubuntu
MYSTRAN relies upon the following dependencies - gcc - g++ (may come with gcc) - gfortran - make - git - f2c (aka libf2c) - cmake (version 3.18 or above) Check if gcc is installed. ``` dpkg --list | grep -P "^ii\s+gcc\s+" ``` Check if g++ is installed ``` dpkg --list | grep g++ ``` If it is not installed, installed it. ``` sudo apt install gcc ``` Check if gfortran is installed ``` dpkg --list | grep -P "^ii\s+gfortran\s+" ``` If it is not installed, install it. ``` sudo apt install gfortran ``` Check if make is installed ``` dpkg --list | grep -P "^ii\s+make\s+" ``` If it is not installed, install it. ``` sudo apt install make ``` Check if git is installed ``` dpkg --list | grep -P "^ii\s+git\s+" ``` If it is not installed, install it. ``` sudo apt install git ``` Check if f2c is installed ``` dpkg --list | grep -P "^ii\s+f2c\s+" ``` If it is not installed, install it. ``` sudo apt install f2c ``` Check if cmake is installed ``` dpkg --list | grep -P "^ii\s+cmake\s+" ``` If it is not installed, or it is not version 3.18 or later, you can purge it, and aquire the newest version from source, or from the snapcraft store. Using snap is reccomended. ``` sudo snap install cmake ``` Alternatively, if you do not want to use snap, you can aquire the newest version from source. ``` sudo apt purge cmake git clone "https://gitlab.kitware.com/cmake/cmake.git" cd cmake ./bootstrap make sudo make install ``` You now have all of the prerequisites to compile Mystran. Aquire the Mystran source. ``` git clone https://github.com/dr-bill-c/MYSTRAN.git cd MYSTRAN ``` Generate the build scripts. ``` cmake . ``` Compile with make. ``` make ``` Copy the mystran binary to the appropriate location ``` sudo cp MYSTRAN/Binaries/mystran /usr/local/bin/mystran ``` Delete the git repository ``` cd .. sudo rm -r MYSTRAN ``` Congragulations! You have just installed MYSTRAN.

General guidance can be found here. (last updated 2021-02-01)

Developmental Goals

Ways You Can Help

Community