This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import re | |
# Definition of a File object | |
class File(object): | |
def __init__(self, path, day, month, year): | |
self.name = os.path.basename(path) | |
self.path = path | |
self.date = day | |
self.month = month |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component,molar_percentage,molar_mass,density | |
N2,0.49,—,— | |
CO2,0.31,—,— | |
C1,44.01,—,— | |
C2,3.84,—,— | |
C3,1.12,—,— | |
iC4,0.61,—,— | |
nC4,0.72,—,— | |
iC5,0.69,—,— | |
nC5,0.35,—,— |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
install_packages() { | |
# First update everything. | |
apt update && apt upgrade | |
# Install: | |
# - Python package manager | |
# - GNU Fortran compiler | |
# - BLAS and LAPACK libraries (for linear algebra operations) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install gfortran | |
pip install git+https://github.com/fedebenelli/PyForFluids/tree/dev matplotlib jupyter |