fpm
NASTRAN-95 | fpm | |
---|---|---|
8 | 12 | |
415 | 812 | |
3.1% | 1.4% | |
0.0 | 8.8 | |
over 7 years ago | 4 days ago | |
Fortran | Fortran | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
NASTRAN-95
-
Which FEA software product does each major industry (automotive, aerospace, etc) use?
Well, NASTRAN was one of the first Solvers developed and available. You can download predecessor if current NASTRAN for free from github: https://github.com/nasa/NASTRAN-95
- What is some good resource to study FEA?
-
What is the best opens-source finite element solver which I can use for learning and implementing new contact interaction algorithms?
I haven’t tried to use the public, open source version, but shouldn’t NASTRAN make this list?
-
Revitalizing Castlequest, Part 4: Squarified Cushioned Treemaps
A larger legacy FORTRAN project is NASTRAN-95, a finite element structural analysis code (again from NASA) that consists of almost 2000 individual source files as well as substantial example case input and output files.
-
Revitalizing Castlequest, Part 3: The Shape of Code
Finally, consider how long it took to answer these questions for each file. The Castlequest source code is distributed among 16 files; how long would it take to assess the whole codebase by viewing bitmaps versus skimming source files in an IDE or text editor? By comparison, the NASTRAN-95 project consists of almost 1900 separate source files distributed among 10 directories - would the graphical or the textual approach be more effective on a project of that size? Would either approach be effective at that scale?
-
Toward Modern Fortran Tooling and a Thriving Developer Community
I think there's a common misconception that numerical codes should be accessible without documentation, and without a background in the subject.
Take NASTRAN-95 [1] or SPICE2 [2], for example. Both have good documentation in the form of manuals, books, and papers. If you have the mechanical or electrical background, you should be able to understand the docs explaining the implementation, and then you should be able to understand the code. It doesn't matter that there are no comments anywhere, or that GOTO is used. Aside from some cosmetic differences, it looks pretty much like what you'd write today with MATLAB or Python.
I picked these examples because they're publicly available, but I would guess that most Fortran still in use has no public visibility. In my experience with commercial numerical engineering software, Fortran lives on in under-the-hood components written by subject matter experts for performing specific tasks. It doesn't matter that programmers are unfamiliar with the language, because only subject matter experts are allowed to modify the code anyway.
To be clear, I'm not defending the many examples of unstructured, undocumented academic code that grows until it's essential to an organization despite being buggy and virtually unmaintainable. But those would have been terrible to read no matter which language was used.
I've never seen the language itself be a significant barrier to understanding in a business context. And it's not like we have a problem where there are all these active open-source projects that could be so much better if only they were written in a different language.
[1] https://github.com/nasa/NASTRAN-95
[2] https://ptolemy.berkeley.edu/projects/embedded/pubs/download...
-
Hypothetical question: What schema would you use to store a high but finite number of document/record types?
Nastran bulk data: https://github.com/nasa/NASTRAN-95/blob/master/um/BULK.TXT Similar case, but modern nastran versions have somewhere in the 1000s (I think) card types.
-
Website for generating and downloading sample FEM mesh files
NASTRAN-95/um at master · nasa/NASTRAN-95 (github.com)
fpm
- Fortran Package Manager (FPM): Package Manager and Build System for Fortran
- Fortran Package Manager
-
How do I use fortran github package.
Make sure you have the latest fpm binary installed somewhere so that your $PATH can see it: curl -o ~/.local/bin/fpm -L https://github.com/fortran-lang/fpm/releases/download/v0.8.2/fpm-0.8.2-linux-x86_64 && chmod 0755 ~/.local/bin/fpm
-
SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
Hopefully, the SciPy community can stay open-minded about modern Fortran libraries.
Modern Fortran is quite different from Fortran 77, while being as powerful, if not more.
In addition, there has been a significant community effort on improving and modernising the legacy packages, the ecosystem, and the language itself.
With projects like LFortran (https://lfortran.org/), fpm (https://github.com/fortran-lang/fpm), and stdlib (https://github.com/fortran-lang/stdlib), I believe that Fortran will enjoy prosperity again.
-
The Skills Gap for Fortran Looms Large in HPC
Anyway, first release of Fortran Package Manager was in November 2020: https://github.com/fortran-lang/fpm/releases/tag/v0.1.0 - more recently than I expected.
-
[RANT] I really, really wish working with compiled languages is as easy as working with Python.
There is actually a Fortran Package Manager that will hopefully make things easier in the future. It's quite new, so it might not be entirely mature yet.
-
Toward Modern Fortran Tooling and a Thriving Developer Community
Author here, so I'm biased toward Fortran, though I've been enjoying learning Rust as well. I think there are a few reasons.
First, Rust's multidimensional arrays are either limited and/or difficult to use. Fast, flexible, and ergonomic multidimensional arrays and arithmetic are essential for HPC. They are possible with Rust, but my two favorite Rust books not mentioning them suggests to me that they're not the focus of the language. This may or may not change in the future.
Second, Rust may be too complex to learn for scientists who aren't paid to write software but to do research. Fortran is opposite--multidimensional whole-array arithmetic looks like you would write it as math on a whiteboard. While scientists can sure learn to program Rust effectively, I think most scientists don't think like Rust, but they do think like Fortran. For somebody not familiar with Fortran but familiar with Python, I'd say Fortran very much feels like NumPy.
Third, such ecosystem would be built in Rust from scratch. In Fortran, most of the value is already there, but needs to be made more accessible with better and more modern tooling. For example, Fortran's fpm (https://github.com/fortran-lang/fpm) is largely modeled after Rust's Cargo because we recognize the importance of good user experience when it comes to building and packaging software. With the recent Fortran-lang efforts, we study many programming language ecosystems and communities (e.g. Python, Julia, Rust, etc.) to find what could work best for modern Fortran tooling.
-
Fortran Web Framework
I recently started learning Fortran for a lark. It reminds me a lot of R, in some respects. It's clearly a very, very good language for doing the parts of one's job that are very math-centric. But it's equally underwhelming as a general purpose programming language.
Largely, I think, due to gaps in the library ecosystem. But there are other challenges. You can see from the install instructions on the linked page, for example, that Fortran still lacks a package manager.
What's interesting, though, is that that's changing. There are currently serious efforts to give it a "standard" library (https://github.com/fortran-lang/stdlib) and package manager (https://github.com/fortran-lang/fpm).
And I've been watching the new LFortran compiler (https://lfortran.org) with extreme interest.
-
Assembly of course!
FPM has entered the chat https://github.com/fortran-lang/fpm
What are some alternatives?
squarify - Pure Python implementation of the squarify treemap layout algorithm
stdlib - Fortran Standard Library
QDirStat - QDirStat - Qt-based directory statistics (KDirStat without any KDE - from the original KDirStat author)
json-fortran - A Modern Fortran JSON API
OpenCoarrays - A parallel application binary interface for Fortran 2018 compilers.
neural-fortran - A parallel framework for deep learning
pyplot-fortran - For generating plots from Fortran using Python's matplotlib.pyplot 📈
MYSTRAN - MYSTRAN is a general purpose finite element analysis solver
Fortran-code-on-GitHub - Directory of Fortran codes on GitHub, arranged by topic
SELF - Spectral Element Library in Fortran
WRF - The official repository for the Weather Research and Forecasting (WRF) model
crystal - The Crystal Programming Language