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
| *--------------------------------*- C++ -*----------------------------------*\ | |
| ========= | | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | |
| \\ / O peration | Website: https://openfoam.org | |
| \\ / A nd | Version: 8 | |
| \\/ M anipulation | | |
| \*---------------------------------------------------------------------------*/ | |
| FoamFile | |
| { | |
| version 2.0; |
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
| # convert from csv velocity data into openfoam inlet data format | |
| import os, sys, random | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| input = pd.read_csv('/pub/nomura/beatFlow/inletAorta2.csv', sep=',', header=0, names=('time', 'U', ' | |
| V', 'W')) |
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
| #!/usr/bin/env python | |
| import os | |
| import numpy as np | |
| import vtk | |
| import matplotlib.pyplot as plt | |
| def load_velocity(filename): | |
| if not os.path.exists(filename): |